Quote:
Originally Posted by Logician
$bbuserinfo[usergroupid] keeps only primary usergroup id. So if you use this variable in your conditional you can not make the announcement displayed to your paid users.
It is $bbuserinfo[membergroupids] that saves secondary userid. So theorically you need to use it to target your paid user like:
[[($bbuserinfo[membergroupids] == 10 OR $bbuserinfo[membergroupids] == 11 OR $bbuserinfo[membergroupids] == 12)]]
thanks for paying
[[/($bbuserinfo[membergroupids] == 10 OR $bbuserinfo[membergroupids] == 11 OR $bbuserinfo[membergroupids] == 12)]]
HOWEVER:
$bbuserinfo[membergroupids] is technically a different variable then $bbuserinfo[usergroupid] because unlike primary usergroup, secondary usergroup can have more than 1 values. For instance you can have a user put into 3 different secondary usergroups at the same time. Therefore such a conditional will fail for these users when they are a member of more than 1 secondary usergroup.
Bottom line what you are trying to achieve is not easily possible with this hack in certain conditions.
|
I am also having trouble trying to get this to work properly...
I have tried using the is_member_of() function but it doesn't seem to be recognizing it either. Does anyone else have any idea how to post an announcement to display for peoples secondary usergroups?