vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Change Who's Online default for users per page (https://vborg.vbsupport.ru/showthread.php?t=315773)

Benjidog 12-02-2014 09:35 AM

Change Who's Online default for users per page
 
This query relates to vb4 version 4.2.2. The default setting for the number of online users per page on the Who's Online screen is 20 and I want to change this to 100. There is nothing to change this in the "Who's Online" section of the Settings.

I have looked at the page with Firebug and can't find anything particularly helpful there - see below.

<div class="blockrow">
<label for="pp">Per Page:</label>
<input id="pp" class="numeric textbox" type="text" tabindex="1" size="5" value="20" name="pp">
</div>


The URL when looking at this screen shows online/php but I can find nothing hard-coded in there so am at a loss to locate the relevant setting.

Not a big deal but if anyone knows how to change this I would appreciate your advice

ozzy47 12-02-2014 09:43 AM

That is controlled by, ACP --> Settings --> Options --> Forum Display Options (forumdisplay) the setting, Maximum Displayed Threads Before Page Split

Now it you do not want to change that setting you can edit the online.php file, find this bit of code.
PHP Code:

$perpage sanitize_perpage($perpage200$vbulletin->options['maxthreads']); 

And change it to this.
PHP Code:

$perpage sanitize_perpage($perpage200100); 

You will have to re apply the edit each time you upgrade your site. :)

ozzy47 12-02-2014 09:49 AM

1 Attachment(s)
Or you can, go to ACP --> Plugins & Products --> Download / Upload Plugins, scroll to the bottom till you see this block, Import Plugin Definitions XML File then import the attached plugin.

Then you will not have to change any files. :)

Benjidog 12-02-2014 11:28 AM

Thank you Ozzy for a fast and comprehensive reply. I will try this out later today.

Regards,

Brian Watson

--------------- Added [DATE]1417543048[/DATE] at [TIME]1417543048[/TIME] ---------------

I applied the XML solution and it worked a treat.

Thank you once again Ozzy.

Regards,

Brian

ozzy47 12-02-2014 08:52 PM

Excellent, glad it did what you needed. :)

HappyAndyK 08-17-2015 08:05 AM

If i set default user per page to 100,
how can i make it use the new settings so it automatically lists 100 users when clicking on "Who?s Online" ?
Without having to click on the display-button....


All times are GMT. The time now is 01:03 AM.

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.01780 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
  • (2)bbcode_php_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