![]() |
Installed and working like a charm.. Thanks Logician :)
I even installed it incorrectly and it still worked.. :D Originally, I only added $debug=1; once.. It was only after reading the file for a second time that I noticed I should have added it twice. I've corrected this now, but everything still worked doing it just the once.! |
Quote:
|
Hi, what I'm trying to do is this:
Registered Users are group ID: 2 Paid Subscribers are group IDs: 10, 11, & 12 All Paid Subscribers' primary usergroup is 2. Paid Subscriber's secondary usergroups are either 10,11, or 12. I want the following announcement to show up for paid subscribers only, but paid subscribers do not see any announcement. Code:
[[($bbuserinfo[usergroupid]==10 OR $bbuserinfo[usergroupid]==11 OR $bbuserinfo[usergroupid]==12)]] Any suggestions? Thanks, Brandy |
hey there. i follwoed the steps with now problems atall, however, when i got to the AdminCP, Options, and put in my message 'Tester : im testing to see if this appears' i could't see anything :S
what have i done wrong?! |
Quote:
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. Is this clear as mud? :tired: Any hope for it being able to work? Brandy |
Quote:
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. |
Quote:
|
Looks nice, great hack Logican, i'll be installing later. :)
|
Quote:
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? |
Is a similar hack available for vb2?
|
All times are GMT. The time now is 08:04 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|