Support Forum
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; }
yes or some time. the online tracking stuff needs to clear itself out first...
Visit Cruise Talk Central and Mr Papa's World
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...
Visit Cruise Talk Central and Mr Papa's World
okay, lets try this... please remove anything in sftrack with pageview of feed... and see if any come back...
Visit Cruise Talk Central and Mr Papa's World
Did that and after a few minutes there were 2 entries in _sftrack with a page view of feed. One has a trackname of Brian Kelly and the other has a trackname of my IP address, presumably because my mobile device RSS reader is using the same wireless router as this machine. That is not showing in the stats though. I'll unsubscribe and delete them all again.
then I have to ask, are you sure you made the code change??? in sp-db-statistics.php... near the top of sp-track-online.php:
function sp_track_online() { global $spThisUser, $sfvars; # dont track feed views if ($sfvars['pageview'] == 'feed') return;
because not sure how you would get a track page of feed with that in place...
Visit Cruise Talk Central and Mr Papa's World
That's what I couldn't understand either so I closed down notepad++ which I use for editing and downloaded the file anew just to make sure.
Guess what?
In notepad++ the file shows the code exactly as you do above but after uploading when I re-opened the file from the server there was a very important carriage return missing at the end of line 4. So the if statement was commented out!
It did this twice by the way, even after I had corrected it, I needed to put a blank line in between lines 4 and 5.
I will have to be very careful of this in the future.
I expect that we won't be having any more problems of this nature.
Conrad
1 Guest(s)