Home arrow Forum "Total time logged in" not working
  Welcome, Guest. Please login or register.
Did you miss your activation email?
January 09, 2009, 02:03:30 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.1.x (Moderators: -Wolverine, kai920)
| | | |-+  "Total time logged in" not working
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: "Total time logged in" not working  (Read 2953 times)
Rascal71
Joomla Pro
**

Karma: +5/-1
Offline Offline

Posts: 67


View Profile
"Total time logged in" not working
« on: February 01, 2006, 02:51:11 AM »

It seems that the "Total time logged in" still doesn't work in this version.
I've been logged in to my test forum for 15 minutes now and it still says 0 minutes...
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: "Total time logged in" not working
« Reply #1 on: February 01, 2006, 07:24:02 AM »

It seems that the "Total time logged in" still doesn't work in this version.
I've been logged in to my test forum for 15 minutes now and it still says 0 minutes...
test to make sure this isn't a SMF problem if you can. 
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Rascal71
Joomla Pro
**

Karma: +5/-1
Offline Offline

Posts: 67


View Profile
Re: "Total time logged in" not working
« Reply #2 on: February 01, 2006, 08:02:42 AM »

It works fine when logging in to the forum directly instead of going through Joomla.
Logged
Charles Williams
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 31


View Profile
Re: "Total time logged in" not working
« Reply #3 on: February 01, 2006, 03:42:16 PM »

This has always been an issue with the Joomla-SMF 1.0.2a bridge.  If 1.1 is based on that bridge, then it probably has not been fixed.
Logged
Rascal71
Joomla Pro
**

Karma: +5/-1
Offline Offline

Posts: 67


View Profile
Re: "Total time logged in" not working
« Reply #4 on: February 02, 2006, 03:32:05 AM »

This has always been an issue with the Joomla-SMF 1.0.2a bridge.  If 1.1 is based on that bridge, then it probably has not been fixed.

I know...I'm just saying that the problem is still present in 1.1 Beta....
I haven't seen a change list so I don't know what issues should be fixed from 1.02a ...
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: "Total time logged in" not working
« Reply #5 on: February 02, 2006, 01:32:36 PM »

I'll add it to the list and take a look.  I am guessing it is something inside SMF that uses the session to calculate this time and because Joomla-SMF bridges the sessions of Joomla and SMF the problem must be there.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
1c3_m4n
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Re: "Total time logged in" not working
« Reply #6 on: February 02, 2006, 07:42:47 PM »

I dunno if this is the best way to fix that error, but till now it is working fine:

edit Sources/Subs.php

around line 2536 u got:
if (SMF != 'SSI' && !empty($user_info['last_login']) && $user_info['last_login'] < time() - 60)

change to:
if (!empty($user_info['last_login']) && $user_info['last_login'] < time() - 60)

and bellow about line 2540 comment this lines:
                if (time() - $_SESSION['timeOnlineUpdated'] > 60 * 15){
                      $_SESSION['timeOnlineUpdated'] = time();
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: "Total time logged in" not working
« Reply #7 on: February 03, 2006, 09:08:09 AM »

Hey thanks IceMan!  I'll take a look and see if this does the trick!
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Dallas Grant
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 12



View Profile WWW
Re: "Total time logged in" not working
« Reply #8 on: February 04, 2006, 10:12:24 PM »

and bellow about line 2540 comment this lines:
                if (time() - $_SESSION['timeOnlineUpdated'] > 60 * 15){
                      $_SESSION['timeOnlineUpdated'] = time();


I found that you don't need to comment the that line at all and it will work fine with the change in the script above that line (in fact, I ran into an error with the above comment because of the added { )
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: "Total time logged in" not working
« Reply #9 on: February 05, 2006, 12:19:11 AM »

the one line change worked for me.  Gonna patch it in for 1.1.  Good Work Ice Man.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
1c3_m4n
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Re: "Total time logged in" not working
« Reply #10 on: February 05, 2006, 05:31:12 AM »

I found that you don't need to comment the that line at all and it will work fine with the change in the script above that line (in fact, I ran into an error with the above comment because of the added { )
Ooops my bad, I forgot to say, u gotta comment the " } " of
if (time() - $_SESSION['timeOnlineUpdated'] > 60 * 15){
                      $_SESSION['timeOnlineUpdated'] = time();

but do not comment the code between it. The reason I commented these lines is that above about 10-15 lines there is the exact same code, so it executes 2 times, there is no reason  to do that, cause it will "loose" some seconds of total time online

the one line change worked for me.  Gonna patch it in for 1.1.  Good Work Ice Man.

Ty  Grin
« Last Edit: February 05, 2006, 05:35:52 AM by 1c3_m4n » Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login