• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 Limit "Show Online Status" only for Staff

imthebest

Formerly Super120
#1
Hi, I'd like to only allow my Staff to be able to use the "Show Online Status" feature. Is that doable? It looks like there isn't an usergroup permission for that...
 

Jon W

Well-known member
#2
You can edit the account_preferences template and add an appropriate if statement to the option:
HTML:
<xen:if is="{$user.is_staff}">
    <li><label><input type="checkbox" name="visible" value="1" {xen:checked $visitor.visible} />{xen:phrase show_your_online_status}</label>
        <p class="hint">{xen:phrase this_will_allow_other_people_to_see_what_page_you_currently_viewing}</p>
    </li>
</xen:if>
 

imthebest

Formerly Super120
#3
You can edit the account_preferences template and add an appropriate if statement to the option:
HTML:
<xen:if is="{$user.is_staff}">
    <li><label><input type="checkbox" name="visible" value="1" {xen:checked $visitor.visible} />{xen:phrase show_your_online_status}</label>
        <p class="hint">{xen:phrase this_will_allow_other_people_to_see_what_page_you_currently_viewing}</p>
    </li>
</xen:if>
I'm using your add-on: http://xenforo.com/community/resources/disable-invisible-status-by-waindigo.2354/

This would be awesome: http://xenforo.com/community/threads/disable-invisible-status-by-waindigo.59891/page-2#post-790168