Announcement

Collapse
No announcement yet.

Conditional: is_member_of help

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

  • [Forum] Conditional: is_member_of help

    I want to display something on the MEMBERINFO template based on the member being viewed, rather than the viewer, based on usergroup.

    For example, set up a usergroup #50

    PHP Code:
    <vb:if condition="is_member_of($post, 50)">
    <
    a href="{vb:raw prepared.homepage}">{vb:rawphrase home_page}</a>
    </
    vb:if> 
    Can someone tell me the correct syntax, or if this isn't doable?

    - - - Updated - - -

    Derp. Needed 2 more minutes of searching. Delete, please.

    Used:

    PHP Code:
    <vb:if condition="in_array($userinfo[usergroupid],array(50))"
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X