Support Forum

Those using RSS feeds showing as permanently online

CF Conrad_Farlow
Conrad_Farlow
Member

Any users who are subscribed to ‘All Forums’ RSS feeds seem to be showing as permanently online in the ‘Currently Online’ stats in the footer.

How can I prevent this from happening? Is it intentional or a bug? If it’s intentional I don’t like itfrown

26 Answers

New Answer

MP Mr Papa
Mr Papa
Member

don’t like it eh? rolleys

its an interesting issue – not one we have heard before, but thinking about it, I can see how it possibly could be happening…

I will open a ticket to look into it…  thanks for the heads up…

CF Conrad_Farlow
Conrad_Farlow
Member

You know why I don’t like it dontcha? Cos I get PMs saying how come such and such can stay logged in all the time and I can’t? Then I have to give it the explanation again laugh

MP Mr Papa
Mr Papa
Member

well, its nothing new…  if its an issue, and as I said, I can envision such an issue, its probably been that way forever…

we probably need to disable our online tracking stuff for forum feeds… have opened a ticket to investigate…

CF Conrad_Farlow
Conrad_Farlow
Member

Hi Steve I see from the bug tracker that this is still being tested, can you post here when you are finished please.

Conrad

MP Mr Papa
Mr Papa
Member

its been tested locally and works… but we have not updated our live site to use it yet, so we dont close the ticket until that happens…

its a one line change.. grab it and see… would be good info for us to have too…

CF Conrad_Farlow
Conrad_Farlow
Member

OK I have done the change, I suppose that I won’t see it work until the stats are collected in 15 minutes assuming that 0.25 hours is a valid update value. It might be an idea to put whether it is a whole number integer or not in the help.

Conrad

CF Conrad_Farlow
Conrad_Farlow
Member

Is it valid to put 0.25 for the stats update interval or does it need to be a whole integer? I have set it to 1hr again because it does not appear to work with the interval set to 0.25 hrs.

MP Mr Papa
Mr Papa
Member

yes 0.25 should be valid…  the time gets converted to milliseconds for wp and its cron…

keep in mind that cron times wont be exact with wp…  should kick off first time after someone visits the site after the expected time…

CF Conrad_Farlow
Conrad_Farlow
Member

This does not appear to be working for me, here is a code excerpt from my sp-db_statistics.php file.

 

function sp_track_online() {

    global $spThisUser, $sfvars;
    
# dont track feed views

    if ($sfvars['pageview'] == 'feed') return;

    if ($spThisUser->member) {

        # it's a member

        $trackUserId = $spThisUser->ID;

        $trackName = $spThisUser->user_login;

    } else {

        # Unknown guest

        $trackUserId = 0;

        $trackName = $spThisUser->ip;

    }
CF Conrad_Farlow
Conrad_Farlow
Member

Bizarrely the user who was showing as permanently logged in due to the RSS feed does appear to have vanished from the stats. Did he perhaps need to log in to the forum?

It seemed to take several hours since I changed the update frequency from 0.25 hrs to 1 hr.

Conrad

MP Mr Papa
Mr Papa
Member

yes or some time.  the online tracking stuff needs to clear itself out first…

CF Conrad_Farlow
Conrad_Farlow
Member

More weirdness look at the image:

double_entry.png

 

 

Mr Kelly (he of the RSS feed) is visible twice. He does occasionally vanish but in a very unpredictable manner. I would have consider this not working properly.

What can we try next?

MP Mr Papa
Mr Papa
Member

odd. at a loss.  not sure how they could be tracked online twice…  and dont seem able to duplicate… will have to let Andy weight in with some ideas since he knows the track stuff better than I…