Quote:
Originally Posted by furnival
How do I enable this for multiple user groups in one <if> statement please?
|
The code given for one usergroup is:
Code:
<if condition="$post['usergroupid'] == x"></if>
<!-- auto refresh -->
<meta http-equiv="refresh" content="xs" />
<!-- / auto refresh -->
</if>
But that is wrong- $post['usergroupid'] is only valid in posts- the correct variable I believe the author meant is: $bbuserinfo['usergroupid']
And for multiple usergroups:
Code:
<if condition="is_member_of($bbuserinfo, x, y, z)"></if>
<!-- auto refresh -->
<meta http-equiv="refresh" content="xs" />
<!-- / auto refresh -->
</if>
Where x, y, and z and usergroupids... you can add more with additional commas.