Topic #3415 (no title)
0 guests and 0 members have recently viewed this.
The top 3 point earners from 14th Dec 2025 to 21st Dec 2025.
| PDStig |
|
|
|---|---|---|
| Gabri |
|
|
| sholzy |
|
|
There are no events at this time
(Click to enlarge)
#2510 - Browser and OS not showing on main site, but showing on MSN
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.