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

Regarding Conditionals

Discussion in 'XenForo Pre-Sales Questions' started by son et lumiere, Aug 23, 2015.

  1. Hi. I'm an admin over at a vB3 forum. We're likely to convert to Xenforo in the near future. I've tested Xenforo a bit and am really liking it. Unfortunately, there are some issues that I was hoping could be answered.

    My forum has several contests where members can pick the prize of being able to temporarily wear larger than normal avatars. Xenforo restricts avatar dimensions to predetermined ones. I did manage to find workarounds that allows non-standard avatar sizes to be shown. Sadly, everyone is able to wear the maximum avatar dimension I've set. I do have a possible fix for my issue but I'm not familiar enough with Xenforo's conditionals to do it at the moment. Essentially, I want to show content in a post if the poster belongs to a specific usergroup or if he/she doesn't.

    In vBulletin I can do something like this:

    <if condition="$post['usergroupid']==312">stuff</if>
    That allows me to display content in the postbit if the poster belongs to usergroup 312. If he doesn't then it doesn't appear. How would I go about doing this in Xenforo? If would solve my concerns about one of the most popular contest prizes, that we currently offer in our vb3 forum, and how the possible move to Xenforo will alter it.

    Sorry if this isn't the properly forum for this question.
  2. Amaury

    Amaury Well-Known Member

    Have a look at @Brogan's fantastic resource here: Conditional Statements

    Once you're licensed, you'll be able to post in there with any questions you may have.

Share This Page