Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-02-2014, 09:35 AM
Benjidog Benjidog is offline
 
Join Date: Nov 2014
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 12-02-2014, 09:43 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 12-02-2014, 09:49 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Files
File Type: xml vbulletin-plugins_100_perpage_online.xml (292 Bytes, 7 views)
Reply With Quote
Благодарность от:
Benjidog
  #4  
Old 12-02-2014, 11:28 AM
Benjidog Benjidog is offline
 
Join Date: Nov 2014
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Благодарность от:
ozzy47
  #5  
Old 12-02-2014, 08:52 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent, glad it did what you needed.
Reply With Quote
  #6  
Old 08-17-2015, 08:05 AM
HappyAndyK HappyAndyK is offline
 
Join Date: Jun 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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....
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:54 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.03853 seconds
  • Memory Usage 2,239KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (2)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete