View Full Version : Increasing the number of groups per page in social groups
kevinh
11-13-2019, 07:16 AM
I would like to increase the number of groups per page in the list of social groups.
Does anyone know where this is set. I'm happy to edit code if necessary.
PinkMilk
11-13-2019, 08:04 PM
Unless I'm missing something...
AdminCP > vBulletin Options > Social Group Options > Default Groups Per-Page
kevinh
11-13-2019, 09:28 PM
Unless I'm missing something...
AdminCP > vBulletin Options > Social Group Options > Default Groups Per-Page
My social groups have been renamed to "Image Groups" however there is no option for Default Groups Per-Page (see attached image)
snakes1100
11-14-2019, 08:06 AM
Because youre running a version that dont have the option, upgrade to 3.8.xx to see that option.
PinkMilk
11-14-2019, 01:49 PM
I downloaded 371 looked in group.php file and found these lines:
Line 418:
$perpage = $perpage ? $perpage : 20;
Line 543:
$sorturl = 'group.php?' . $vbulletin->session->vars['sessionurl'] . "do=$doaction" . ($perpage != 20 ? "&pp=$perpage" : '');
Not tested but try changing 20 with higher/lower number.
kevinh
03-01-2020, 01:56 AM
Many thanks PinkMilk, that solved my problem!
Also, sorry for the late reply - I must have overlooked the notification that there was another reply in this thread.
--------------- Added 1583036794 at 1583036794 ---------------
Now I need to work out how to change the number of images displayed on a social group page. The default seems to be 5.
--------------- Added 1583037965 at 1583037965 ---------------
Found it :-)
WHERE socialgrouppicture.groupid = $group[groupid]
$hook_query_where
ORDER BY socialgrouppicture.dateline DESC
LIMIT 5
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.