![]() |
I think that the users are listed twice (or multiple's) because you now also select the location...
When you have 2 sessions from the same user now everything will be the same (session.userid,username,invisible) except for the location... So DISTINCT doesn't work then, because he 'sees' those 2 records as two different ones because of the locationfield... There could be a workaround on this...Make an array or something; New record -> userid allready in the array? skip it...otherwise -> add userid to array -> list user Only troubles would be with guests then...or you can check on the ipaddress if (s)he's allready listed |
Hi. I installed this hack today and my prob is that when someone comes on, they pop on whos online quickly. But when they leave the site it takes around 15 minutes before it knows they left.
How can I fix this? |
I lowered my cookie timeout to 60 seconds to "cover up" this problem. But I would really appreciate a true fix to this problem.
|
This is the exact same way the Who's Online on the front page of your forums works, and there's no way around it unless you leave your cookie timeout at a very low number (which I would not suggest). Hence, there's really no "fix", although I don't consider it a problem.
|
How come normally it works though? Before I did this, it worked right a way. Is there anything I may have accidentally done, that would make it take so long?
Thanks for advice on Cookie Timeout. I will put it back at a higher number. |
just installed this and found there are two instances of this found in sessions.php
PHP Code:
i replaced both any problems with that ? |
Maybe what Eva posted above is the problem. :cool:
|
Quote:
|
Sorry, in that other thread I meant what line number...but anyway actually you should be putting it in both places - the first one should be covered by finding line 195 and the second line 237. :)
|
Ok, I have this correct then.
Thanks Kevin. |
All times are GMT. The time now is 08:58 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|