Announcement

Collapse
No announcement yet.

How do you make an If Statement with Usergroup as a Condition

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do you make an If Statement with Usergroup as a Condition

    What's the code I can use in my vBulletin templates to just make an If Conditional Statement for certain Usergroups?

    And an If statement for Not in a certain Usergroup?

    Thanks in advance.
    PNW Moto

  • #2
    any update with this?

    i would also like to know how to do that.
    thanks.


    //// never mind, already found how.

    PHP Code:
    <if condition="!is_member_of($vbulletin->userinfo, X)">
    CONTENT
    <else />
    CONTENT
    </if> 
    Where X is the group you want to exclude, separate multiple groups with , (5,6,7,8, etc)
    Last edited by chapsrulez; Sat 19 Feb '11, 10:26pm.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X