Help please - counts backward

This mod will register when the user last logged in, allong with the info about how meny users have visited the board

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Help please - counts backward

Postby Momo on Mon 31. Oct, 2005 22:11

It counts backward, just the last visti-mod shows 51 users today, ten minutes later there are 49. And 20 minutes later there are 38. Two hours later there are 56 again and then it counts backward again. What is wrong, anyone an idea? Please, its urgent. :?
Momo
Poster
Poster
 
Posts: 4
Joined: Wed 06. Aug, 2003 13:18

Re: Help please - counts backward

Postby inggoody on Wed 02. Nov, 2005 04:46

Momo wrote:It counts backward, just the last visti-mod shows 51 users today, ten minutes later there are 49. And 20 minutes later there are 38. Two hours later there are 56 again and then it counts backward again. What is wrong, anyone an idea? Please, its urgent. :?


My forum has the same problem as Momo.
Is there any way to fix it?
inggoody
Poster
Poster
 
Posts: 2
Joined: Tue 21. Dec, 2004 16:36

Postby Momo on Wed 02. Nov, 2005 12:20

I´ve found the solution (actually not me, but another user :D )

Its an error after an update in the session.php.

Find:

$sql = 'DELETE FROM ' . SESSIONS_TABLE . '
WHERE session_time < ' . (time() - (int) $board_config['session_length']) . "
AND session_id <> '$session_id'";


Replace with:

$sql = "DELETE FROM " . SESSIONS_TABLE . "
WHERE session_time < '" . (time() - 86400) . "'
AND session_id <> '$session_id'";


Now it works 8)
Momo
Poster
Poster
 
Posts: 4
Joined: Wed 06. Aug, 2003 13:18

Postby ErnadoO on Wed 02. Nov, 2005 12:26

and why by this:
Code: Select all
$sql = "DELETE FROM " . SESSIONS_TABLE . "
            WHERE UNIX_TIMESTAMP() - session_time >=172800
            AND session_id <> '$session_id'";

?
ErnadoO
Poster
Poster
 
Posts: 14
Joined: Wed 13. Apr, 2005 22:52
Location: France

Postby Momo on Wed 02. Nov, 2005 12:51

try the same:

this
WHERE UNIX_TIMESTAMP() - session_time >=172800


replace with this:
WHERE session_time < '" . (time() - 86400) . "'


Does it work? Try it please. (Don`t forget a backup)
Momo
Poster
Poster
 
Posts: 4
Joined: Wed 06. Aug, 2003 13:18

Postby ErnadoO on Wed 02. Nov, 2005 13:57

I replaced, no problemes for the moment; wait and seee ;)
Image
ErnadoO
Poster
Poster
 
Posts: 14
Joined: Wed 13. Apr, 2005 22:52
Location: France

Postby ichda on Sun 06. Nov, 2005 13:26

i have the same problem i change the parts u say but it counts back......
ichda
Poster
Poster
 
Posts: 8
Joined: Sat 20. Aug, 2005 12:09

Postby acoolwelshbloke on Sun 06. Nov, 2005 22:47

CHECK WHAT VERSION OF SESSIONS.PHP YOU HAVE AS I KNOW PEOPLE HAVE BEEN USING OLDER VERSIONS OF SESSIONS.PHP WITH THE 2.0.18 VERSION OF PHPBB AND THEN ADDING THE NEW SCRIPT TO IT HENSE CAUSING THIS PROBLEM!
www.thegamersforums.com
<b><u>For All Your Gaming Needs!</u></b>
acoolwelshbloke
Poster
Poster
 
Posts: 66
Joined: Wed 02. Nov, 2005 15:09

Next

Return to Last visit [2.0.10/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron