Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

hide profile type in memberlist

9 years 2 months ago
Licenses:
JomSocial Expired

Hi!
I want to hide a profile type in the memberslist module. This can be done with administrators: configuration -> Privacy -> privacy for administrators
Is there any way to do the same but with a profile type?

9 years 2 months ago
Licenses:

Hi Beatriz,

for profile type, jomsocial dont have any setting like that. it can by make customization at jomsocial core. but it will disappear at upgrade process, and you need to re-apply again.

do you prefer like that? if no problem, I can build the code for you. but I need you to provide me FTP access detail by editing your first post at this topic, put it at site info form.

and what profile type do you want hide it? all changes need to be done in code way.

Regards

9 years 4 weeks ago
Licenses:
JomSocial Expired

Sorry for the delay. I've been doing other things.
I added my ftp data. If possible, I'd like you to tell me the code you have added, that when jomsocial update can modify them.

9 years 4 weeks ago
Licenses:
JomSocial Expired

I forgot, I want to hide the profile type "client"

9 years 3 weeks ago
Licenses:

Hi,

please edit:
/components/com_community/models/user.php and around line 198
find this code

$query = 'SELECT * FROM ' . $db->quoteName('#__users') . ' '
        . ' WHERE ' . $db->quoteName('block') . '=' . $db->Quote(0) . ' '
        . $filterquery
        . ' ORDER BY ' . $db->quoteName('registerDate') . ' '
        . ' DESC LIMIT ' . $limit;
edit it to
$query = 'SELECT u.*, a.profile_id '
        . ' FROM ' . $db->quoteName('#__community_users') . ' as a '
        . ' LEFT JOIN ' . $db->quoteName('#__users') . ' u '
        . ' ON u.' . $db->quoteName('id') . '=a.' . $db->quoteName('userid')
        . ' WHERE ' . $db->quoteName('block') . '=' . $db->Quote(0) . ' AND '
        . $db->quoteName('profile_id') . '!=' . $db->Quote(1) . ' '
        . $filterquery
        . ' ORDER BY ' . $db->quoteName('registerDate') . ' '
        . ' DESC LIMIT ' . $limit;
because I cant access your admin page, always redirected to frontend. I cant see what the id for Client. please find that profile it at jomsocial backend, you can find it at profile URL

replace 1 at that code with profile id for Client
. $db->quoteName('profile_id') . '!=' . $db->Quote(1) . ' '

Regards

9 years 3 weeks ago
Licenses:
JomSocial Expired

Thanks for the code.
I managed to hide the client profile, but only in the section "newest" of "Community- module member". Still appears on "featured", "active" and "popular".

9 years 3 weeks ago
Licenses:

Hi Beatriz,

you can disabling those filter if no needed. from joomla module manager. if too many code changes, you need to apply all code changes every upgrade process. because this changes in core, at upgrade process will be gone.

Regards

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW