Announcement

Collapse
No announcement yet.

Using an If statement with an additional usergroup

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

  • Using an If statement with an additional usergroup

    i want to include an image if a member has an additional usergroup attached to them

    ie. their main usergroup is X but they are also in Y as an additional usergroup

    Code:
    <if condition="is_member_of($userinfo, Y)">
    and

    Code:
    <if condition="$post[usergroupid] ==Y">
    does not work

    the image includes fine for main usergroups but not additional usergroups. ive searched the how do i room and i cant find anything on this.

    any help would be appreciated
    | System 0 |

  • #2
    disregard....

    <if condition="is_member_of($userinfo, Y)"> seems to be working now

    i was messing about with it and then changed things back and all of a sudden its working.

    not sure what i changed but the above code definately works

    | System 0 |

    Comment

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