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

XF 1.1 Tooltip just for not logged in Users

Discussion in 'XenForo Questions and Support' started by TsinJu, May 15, 2013.

  1. TsinJu

    TsinJu Well-Known Member

    I am working on a small HTML Code and want to make a tooltip just to Users visible, that are not logged in.
    Here is what i have till now...
    Code:
    <a href="{xen:link 'forums/questions.213'}" class="Tooltip" title="You must be logged into the Forum">
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. TsinJu

    TsinJu Well-Known Member

    Ahh nice. Thanks. Lots of things i can use ;)
     
  4. TsinJu

    TsinJu Well-Known Member

    Seems to be harder then i thought :/
    This is the current code
    Code:
    Write us at <a href="{xen:link 'forums/questions.213'}" class="Tooltip" title="You must be logged into the Forum">Support Forum</a> or <a href="{xen:link 'chat/'}">IRC Channel</a>.
    If i add <xen:if is="!{$visitor.user_id}"> to show the Tooltip just to Guests like
    Code:
    Write us at <a href="{xen:link 'forums/questions.213'}" <xen:if is="!{$visitor.user_id}"> class="Tooltip" title="You must be logged into the Forum"></xen:if>Support Forum</a> or <a href="{xen:link 'chat/'}">IRC Channel</a>
    This part "Support Forum</a> or <a href="{xen:link 'chat/'}">IRC Channel</a>" is also affected, but shouldn´t.
    I just want the Tooltip appear to Guests.

    I hope someone can help me. Thank you!
     

Share This Page