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

XF 1.3 conditional for banned >?

Discussion in 'XenForo Questions and Support' started by tsak76, May 3, 2014.

  1. tsak76

    tsak76 Active Member

    whats the conditional not to show stuff to banned member ? i needed to hide the chat bar
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    <xen:if is="{$user.is_banned}">
     
  3. tsak76

    tsak76 Active Member

    thanx. i ll try it. although i assigned a banned usergroup to banned user, batch updated banned users to the banned usergroup and used the conditional for that group
     
  4. tsak76

    tsak76 Active Member

    hmmm i noticed that unbanning the user doesnt remove him from the banned usergroup though
     
  5. tsak76

    tsak76 Active Member

    well this doesnt work

    Code:
    <xen:if is="!{$isAwaitingEmailConfirmation} OR !{$user.is_banned}">
     
  6. Jeremy

    Jeremy XenForo Moderator Staff Member

    You are negating is_banned. Meaning only those who aren't banned will see it. Where are you using this?
     
  7. tsak76

    tsak76 Active Member

    i want my chat bar (facebook like chat) to be accessible to all except banned, awaiting confirmation, awaiting approval and Email invalid (bounced)


    page container template
     
  8. tsak76

    tsak76 Active Member

    Code:
    <xen:if is="!{$visitor.is_banned} AND !{$isAwaitingEmailConfirmation}">
    this works. whats the variable for awaiting approval and Email invalid (bounced) ?
     

Share This Page