Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals
This modification is in the archives.
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 http://www.vbulletin.org/forum/showthread.php?s=&threadid=43194 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 http://www.vbulletin.org/forum/showthread.php?s=&threadid=43194. from a general table announcement. from a popup announcement. Some Features:
If you install the hack, , thank you.. Hacks of the hack: * Hack 1 Spoiler (click to open)
Quote by SaN-DeeP
Not tested, should work:
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:
// parse headinclude, header & footer
REPLACE IT AS: PHP Code:
PHP Code:
// if we are in a message editing page then get the editor templates
PHP Code:
// Logician Hack: Dynamic Forum Announcements Hack
Now put $dfh_announcement_headercode $dfh_announcement_popup $dfh_announcement variable in any template you like. Close
* Hack 2 Spoiler (click to open)
Quote by Logician
Kall's DFH-vBA_CMPS Integration :
Doesn't it suck when you see that someone has solved a problem and they don't give you step-by-step instructions? I'm re-doing it for my site, so here we go.. In /includes/vba_cmps_include_bottom.php: Find PHP Code:
global $pages, $stylevar, $headinclude, $header, $footer, $vboptions, $vba_options, $navbar,
PHP Code:
$bbuserinfo,
PHP Code:
if ($vba_options['portal_shownavbar'] AND empty($navbar))
PHP Code:
// Logician Hack: Dynamic Forum Announcements Hack
Add dfh_announcement, dfh_announcement_popup and dfh_announcement_headercode as templates being called in one of your modules. (Don't know if this is the best way to go about this, but it works for me.) Close
* " target="_blank">Hack 3 Spoiler (click to open)
Hack of Hack:
If you apply this modification, the popup announcement will popup once in every 12 hours: Edit index.php, find (hack code): PHP Code:
$dfh_announcement_popuptopaste = dynamic_a($dynamic_popup);
PHP Code:
$dfh_announcement_popuptopaste = dynamic_a($dynamic_popup);
Close
Logician \\=^)) Download This modification is archived and cannot be downloaded. Screenshots
|
Similar Mods
Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals | vBulletin 3.5 Add-ons |
Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals | vBulletin 2.x Full Releases |
Dynamic Forum Home Announcement - vBaCMPS Integration | vBulletin 3.0 Full Releases |