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

XF 1.1 How can I implement xf conditions on page nodes?

Discussion in 'XenForo Questions and Support' started by RoldanLT, Mar 14, 2013.

  1. RoldanLT

    RoldanLT Well-Known Member

    Is it posible or not?
    And how?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    RoldanLT likes this.
  3. RoldanLT

    RoldanLT Well-Known Member

  4. RoldanLT

    RoldanLT Well-Known Member

    It works on Guest, but not on Un-confirmed account.
    I thought, guest and un-activated account are same groups?
     
  5. EQnoble

    EQnoble Well-Known Member

    can you paste up the code here?
     
  6. RoldanLT

    RoldanLT Well-Known Member



    I want to hide this on guest and also un-activated account.
     
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Try this:

    Code:
    <xen:if is="{$visitor.user_id}">
    
    That will be true for all users who are logged in.

    You can specify only valid logged in users like this:

    Code:
    <xen:if is="{$visitor.user_id} AND {$visitor.user_state} == 'valid'">
    
     
    RoldanLT likes this.

Share This Page