vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Change the numeber of members viewing (https://vborg.vbsupport.ru/showthread.php?t=240006)

nicheflixxx 04-07-2010 06:02 PM

Change the numeber of members viewing
 
hi,
what file and where in the code can i change setting to the number of members viewing in Vbulletin forum. Example (12 viewing) change to (150 viewing) for vb4.
thanks

nicheflixxx 04-18-2010 05:16 PM

bump..please help

Lynne 04-18-2010 07:53 PM

I've posted the plugin code for this a few time.

Try:
hook location: forumbit_display
PHP Code:

$forum['browsers'] = 100 $forum['browsers'];
$show['browsers'] = ($vbulletin->options['displayloggedin'] AND !$forum['link'] AND $forum['browsers'] ? true false); 

Change 100 to whatever you look.

nicheflixxx 04-18-2010 08:07 PM

can u give us the link to the plugin

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

ok, got it working. is there a way to make the numbers random for all the forum topics.
for example forum 1 would show 30 viewing, forum 2 would show 60 viewing, etc.. where it actually looks more realistic if u have only a few members on ur site.

Lynne 04-18-2010 08:58 PM

It's just php. You can look into a php function that generates a random number between x and y and apply it.
PHP Code:

$forum['browsers'] = rand(1,50) + $forum['browsers'];
$show['browsers'] = ($vbulletin->options['displayloggedin'] AND !$forum['link'] AND $forum['browsers'] ? true false); 

That's just a simple one. You can modify to suit your needs and make it look more realistic.

nicheflixxx 04-18-2010 10:08 PM

Quote:

Originally Posted by Lynne (Post 2023419)
It's just php. You can look into a php function that generates a random number between x and y and apply it.
PHP Code:

$forum['browsers'] = rand(1,50) + $forum['browsers'];
$show['browsers'] = ($vbulletin->options['displayloggedin'] AND !$forum['link'] AND $forum['browsers'] ? true false); 

That's just a simple one. You can modify to suit your needs and make it look more realistic.

thank you very much for ur help. worked out perfectly.

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

Quote:

Originally Posted by Lynne (Post 2023419)
It's just php. You can look into a php function that generates a random number between x and y and apply it.
PHP Code:

$forum['browsers'] = rand(1,50) + $forum['browsers'];
$show['browsers'] = ($vbulletin->options['displayloggedin'] AND !$forum['link'] AND $forum['browsers'] ? true false); 

That's just a simple one. You can modify to suit your needs and make it look more realistic.

last question,
what about a plugin for disabling or changing the "Most users ever online was"

Lynne 04-19-2010 03:58 AM

You may just edit that line out of the FORUMHOME template if you don't want it showing.


All times are GMT. The time now is 05:29 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.01052 seconds
  • Memory Usage 1,741KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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