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 |
#112
|
|||
|
|||
Logician, in the installation instructions you say to modify options.php to turn on debug (you say "Always debug on while adding a setting"), but you don't say to revert back afterwards, is this intended, or an oversight?
|
#113
|
||||
|
||||
Quote:
|
#114
|
||||
|
||||
Quote:
|
#115
|
||||
|
||||
Quote:
1- you can not do that because "$activatelink" variable is dynamically compiled in email script so it does not have a value assigned in other parts of vbulletin. 2- You should NOT do that either because then everybody can click to it to activate their account. The point of it is to pass it via email so that you can make sure email address is correct. If people can activate their account by clicking a link in the board, it means they can register without using a valid email address so email confirmation become useless anymore. |
#116
|
||||
|
||||
Quote:
|
#117
|
|||
|
|||
Installed perfectly and I think I've got the conditional syntax down well now. Thanks it works great!
Anyone, a few questions: 1) Not being a big modder, how/what do I edit so that the non-popup will appear at all times (the pop-up in other places would be too annoying)? Of course forumhome is all set, but looking for it to stay on forum display, thread display, searches, etc. 2) I saw that someone got it working on vBadvanced and was wondering if the same person or any of you smart folks could tell me how to get this to work on the newer vBadvanced CMPS? |
#118
|
|||
|
|||
I would certainly love to see this mod enabled for VBA CMPS as well. I've been trying to adapt it, with no success. (probably spent 5 hours on this and only proven how much I have no clue about)
If anyone has had success, please let me know. Thanks for another great mod Logician. |
#119
|
||||
|
||||
Quote:
Have a look over on vBa, or drop me a PM. @Logician: want the code to integrate this into vBaCMPS? |
#120
|
|||
|
|||
Excellent hack, works fine, thank you.
One question though: I would like to have pre-made conditionals in the announcements, which are not active. In other words, something like HTML code enclosed between <!-- and -->. When I want to put a new announcement, I go in, remove the comments tags and write the new announcement. In that way, I do not have to remember what conditionals to use for each category (for example, I have a pre-made announcement for my moderators, but it does not show anything until the comment tags are removed), I have entered them once and then use them accordingly. I tried this and it didn't work, the announcement is still shown. Any ideas?? Many thanks. ----- John |
#121
|
||||
|
||||
Quote:
[[($bbuserinfo[usergroupid]==5)]] my announcement [[/($bbuserinfo[usergroupid]==5)]] If you make it like this: [[($bbuserinfo[usergroupid]==5 AND $dontshow==1)]] my announcement [[/($bbuserinfo[usergroupid]==5 AND $dontshow==1)]] This announcement will not be displayed to your moderators until you remove the "AND $dontshow==1" part. Because this variable check becomes the part of your conditional and it is never TRUE so conditional is always ignored. Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|