PDA

View Full Version : Change the numeber of members viewing


nicheflixxx
04-07-2010, 06:02 PM
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
$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 1271626591 at 1271626591 ---------------

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.$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
It's just php. You can look into a php function that generates a random number between x and y and apply it.$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 1271632921 at 1271632921 ---------------

It's just php. You can look into a php function that generates a random number between x and y and apply it.$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.