Quote:
Originally Posted by brandy
OK, I've tried a variety of different things and I think I've figured out the problem. The Dynamic Announcements only read the PRIMARY group ID. Am I right? Can you make it so that they also recognize the SECONDARY group ID as well?
I can't make the paid subscribers a primary group manually, because when their subscription runs out, they still need to be a registered user, so they need to have the "registered user" group as their primary group.
|
$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.