Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
The Old Man Posted December 22, 2020 Posted December 22, 2020 Last online seems to be missing on some member profiles, I've noticed it happens here too, @ahcfor example. I don't think it's because they are using anonymous mode. Could there be any other reason for it?
Adriano Faria Posted December 22, 2020 Posted December 22, 2020 6 minutes ago, The Old Man said: I don't think it's because they are using anonymous mode It is: {{if ( !$member->isOnlineAnonymously() ) OR ( $member->isOnlineAnonymously() AND \IPS\Member::loggedIn()->isAdmin() )}} <li> <h4 class='ipsType_minorHeading'>{lang="members_last_visit"}</h4> <span> {{if $member->isOnline() AND ( !$member->isOnlineAnonymously() OR ( $member->isOnlineAnonymously() AND \IPS\Member::loggedIn()->isAdmin() ) )}} <i class="fa fa-circle ipsOnlineStatus_online" data-ipsTooltip title='{{if $member->isOnlineAnonymously()}}{lang="online_now_anon" sprintf="$member->name"}{{elseif $member->isOnline()}}{lang="online_now" sprintf="$member->name"}{{endif}}'></i> {{endif}} {{if $member->last_activity}}{datetime="$member->last_activity"}{{else}}{lang="never"}{{endif}} </span> </li> {{endif}} The Old Man and SeNioR- 1 1
The Old Man Posted December 22, 2020 Author Posted December 22, 2020 Thanks @Adriano Faria Yes that's how it should normally work but it seems like that very first $member->isOnlineAnonymously() may somehow be a false positive.
Recommended Posts