News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Bug: Users Online

Started by Overseer, July 28, 2003, 07:10:40 PM

Previous topic - Next topic

Overseer

Sometimes doesn't show me, and I know i'm here.

Plus I can see two or three people have just posted within a couple seconds of me and its showing.
(like now its showing 1 online that isnt me, and i'm sure at least 3 people are active right now)

[Unknown]

I'm not sure what the problem with it is... EXCEPT that it only updates every like 20 seconds.

-[Unknown]

David

Yeah, this is funky for me too.  Have noticed it on devel too.  It doesn't always show people online that were online the click before.  Does it no longer keep you online for 15 minutes?
This space for rent.

andrea

Indeed, suddenly I am not online any longer.

Andrea Hubacher
Ex Lead Support Specialist
www.simplemachines.org

Personal Signature:
Most recent work:
10 Aqua Themes for SMF



[Unknown]

I changed this:
   // Don't mark them as online more than every so often.
   if (!empty($_SESSION['log_time']) && $_SESSION['log_time'] + 20 >= time())
      return;
   $_SESSION['log_time'] = time();

To this:
   // Don't mark them as online more than every so often.
   if (empty($_SESSION['log_time']) || $_SESSION['log_time'] < time())
      $_SESSION['log_time'] = time();
   elseif ($_SESSION['log_time'] >= (time() - 20))
      return;

And suddenly 4 people pop online and stay that way.  I think it may be fixed ;D.  Just... not quite... sure... why..?

-[Unknown]

Gobalopper

It had to be that first if statement acting weird, !empty could have been acting screwy in certain cases maybe...

Ben_S

Not sure if its fixed, andrea has just posted 34 seconds before me and she doesnt show as online, and the number of guests is 0 so I dont think she has logged out.
Liverpool FC Forum with 14 million+ posts.

Ben_S

Yep, deffo doesnt seem to be fixed as she is still posting but not showing as online.
Liverpool FC Forum with 14 million+ posts.

[Unknown]

Darn... what's the blinking issue, then?

-[Unknown]

Overseer

how do they get chosen to be removed from being online?

Gobalopper

Maybe its the REPLACE INTO query then?

[Unknown]

*glares at bug..*

AND STAY FIXED.

-[Unknown]

Overseer

umm....


Quote37 Guests, 1 Users
Overseer

and before ya worry.. the guests number went up and up because noticed it was increasing by one every time i clicked the 'home' link (for the front page.. not the 'home' button on the forum.


Overseer

another thing.. i'm on a network behind a firewall here at work..

i just got my test/2nd pc and came to the site (as guest) using my test pc knocks my 'work' pc off the online list, and vice versa.

Daniel D.

That's great ! But you should be able to set a max. number.

[Unknown]

LOL.

Okay, the problem was that you didn't have a session id for some reason... SCURVY BUM!

So each time, as you were a guest, it inserted a new entry for your session (which is now the primary key.)

I thought that would work :'(.

-[Unknown]

Advertisement: