Jump to content

Profile stats - shows anonymous/admins online

Recommended Posts

Even if logged in as anonymous and as an admin. Members can't see us in the "who's online". But, they can see on our profile pages that we are online currently / x minutes ago.

This is the code from the theme core -> front -> profile -> profileHeader: 

<div id='elProfileStats' class='ipsClearfix sm:ipsPadding ipsResponsive_pull'>

{{if ( !$member->isOnlineAnonymously() ) OR ( $member->isOnlineAnonymously() AND \IPS\Member::loggedIn()->isAdmin() )}}

                <h4 class='ipsType_minorHeading'>{lang="members_last_visit"}</h4>
                    {{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>
                    {{if $member->last_activity}}{datetime="$member->last_activity"}{{else}}{lang="never"}{{endif}}


Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...