vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Total Number of Users Online Now on Every Page (https://vborg.vbsupport.ru/showthread.php?t=59722)

Erwin 01-04-2004 10:00 PM

Total Number of Users Online Now on Every Page
 
Again, all credit goes to Chen for the original hack.

I've merely modified it, so that two extra queries are saved on forumhome - there's no point running the queries again since index.php has already calculated it.

This hack modifies 1 php file and 2 templates. It's easy.

Using my method, you save yourself 2 queries on forumhome. We use this at vB.org too. ;)

Instructions in the HTML file zipped below.

Koutaru 01-05-2004 09:41 AM

Am I fast or what? Anyway.. I'm installing this one too since I installed it for vb2. If needed, I might just use users online to save myself a query.

You can also use $headerusers and $headerguests in the templates as well correct?

As in there are $headerusers users and $headerguests guests online.

FleaBag 01-05-2004 07:34 PM

Nice work Erwin, I used the original until recently. When I eventually move over I shall definitely install this.

MGM 01-06-2004 12:21 AM

Nice!! I'll definetily use this!

/me clicks Install

MGM out

Destee 01-06-2004 06:13 AM

Thank You Erwin For Sharing !!! It's Installed.

Destee

Boofo 01-10-2004 05:00 AM

Erwin, does this handle private and password protected forums, too? I have an area on my site that is password protected as well as private and if you are in there, it only shows I user online no matter how many there are online. Any way to fix that?

Erwin 01-10-2004 06:05 AM

Quote:

Originally Posted by Boofo
Erwin, does this handle private and password protected forums, too? I have an area on my site that is password protected as well as private and if you are in there, it only shows I user online no matter how many there are online. Any way to fix that?

Weird, because my password-protected/ private forums show the numbers correctly. Is this a problem with anyone else?

neocorteqz 01-10-2004 06:36 AM

Quote:

Originally Posted by Erwin
Weird, because my password-protected/ private forums show the numbers correctly. Is this a problem with anyone else?

Lemme install and test it.

neocorteqz 01-10-2004 06:57 AM

So far so good.

Boofo 01-12-2004 09:45 PM

I found the problem. I had put the code in the navbar instead of the header. Apparently although the navbar shows up on every page, something messes it up when you go into any threads.


All times are GMT. The time now is 12:30 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.01016 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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