View Full Version : Limiting Profile Social Groups Count
Sweeks
04-11-2009, 11:30 AM
How can I limit the amount of user created social groups in members profiles? I swear I have seen the option in the past somewhere but I cant find it now.
Thank you :D
________
UPSKIRT CANDID (http://www.++++tube.com/categories/1110/candid/videos/1)
Lynne
04-11-2009, 02:44 PM
I don't believe that is an option. I think it is hardcoded into the php page.
Check these files which are called right before the templates are evaled:
require_once(DIR . '/includes/class_userprofile.php');
require_once(DIR . '/includes/class_profileblock.php');
Sweeks
04-11-2009, 04:09 PM
I have found this within the class_profileblock.php
$membergroups = fetch_membergroupids_array($this->profile->userinfo);
$this->block_data['membergroupcount'] = 0;
$membergroupbits = '';
foreach ($membergroups AS $usergroupid)
I am guessing I should add a number to the membergroupcount instead of 0 which I am guessing means all?
Thanks
--------------- Added 1239469985 at 1239469985 ---------------
Okay, I have changed 0 to 5 now and it is displaying 5 groups created, not sure in what order though. But I have noticed at the top of the block it says this:
Public Usergroups: (5) and then:
User-Created Social Groups: (5)
Not sure if that is correct or what Public Usergroups means.
________
ASIAN YOUNG (http://www.++++tube.com/categories/139/young/videos/1)
Lynne
04-11-2009, 04:52 PM
Public Usergroups are the ones that you set in the Usergroup Manager to be Publicly Joinable.
Sweeks
04-11-2009, 05:02 PM
Must be the wrong part then.
________
BRUNETTE BLONDE (http://www.++++tube.com/categories/413/blonde/videos/1)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.