The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals Details »» | |||||||||||||||||||||||||||
Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals
Developer Last Online: Nov 2023
This hack allows you to post powerful dynamic announcements (changing according to different conditions) on forum home page. It differs from vbulletin's default announcements in 2 ways:
This hack is the VB3 version of my Dynamic Forum Home Announcement Hack and it is a bit more improved in that it is now able to display your announcement as it was before AND also in DHTML popup box as well which ever you prefer better or even both. (DHTML poupup announcement is not technically a popup so popup killers can not kill it either.) Basic Usage : You can set a text in your Admin CP and it's displayed in forum home to all users. Advanced Usage : With conditionals you can set different texts/notifications/messages/announcements and they will be displayed if your pre-configured condition applies. This allows you to create powerful announcements/private messages/texts which address their receipt only if a certain condition is met. Some examples: You can set to show an announcement in forum home IF:
It's tested in vb versions from v.3.0.0 to 3.0.9 and works fine with all of them. It will work for all future 3.0.x versions too. For vb2 version click here. Here is a Screenshot from a general table announcement. Here is a Screenshot from a popup announcement. Some Features:
If you install the hack, click INSTALL, thank you.. Hacks of the hack: * Hack 1: Puts the announcement into header instead of forum home page so that announcement appears in all forum pages. * Hack 2: Integrates announcement with vBA_CMPS portal hack. * Hack 3: Popup announcement will popup once in every XX hours. Logician \\=^)) Show Your Support
|
Comments |
#82
|
||||
|
||||
Installed and working like a charm.. Thanks Logician
I even installed it incorrectly and it still worked.. 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.! |
#83
|
||||
|
||||
Quote:
|
#84
|
||||
|
||||
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)]] Welcome $bbuserinfo[username]! Thank you for being a Contributing Member! :) <br> If you do not see an icon before your name, <a href="profile.php?do=editusergroups">Click Here</a> to choose to be recognized as a contributing member. [[/($bbuserinfo[usergroupid]==10 OR $bbuserinfo[usergroupid]==11 OR $bbuserinfo[usergroupid]==12)]] Any suggestions? Thanks, Brandy |
#85
|
||||
|
||||
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?! |
#86
|
||||
|
||||
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 |
#87
|
||||
|
||||
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. |
#88
|
||||
|
||||
Quote:
|
#89
|
||||
|
||||
Looks nice, great hack Logican, i'll be installing later.
|
#90
|
|||
|
|||
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? |
#91
|
||||
|
||||
Is a similar hack available for vb2?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|