vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   # of users in forum on forumhome (https://vborg.vbsupport.ru/showthread.php?t=38012)

Kriek 07-19-2003 06:04 PM

/me hits install

Flawless on 2.3.0 including sub-forums.

(vBulletin.org style)

K33nny 08-17-2003 08:16 AM

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.

K33nny 08-17-2003 08:20 AM

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.

Cal Poly Forum 08-17-2003 08:34 AM

Keep up with the good work man. :cool:

Floris 08-17-2003 08:34 AM

Nice work my friend :)

K33nny 08-17-2003 08:34 AM

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.

Mephisteus 08-17-2003 09:28 AM

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.

assassingod 08-17-2003 09:42 AM

Quote:

Today at 11:28 AM DarkSSJ3 said this in Post #6
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.
He mentions it has been done before (twice). His looks nicer though.
Good work

K33nny 08-17-2003 12:04 PM

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. :)

Alien 08-17-2003 07:37 PM

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
  • Page Generation 0.01170 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete