By Syabab on Saturday, 18 November 2017
Posted in General Issues
Replies 1
Likes 0
Views 365
Votes 0
Hi,

How to hide some profile type from appear under 'Browse By Profile Type'?

Thanks.
Hi Syabab,

I am sorry but currently there is not option to hide profile type from display in the 'browse by profile type' section. If you really need to hide some of the profile types, you will need to hack your EasySocial.

To do this, open the file 'JOOMLA/components/com_easysocial/views/users/view.html.php' and look for below block of code at line 250:


$profiles = $profilesModel->getProfiles(array('state' => SOCIAL_STATE_PUBLISHED, 'includeAdmin' => $admin, 'excludeESAD' => true, 'validUser' => true, 'showCount' => $showProfilesCount));


Replace the above with:


$excludeProfileIds = array('1', '2');
$profiles = $profilesModel->getProfiles(array('state' => SOCIAL_STATE_PUBLISHED, 'includeAdmin' => $admin, 'excludeESAD' => true, 'validUser' => true, 'showCount' => $showProfilesCount, 'excludeProfileIds' => $excludeProfileIds));


Now, you need to replace the ids in $excludeProfileIds to your own id. Separate each profile ids with a comma. To get the Profile ids, you can check at your EasySocial backend under Users -> Profile Types page. Please see http://take.ms/EA4OI

Hope this help and have a nice day
Sam
·
Saturday, 18 November 2017 14:33
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post