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)

Snake 11-13-2005 11:48 AM

Thanks!

lexx27 11-13-2005 12:47 PM

It worked for the 2 first hours. No it hasnt changed for 2 or 3 hours.

Paul M 11-13-2005 01:34 PM

Quote:

Originally Posted by tcs
It uses sessions table in the mysql. It changes the cleanup.php to leave the sessions table alone for 24hrs to collect the data.

Will this screw-up the who's online displays then ?

JTyson 11-13-2005 01:36 PM

Quote:

Originally Posted by Paul M
Will this screw-up the who's online displays then ?

Doesnt seem to, http://www.fuo-motorsports.com/forum/

I had to change cleanup2.php aswell

tcs 11-13-2005 02:26 PM

Quote:

Originally Posted by Paul M
Will this screw-up the who's online displays then ?

No it will not. Online Sessions are closed and changed by the timeout settings in you admincp.


Quote:

Originally Posted by bspiller82
I got that error to. Are you saying if you wait an hour then run it, the error will not happen?

Is there a way to change the time from saying last 1 hours to last 24 if it logs the last 24 why have it say last hour?


The script will count up to 24hrs. It will track visitor throughout the day.

You change the code to do an hourly cleanup? Leave the cleanup.php original and it will do an hourly cleanup with no additional code changes.

I have never had to mess with cleanup2.php. When you first install this hack it will only track the time from the last sessions cleanup. After a cleanup it will start over or reset to 1hr again.

caliman 11-13-2005 02:36 PM

tcs ... is there a fix for this? i am holding off because of this error.

Quote:

Parse error: parse error, unexpected ']' in /home/gsnforce/public_html/forum/includes/cron/cleanup.php on line 26

tcs 11-13-2005 03:34 PM

Lines 24 to 28 should look like this:
Code:

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

You are looking for a ] extra, missing or out if place.

Post you lines and I will see if I can find it.

JTyson 11-13-2005 11:45 PM

Quote:

Originally Posted by tcs
Lines 24 to 28 should look like this:
Code:

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

You are looking for a ] extra, missing or out if place.

Post you lines and I will see if I can find it.

Might want to update your readme file as the error is in the code. :)

Code:

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


tcs 11-14-2005 02:50 AM

The one in the readme is the correct one. The code on my test site was wrong and had an error I missed.

The code you posted should work fine.

caliman 11-14-2005 04:41 AM

tcs -

Is this mod compatible with 'who has visited today?'

https://vborg.vbsupport.ru/showthread.php?t=82769


All times are GMT. The time now is 05:59 PM.

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.01186 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_code_printable
  • (6)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