Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted December 22, 20204 yr 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?
December 22, 20204 yr 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}}
December 22, 20204 yr Author 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.