This is a modified version of Neo and FireFly's "# of users on forumhome". This hack uses templates to control certain aspects of it. It likely resembles the version Jelsoft used with vBulletin 3 but seeing as how I haven't even downloaded it yet I decided to accomplish the same with vBulletin 2.
. If there is 1 user browsing, you can have it say "1 user" instead of "1 users"
. If there are 0 users browsing, nothing will show up at all.
Note: It does not currently work for sub-forums as far as I can tell, I am looking into that to see if I can figure out to do that.
Example:
http://www.ewplanet.org/e/index.php?s=
NOTE: If you find this hack useful and plan on using it, click install.
[v 1.1 fixes]
+ Added templates to $templatesused to save 1 query.
++ Thanks to Mist & Alien for the suggestion.
+ Added forumdisplay_nobrowsers template just incase people want to display something for 0 users browsing.
++ Thanks to MadCat75 for the suggestion.
[v 1.2 fixes]
+ Changed $browsers variable to $numbrowsers variable in template forumdisplay_nobrowsers
++ Thanks to MadCat75 for the alert.
[v 1.3 fixes]
+ Changed $numbrowsers variable back to $browsers in template forumdisplay_nobrowser.
++ Got confused with one users question and made the wrong choice.
[v 1.4 fixes]
+ Assigned 0 to the variable $browsers if there were no users browsing.