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 hacks works with both 3.5.x and 3.6.x)
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 version of the hack is for vbulletin 3.5.x and 3.6.x (vb 3.0.x version is here and vb 2.x version is here. 3.5 version is coded as a plugin so you can install it WITHOUT modifying vb PHP files. It is easily installed in 2 steps through your admin cp. Basic Usage of This Hack: You can set a text in your Admin CP and it's displayed in forum home to all users. Alternatively if you want, you can set another text as a popup announcement and it is displayed to all as a pop up announcement (it can't be killed with popup killers software!) 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:
Here is a Screenshot from a popup announcement. Some Features:
* For CMPS Integration see here * French Translation by Allan : https://vborg.vbsupport.ru/showpost....&postcount=143 * Nested Conditionals by dc3dreamer : https://vborg.vbsupport.ru/showpost....&postcount=175 * Hack Annoucement appears in all vb pages: https://vborg.vbsupport.ru/showthrea...498#post911498 IMPORTANT FOR 3.x USERS: If you were already using this hack in 3.0.x, remember to do 2 things: BEFORE YOU INSTALL THIS HACK : Follow this instructions to remove the remnants of 3.0.x hack. AFTER YOU INSTALL THIS HACK : Go to your admin cp / styles, find these 3 styles: dfh_announcement dfh_announcement_headercode dfh_announcement_popup and REVERT THEM so that your new templates that comes with 3.5 version will apply. About vb4.x version: I didn't consider porting this hack to vb4 because vbulletin has now a VERY SIMILAR feature in vb4 called "NOTICES". You can find it under your admin cp/Notices submenu/Notice Manager. It is not as powerful as this hack as this hack allows you to use any kind of conditional to produce your announcement but it is more user friendly because you don't need to deal with conditional syntax, you simply build your announcement (notice) with menus If you install the hack, click INSTALL, thank you.. Logician \\=^)) Show Your Support
|
Comments |
#72
|
||||
|
||||
Quote:
Edit template "dfh_announcement_popup" (in ALL TEMPLATE SETS YOU HAVE!), find : HTML Code:
top: 50px; bottom: 50px; left: 50px; right: 50px; HTML Code:
top: 50px; left: 50px; |
#73
|
||||
|
||||
Quote:
|
#74
|
||||
|
||||
Now, with firefox :
|
#75
|
||||
|
||||
Quote:
Try this one to use as your dfh_announcement_popup template: HTML Code:
<DIV ID="ANNLAYER" STYLE="background-color: red; position: absolute; margin-left:5; margin-right:5; margin-top:5; margin-bottom:0; top:25%; left:25%; height:50%; width:50%; padding: 10px; overflow: auto; border-color: 000000; border-style: solid; border-top-width: 2px; border-right-width: 3px; border-bottom-width: 3px; border-left-width: 2px;"> <table cellpadding="1" cellspacing="0" border="0" class="tborder" width="100%" height="100%" align="center"><tr><td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" height="100%"> <tr> <td class="panelsurround" align="center"> <div class="panel"><div align="$stylevar[left]"> $dfh_announcement_popuptopaste <br /><br /> <input type="button" onclick="clearpopupannouncement('ANNLAYER')" name="clear" value="$vbphrase[closeannouncement]" class="button"> <br /> </div></div> </div></div> </td> </tr> </table> </td></tr></table> </div> |
#76
|
||||
|
||||
Thanks Logician, it's perfect for me
|
#77
|
|||
|
|||
how hard would it be to incorporate this dynamic dropin ad window as the announcement popup part:
http://www.dynamicdrive.com/dynamici.../dropinbox.htm i can't get it to open up a popup window when I try substituting the code from the dhtml popup into the dfh_popup template, and adding the javascript code to the head tag... plus I think it looks a lot nicer than the popup that is a part of the hack right now... no offence or anything, but someone's made a more sophisticated one, and it would be really cool to see it implemented. |
#78
|
||||
|
||||
Quote:
Replace "SPECIFY YOUR CONTENT HERE. IT COULD BE TEXT, IMAGES, OR RICH HTML" with "$dfh_announcement_popuptopaste" |
#79
|
|||
|
|||
Quote:
EDIT: I know what the problem was... the code for the popup itself. I've tried another dropin code from dynamicdrive and it worked just fine. Thanks Logician... |
#80
|
|||
|
|||
Great extension, installed here!
Isn't it possible to make a "easier to use" menu system for the conditonals so we don't have to remember/look them up every time a new announcement is in the making? |
#81
|
|||
|
|||
Is there any way to put this on all the main pages of the forums? I have it working on the home page, but it would be great to be able to add it to other pages, especially for when someone uses a direct link to a thread.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|