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.
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?
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.
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.
$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
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".
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.