Current location isn't very accurate
Submitted Rimi, Jun 15 2012 09:22 AM | Last updated Sep 18 2012 10:46 AM
The current location in the hovercard says that I'm viewing this thread (probably won't be by the time you read this post).
http://community.inv...etin-5-preview/
However, I've made a post and a tracker issue since last viewing that thread so don't know why it still says I'm viewing it.
http://community.inv...etin-5-preview/
However, I've made a post and a tracker issue since last viewing that thread so don't know why it still says I'm viewing it.
| Status: | Cannot Reproduce |
| Version: | 3.3.3 |
| Fixed In: | 0 |











9 Comments
Right now my userhovercard is saying that I'm browsing this topic.
http://community.inv...-is-the-reason/
Which isn't the case.
But if I turn my phone on and go in the browser it turns out that my phone is still on that page.
Which is weird. I don't know why it's pulling that information from my phone's session (note this isn't the app, just a browser on the mobile skin).
I can actually reproduce this successfully. On my phone I went to this thread.
http://community.inv...simplification/
And then in another tab on my laptop I refreshed a few times, clicked through a few threads and then checked the hovercard location and it's still saying that I'm in the "simplification" thread. So I think that if I log in with a mobile user agent then my current location is getting locked to what's on the mobile user agent? Maybe it's a problem with me having two sessions going on at once?
Also phone is android browser is boat browser, but I've reproduced on opera mobile too.
See also: http://community.inv...-updated-r38390
when you throw an IPSMember::load or buildDisplayData for a 'content' item's author(this could be any load off of a member id anywhere) and the user you load IS the current user, the last_activity is wrong, or not 'fresh' take your pick.
In debug of this, I found that if I when attempting to nab that data, throw in a quick check and reset it is correct....
if($this->memberData['member_id'] && $this->memberData['member_id']==$mid) { $topmembers[$mid] = $this->memberData; $topmembers[$mid]['last_activity'] = time(); } else { $topmembers[$mid] = IPSMember::buildDisplayData($mid); }for example... dunno what went left but i get the feeling the sessions class needs to hard-code in that data for the current user.-