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)
-   -   Who was online today [available in english & german] (https://vborg.vbsupport.ru/showthread.php?t=34014)

Mystics 06-08-2002 06:31 AM

Have you replaced the code in online.php with the newest version??? (it got changed in 1.3 (I started to use version number in 1.3))

If not, do it ;)

CRego3D 06-08-2002 03:39 PM

I replaced it with the code you gave me in the previous page .. yes

chris frolic 06-11-2002 05:56 AM

Hmmm, I seem to be experiencing the same problem as above.

I installed the first version of this hack, and it worked fine. Problem was my board had over 200 visitors for the day, so at that point I decided to install the window version.

I replaced the original with the window version. At that point it stopped working, reporting 0 visitors today.

I triple checked and re-installed the installation to make sure there wasn't anything left over from the original. I reinstalled it over a older version of index.php that hadn't been hacked. I recopied the templates. Still no joy.

I also tried installing the version thats merged with online.php, and that one doesn't work either (0 visitors today).

Then I noticed something wierd (but probably related in some way); my "Most users ever online" has reset to today, with a very small number.

Anyone have any idea what might be causing this?

mashby 06-30-2002 06:38 AM

I like this hack so much, I just installed it on a new board that I'm creating. This is my second vB board to use this hack. It installed like a piece of cake. Thanks for all the hard work Mystics! Great job. :)

Velocd 07-03-2002 06:44 PM

I'm having a weird problem with this hack. Recently I found my homepage was generating an abnormal amount of queries for the small amount of hacks consisting on it. It was creating 43 queries, and that is even after I included all the templates in the $templateused="" list.

Well I was going through the index.php code, trying to find the suspect involved and I reached this hack. I was basically commenting out all the hacks individually on my index.php till I found which one was creating the excessive queries. When I commented out the who-is-online-today hack, it reduced my queries by 20! That makes me sad though, because this is one of my favorite and most useful statistical hacks I have :(

I installed everything perfect, does anyone know why this could be happening?? PM me if you would like to see my index.php.

Regards,
Velocd

g-force2k2 07-03-2002 06:58 PM

Only code from looking at the file that i don't recognize is this:

PHP Code:

  $DB_site->free_result($todayusers); 

Im not sure if its needed in the hack or not... not really sure of this free_result function but it may be the problem? just a suggestion that im not really sure about:p

g-force2k2

Velocd 07-03-2002 07:40 PM

Unfortunantly, no that wasn't the source of the problem. I tried commenting just that out but I still recieve 20 extra queries. :(

Does anyone else get this affect from using this hack?

g-force2k2 07-03-2002 07:50 PM

Code out this part

PHP Code:

  if ((int)$maxusers[2] <= $numbertodayonline) {
    
$time time();
    
$maxloggedin $maxusers[0] . " " $maxusers[1] . $numbertodayonline " $time;
    
$DB_site->query("UPDATE template SET template='$maxloggedin' WHERE title='maxloggedin'");
    
$maxusers[2] = $numbertodayonline;
    
$maxusers[3] = $time;
  } 

Then see if the amount drops or not ;\ i'd test but i don't have a server at the moment ;p

g-force2k2

Gary King 07-05-2002 03:04 PM

Popular hack :) I've seen it around most boards :D

Gary King 07-05-2002 03:16 PM

Installed :D


All times are GMT. The time now is 04:36 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.01448 seconds
  • Memory Usage 1,742KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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