#2510 - Browser and OS not showing on main site, but showing on MSN
| Identifier | #2510 |
|---|---|
| Issue type | Trivial issue (does not break functionality) |
| Title | Browser and OS not showing on main site, but showing on MSN |
| Status | Closed (no changes needed) |
| Handling member | Chris Graham |
| Addon | General / Uncategorised |
| Description | I noticed this was no longer showing when viewing my own profile (forgot to make a ticket), but seeing it on my MSN profile made me post this. What's the difference between the two? Same files I presume. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".
Comments
(Click to enlarge)
if (((has_privilege($member_id_viewing, 'show_user_browsing')) || ($member_id_viewing == $member_id_of)) && (addon_installed('stats'))) {
$last_stats = $GLOBALS['SITE_DB']->query_select('stats', array('browser', 'operating_system'), array('member_id' => $member_id_of), 'ORDER BY date_and_time DESC', 1);
if (array_key_exists(0, $last_stats)) {
$user_agent = $last_stats[0]['browser'];
$operating_system = $last_stats[0]['operating_system'];
}
}
There are various cases here for the data not showing, all legitimate:
- User neither has "show_user_browsing" privilege on the site being viewed from nor is viewing their own profile
- stats addon is not installed on the site being viewed from
- No stats data is available on the site being viewed from for that member
- for example because it's configured to not hold long
I'd need to know that a user was being tried who had visited from both sites, that stats was on both sites, and that that user definitely was privileged on both sites or viewing their own profile on both sites.
if ((get_option('site_closed') == '1') && (get_option('stats_when_closed') == '1')) {
return;
}
If the site is closed and "Collect stats when closed" is not checked, those details won't be gathered.