Log in

View Full Version : Strange - user location not being tracked


BenSkiddle
02-25-2006, 11:10 AM
Hi
I am trying to add my non-vB pages to the whos-online, which shoud be simple.
I've included global.php with the required chdir() commands at the top of the page, and this IS working because if I dump $vbulletin it includes:


[vars] => Array
(
[sessionhash] =>
[userid] => 142
[host] => 80.193.200.233
[useragent] => Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8) Gecko/20051107 Firefox/1.5
[lastactivity] => 1140872756
[styleid] => 0
[location] => /whatson/guide.php/London/Canvas/Radio_Soulwax_presents__NITE_VERSIONS_WAREHOUSE_PA RTY/44870/
[althash] =>
[badlocation] => 0
[inforum] => 0
[inthread] => 0
[incalendar] => 0
[loggedin] => 0
[idhash] => 31c0773f39b883650d51447edd333644
[bypass] => 0
[languageid] => 0

See the location variable? all good

But when I look in the vb3_session table, nothing is there. If I filter by the userid it just shows the previous forum location that I visited over 30 mins ago, and not this location.
Any ideas why it would not be putting it into the DB (and hence not in the Whos Online page?)

Thanks
Ben

Marco van Herwaarden
02-25-2006, 11:12 AM
Did you define THIS_SCRIPT in the top of your script?

BenSkiddle
02-25-2006, 11:17 AM
no.. is that new in 3.5.x?

I must admit I am using the same as I did for 2.x - just including global?

Ben

Do I need to include this (or anything else) If I am just after the session tracking (not using templates or anything on these other pages???)

Ben