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)

brandy 03-28-2004 08:47 PM

My problem was fixed. I had my own variable named "$header" and this hack uses that variable name. I needed to change my variable to a different name.
Now it works, thanks!
Brandy

Tim Wheatley 03-29-2004 04:19 PM

As far as I'm aware I had it where the instructions stated... If I remember rightly above the call of the navbar template.

I did also put it in the php include template (at the top) with my existing code below it, my existing code in that template is:

Code:

// Example of how to include a seperate file:
// ob_start();
// require("yourheader.html");
// $header = ob_get_contents();
// ob_end_clean();

ob_start();
include("/data/docs/racesimcentral.com/docs/forum/banner.php");
$rsc_bannrz = ob_get_contents();
ob_end_clean();

ob_start();
include("/data/docs/racesimcentral.com/docs/forum/logos.php");
$rsc_logoz = ob_get_contents();
ob_end_clean();


Tim Wheatley 03-29-2004 05:16 PM

Got it! There is a line break in the code to be inserted due to your html file, I do run 1280.1024 but still missed it. ;)

sabret00the 04-03-2004 01:21 PM

installed without a hitch :D

calvinnguyen 04-05-2004 12:56 AM

I found out at your hack have error for this one:

'forumhome_subforumseparator_post'
);

Replace with:
'forumhome_subforumseparator_post',
'header'
);

The correct one should be this:
'forumhome_subforumseparator_post',
'header',
);

ChrisLM2001 09-29-2004 04:45 AM

Have a question: In #3 of the instructions it says to edit the header. Do you copy the header_include code and insert in there (and where)?

Thanks!

Chris

enginethatcan't 10-08-2004 06:02 PM

The number isn't showing up, why?

enginethatcan't 10-08-2004 06:04 PM

Nevermind -- forgot to upload the index.php file lol

ChrisLM2001 12-01-2004 02:06 AM

Quote:

Originally Posted by Mr. Brian
Yes. No doubt!

BTW, I noticed whenever I'm trying to check/repair my db, I got this line:-

[code]soccerwi_soccerforum.soccerwi_soccerforumsession
error : The handler for the table doesn't support check[/b]

Any ideal why I got this?

thanks

If you're using a prefix, this the header template code to use (vB 3.0.3).....

PHP Code:

if (strpos($_SERVER['PHP_SELF'], 'index.php') == false) { 
$datecut TIMENOW $vboptions['cookietimeout']; 
$headerguests=$DB_site->query_first("SELECT COUNT(*) AS count FROM " TABLE_PREFIX "session WHERE " TABLE_PREFIX "session.userid=0 AND " TABLE_PREFIX "session.lastactivity>$datecut"); 
$headerusers=$DB_site->query_first("SELECT COUNT(DISTINCT(userid)) AS count FROM " TABLE_PREFIX "session WHERE " TABLE_PREFIX "session.userid>0 AND " TABLE_PREFIX "session.lastactivity>$datecut"); 
$headerguests=$headerguests[count]; 
$headerusers=$headerusers[count]; 
$totalonline=$headerguests+$headerusers


Chris

yinyang 01-06-2005 01:10 AM

first off, this hack rocks. it's perfectly elegant.

i've updated to 3.04 and it works fine. it also works on my vba cmps pages, but i think that may have to do with some of the other modules on it.

however, i just uploaded the vba links directory hack. the links.php or main page resides in a subforum called links. for the life of me, i cannot get the number of online users to show up on the links.php page.

help!! this makes my forum look totally non-uniform. i've already had to input $vboptions[bburl] (or something like that in front of every link because of the subforum issue.

is there anything that can be done to make this hack work on subforum pages as well?

-yinyang


All times are GMT. The time now is 09:49 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.01025 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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