vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Increasing the number of groups per page in social groups (https://vborg.vbsupport.ru/showthread.php?t=327646)

kevinh 11-13-2019 07:16 AM

Increasing the number of groups per page in social groups
 
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

1 Attachment(s)
Quote:

Originally Posted by PinkMilk (Post 2601217)
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:
Code:

$perpage = $perpage ? $perpage : 20;
Line 543:
Code:

$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 [DATE]1583036794[/DATE] at [TIME]1583036794[/TIME] ---------------

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 [DATE]1583037965[/DATE] at [TIME]1583037965[/TIME] ---------------

Found it :-)

Code:

WHERE socialgrouppicture.groupid = $group[groupid]
                                $hook_query_where
                        ORDER BY socialgrouppicture.dateline DESC
                        LIMIT 5



All times are GMT. The time now is 05:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02350 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete