Announcement

Collapse
No announcement yet.

How can i show something to determined usergroup?

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

  • How can i show something to determined usergroup?

    Hello my friends, i have a question please.

    How can i show something to determined usergroup?

    For example, when you want to show someting to register users or vice versa, the code is:

    Code:
    <if condition="!$show['member']">IMAGE</if>

    but if i want to do this only to a particular usergroup id like "Special Users" How can i do?


  • #2
    The correct conditional would be:

    <if condition="is_member_of($bbuserinfo, x)">
    IMAGE
    </if>


    ...with 'x' being the usergroupid number of that group.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment


    • #3
      Great man! Thanks alot

      Comment

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