Jump to content

Profile stats - shows anonymous/admins online


NerdCore
 Share

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() )}}
            <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>

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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