If I have multiple subscriber usergroups would I just separate them all by a comma. For instance, 3,4,5,6 ? Thanks.
How to integrate a banner ad system that allows paying members to not view ads
Collapse
X
-
-
It didn't work. How would I go about exempting multiple usergroups? I know I could create an additional single usergroup and have all subscribers belong to it and just use that group...but I don't believe I could make that automatic when they pay for a subscription. Any help would be much appreciated. Thanks.Comment
-
Originally posted by marcjdIt didn't work. How would I go about exempting multiple usergroups? I know I could create an additional single usergroup and have all subscribers belong to it and just use that group...but I don't believe I could make that automatic when they pay for a subscription. Any help would be much appreciated. Thanks.
make use of AND OR ?
Code:<if condition="usergroup='1' or usergroup='3'"> banner image code </if>
Comment
-
I tried that but it didn't work. I tried some more things and it just wasn't working. However, I was able to create a secondary usergroup and realized that I could make people members of more than one group when they subscriber...at least it appears that way. Just set all of the permissions for the secondary usergroup to no and used that as the basis for the code. It works...so it seems. Thanks.Comment
-
-
Originally posted by TiaI would like to know how to use two usergroups as well
Code:<if condition="in_array($bbuserinfo[usergroupid], array(X,Y,Z))"> BANNER CODE </if>
If you want to check secondary groups as well, then you have to use this code:
Code:<if condition="is_member_of($bbuserinfo, X) OR is_member_of($bbuserinfo, Y) OR is_member_of($bbuserinfo, Z)"> BANNER CODE </if>
Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment