vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Visitor Totals Last 24hrs (https://vborg.vbsupport.ru/showthread.php?t=100671)

tcs 11-14-2005 11:22 PM

Quote:

Originally Posted by amykhar
Typo in the install file.

Code:

$vbulletin->db->query_write("
        DELETE FROM " . TABLE_PREFIX . "session
        WHERE lastactivity < " . intval((TIMENOW - 86400]) . "
        ### Delete stale sessions ###

Should be
Code:

$vbulletin->db->query_write("
        DELETE FROM " . TABLE_PREFIX . "session
        WHERE lastactivity < " . intval((TIMENOW - 86400)) . "
        ### Delete stale sessions ###


Thanks, There was a typo on my part. If you have the final spider code input let me know and I will add it and your credits to the install.

Zip file is updated.

amykhar 11-14-2005 11:54 PM

With this code running, I am having the same error others are reporting. The results are for one hour, even though it's been running for several. I am at work right now and won't be able to analyze the code till later. If I figure out what's amiss, I'll let y'all know.

JTyson 11-15-2005 12:15 AM

Ive said it before but cleanup2.php also has the same delete statement in it that needs to be modified.

caliman 11-15-2005 12:16 AM

Quote:

Originally Posted by JTyson
Ive said it before but cleanup2.php also has the same delete statement in it that needs to be modified.

So is it working for you JTyson?

Paul M 11-15-2005 12:41 AM

Quote:

Originally Posted by tcs
Thanks, There was a typo on my part. If you have the final spider code input let me know and I will add it and your credits to the install.

Zip file is updated.

This bit
Code:

intval((TIMENOW - 86400))
only needs one bracket each side. :)

caliman 11-15-2005 01:26 AM

So does this thing work for you Paul? Anybody? Seems like the behavior I described earlier is still happening for a few people here.

tcs 11-15-2005 01:36 AM

Quote:

Originally Posted by Paul M
This bit
Code:

intval((TIMENOW - 86400))
only needs one bracket each side. :)


Thanks, Fixed it in the zip file. Also added to change cleanup2.php. I can concede that this might need to be changed even though it works fine on my site without this additional change.

For those that don't wish to download the zip again this is the code. If you don't wish to change it the (( is fine too.

Code:

$vbulletin->db->query_write("
        DELETE FROM " . TABLE_PREFIX . "session
        WHERE lastactivity < " . intval(TIMENOW - 86400) . "
        ### Delete stale sessions ###

Chuck

amykhar 11-15-2005 02:30 AM

I'm not so sure about the quality of the data. Right now, it's saying I've had 59 members on in the last 3 hours - but my Total Members that have visited the site today says only 46 have logged in today.

Amy

tcs 11-15-2005 10:33 AM

Quote:

Originally Posted by amykhar
I'm not so sure about the quality of the data. Right now, it's saying I've had 59 members on in the last 3 hours - but my Total Members that have visited the site today says only 46 have logged in today.

Amy

No it is doing what it is meant to do. It is a Hit counter for a day. Counts all the visitors to your site. If you visit your site twice then that is 2 registered members hit's.

Now it has a error, it didn't clean out at midnight last night and I need to figure out why, I am pulling the hack till I get it back to the way I intended it to work.

COBRAws 11-15-2005 03:56 PM

Quote:

Originally Posted by amykhar
With this code running, I am having the same error others are reporting. The results are for one hour, even though it's been running for several. I am at work right now and won't be able to analyze the code till later. If I figure out what's amiss, I'll let y'all know.

same here, more than 36hrs running and only see the last hour stats.

Will wait till tcs works on the redo :D


All times are GMT. The time now is 06:28 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.01960 seconds
  • Memory Usage 1,744KB
  • 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
  • (5)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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