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 |
#122
|
|||
|
|||
Quote:
Thanks very much for answering my question, appreciated very much indeed. And yes, it covers my needs, at least 90%. The other 10% has to do with comments. Is there a comments tag or could you incorporate one? For example, I would love to have a comment, just above that conditional, saying "This is for moderators". In that way, I wouldn't have to go back and forth between the Usergroup management (to see which user group is No 5) and the announcements. Me pressing install, very nice hack Sir. Edit: Scrap that, I can always have the comment within an impossible conditional, within the conditional. Right? |
#123
|
||||
|
||||
Where is this vbadvanced's index.php file? is it the main index file in root or am I blind
Quote:
|
#124
|
||||
|
||||
can we have the hack installed in header template instead of forumshome ?
it makes it easier to be viewable on all pages |
#125
|
|||
|
|||
Quote:
I am no expert in php, so that's as far as I can go, but it would be definitely useful to have the option to show the announcement in every page or just FORUMHOME. I do not care for the pop-up announcement, that I don't want in every page. If you actually put the $dfh_announcement in navbar, the announcement will be shown in every page, if you put it in FORUMHOME, it goes only in the first page. Ideally, that could be a user-selectable parameter, from the definition of the announcement, which could be checked at run time, something like (in human language code): if where-to-show-parameter is 1 (=show everywhere) then show-announcement if where-to-show-parameter is 0 then if this is forumhome show-announcement else don't-show-announcement endif endif Logician, can we please have that, either with the parameter in admin cp, or without it (just do it so whoever wants that message to appear in navbar, can enter $dfh_announcement in the navbar template instead of FORUMHOME)? Thank you Sir |
#126
|
||||
|
||||
Quote:
Apply STEP 5 like this: (btw dont forget to revert your old step 5 installation first! That is remove the hack in step 5 from index.php before applying this) STEP 5- Edit global.php (in forum main directory), find PHP Code:
REPLACE IT AS: PHP Code:
PHP Code:
PHP Code:
Now put $dfh_announcement_headercode $dfh_announcement_popup $dfh_announcement variable in any template you like. |
#127
|
||||
|
||||
Hey Logician.
I appreciate your excellent work It works like a charm. I just imagine, how i missed this hack to install since i installed vb or since this was released. Just a few more questions: Does this hack adds an extra query to forums ? When there are no annoucments: It dont add any query to the board But with an annoucment: It adds one query to entire forums. I am using it on header as i requested. Thnx for your code to display it on header. Works like a charm. Big Thnx again |
#128
|
||||
|
||||
a small request:
Can someone please tell me how to make a conditional to display a message for: Users from Registered Usergroup only, with less then 1 posts I used a conditional in my headers, b4 installing this addon: <if condition="$bbuserinfo[posts]<1 && !$show['guest'] && !is_member_of($bbuserinfo, 3)"> Not sure, how to use it here. Regards, |
#129
|
|||
|
|||
Quote:
Tested and works like a champ. Very useful hack, and my hat off to you Sir, for such a great service. Rgds |
#130
|
||||
|
||||
Quote:
Quote:
announcement here [[/($bbuserinfo[usergroupid]==2 AND $bbuserinfo[posts]==0)]] |
#131
|
||||
|
||||
This hack, is INCREDIBLE!!! I really like it, conditionals and everything are way cool.
[high]* SmasherMaster hits install[/high] |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|