Announcement

Collapse
No announcement yet.

Conditionals Query

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

  • Conditionals Query

    hHi

    We are looking to have different usder groups have a different header and I know this can be done with conditionals but I am not sure what syntax to use. We cant use ==6 say for example as we need morethan one usergroup to see each template. I think it can be done with & but not sure how. Any help would be cool.

  • #2
    <if condition="$bbuserinfo[usergroupid] == 5 OR $bbuserinfo[usergroupid] == 6 OR $bbuserinfo[usergroupid] == 7">

    A shorter way to do it is in_array($bbuserinfo[usergroupid],array(5,6,7)) but array() is not an allowed function in template conditionals.

    Comment

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