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

XF 1.3 Secondary Indication of Invisible Browsing

Discussion in 'Styling and Customization Questions' started by Amaury, Mar 17, 2014.

  1. Amaury

    Amaury Well-Known Member

    Currently, you can style invisible members -- personally, I remove the text color and make them bold and italic -- but I also want a secondary indicator that stands out more, because sometimes we may have planned to only be invisible for a short while, but then forget to re-enable our online status, or sometimes we may even accidentally disable our online status when logging out -- for those of us who explicitly log out.

    How easy would it to add an alert that would display as a notice saying you're invisible? It would be pretty much like how you get an automatic notice when you turn the forum off.

    Invisible Notice.png
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Use this in one of the ad_ templates, e.g. ad_below_top_breadcrumb:
    Code:
    <xen:if is="!{$visitor.visible}">
    You are not visible!
    </xen:if>
    Style it to suit.
     
    Amaury likes this.
  3. Amaury

    Amaury Well-Known Member

    Thanks, Brogan! Is there any way to turn it into a notice just like Test Notice 1, for example?

    Invisible Notice 2.png

    I also might make a suggestion to add "User is invisible" as a user criteria, and it'd make this easier.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    It can't be added as a notice, no, as that criteria is not available.

    You can duplicate the notice styling only.
     
    Amaury likes this.

Share This Page