Announcement

Collapse
No announcement yet.

Usergroup Conditionals

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

  • Usergroup Conditionals

    I've been modifying the postbit recently, and I was wondering if there was a php conditional string to find out if a user is in a particular usergroup. The use of this would be, for example, if I wanted moderators or administrators to have a certain image-badge appear under their name if they were a part of said usergroup.

    There are php conditionals built in to all the templates, to get post count, user ids, user posts, etc, so I figured something like this must exist.

    Anyway, thanks a lot in advance .
    "You forgot about my trap card!"
    "Oh no!!"
    "Oh yes, and wait till you hear about it's special ability!"

  • #2
    is_member_of

    <if condition="is_member_of($post, X,Y,Z)"> I'm a primary or secondary user of X Y or Z </if>

    Comment

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