![]() |
/me hits install
Flawless on 2.3.0 including sub-forums. (vBulletin.org style) |
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. |
If you do not wish to follow one of the above links in order to view this hack in action, a screenshot has been provided.
|
Keep up with the good work man. :cool:
|
Nice work my friend :)
|
Barely work, thanks for the comments. I'm learning, slowly and this is just fun for me. I figure if I do something neat with my forums, that I should release it to this community because my community's features are great due to this place, without it it would be just forums... my small way of giving back.
|
I'm quite sure this has been done before (I know almost every hack in this damn db :p). I'll look for it to be sure.
|
Quote:
Good work |
I said it twice, said it once in the hack file, and gave a link to the original hack. I'm quite well aware of the fact that it's been done before. :)
|
How many additional queries does this add to the forumhome?
Also, anyone know if it would be helpful to add the template calls added from this hack into the templatesused line? Thanks. :) |
All times are GMT. The time now is 11: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|