Jump to content

hide online status


Xontero

Recommended Posts

hi.

in IPS I wan to hide my online status but when I delete this code from profileHeader this action hide online status for all members:

<h4 class='ipsType_minorHeading'>{lang="members_last_visit"}</h4>
				<span>
					{{if $member->isOnline()}}<i class="fa fa-circle ipsOnlineStatus_online" data-ipsTooltip title='{lang="online_now" sprintf="$member->name"}'></i>{{endif}} {{if $member->last_activity}}{datetime="$member->last_activity"}{{else}}{lang="never"}{{endif}}
				</span>
			</li>

well how can I hide this feature for special group? for example I do not want to be seen mu status

 

Link to comment
Share on other sites

1 час назад, Arashr сказал:

hi.

in IPS I wan to hide my online status but when I delete this code from profileHeader this action hide online status for all members:


<h4 class='ipsType_minorHeading'>{lang="members_last_visit"}</h4>
				<span>
					{{if $member->isOnline()}}<i class="fa fa-circle ipsOnlineStatus_online" data-ipsTooltip title='{lang="online_now" sprintf="$member->name"}'></i>{{endif}} {{if $member->last_activity}}{datetime="$member->last_activity"}{{else}}{lang="never"}{{endif}}
				</span>
			</li>

well how can I hide this feature for special group? for example I do not want to be seen mu status

 

 {{if \IPS\Member::loggedIn()->inGroup (array(5,6))}}
				<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>
              {{endif}}

замените 5 , 6

{{if \IPS\Member::loggedIn()->inGroup (array(5,6))}}

с ваш ID group

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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