Version: 1.00, by Logician
Developer Last Online: Nov 2023
Version: 3.0.9
Rating:
Released: 04-20-2004
Last Update: 05-18-2004
Installs: 318
Template Edits
Code Changes
No support by the author.
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:
The announcement is displayed in forum home page, not inside thread view. So visitors will read them on home page without clicking any links.
The Hack's announcements are not static: ie. they can be powerfully programmed to display themselves according to many conditions.
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:
user is X
user's usergroup is Y
his profile field Z is X
user has X posts or has more than Y posts but less than Z posts
his last visit time was X days ago
today is X, hour is between Y and Z, day is wednesday, month is Y, week is month's 2nd week, today is user's birthday
User is invisible/visible
his timeset is set to A
etc.
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.
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
This modification may not be copied, reproduced or published elsewhere without author's permission.
What files/templates do i have to edit, to make this announcement show up in every topic, post, etc....Right now its only on the home page and the forums home page :-/
What files/templates do i have to edit, to make this announcement show up in every topic, post, etc....Right now its only on the home page and the forums home page :-/
thanks!
If you want it everywhere, you may add it in the navbar template. In that way, it will appear below (or above) your navbar, wherever the navbar appears.
sv1cec thanks for the reply, but seems even if i add it there, it will only show up on the index pages.... I added the $dfh_announcement right after </if> (last line of the nav template)
no go on that as well...but we decided to go with another approach that doesn't use this hack for now. Thanks for looking...if you get time and can find the answer we will use it, but not a rush.
sv1cec thanks for the reply, but seems even if i add it there, it will only show up on the index pages.... I added the $dfh_announcement right after </if> (last line of the nav template)
Anymore suggestions?
There is no reason why it wouldn't show. I tried it and it works like a charm. The thing is I've done a lot of mods in this hack, to make it work as I wanted it, so I am not sure if it will work in other forums, as it works in mine.
But if you add it in forumhome and in forumdisplay and it works, there is no reason why it shouldn't work in navbar too. Are you sure you have done the mods suggested in the original hack, especially those involving the global.php file?
There is no reason why it wouldn't show. I tried it and it works like a charm. The thing is I've done a lot of mods in this hack, to make it work as I wanted it, so I am not sure if it will work in other forums, as it works in mine.
But if you add it in forumhome and in forumdisplay and it works, there is no reason why it shouldn't work in navbar too. Are you sure you have done the mods suggested in the original hack, especially those involving the global.php file?
Are there any steps that need redoing following an upgrade OTHER than file edits? I had this running on 3.0.1 then I upgraded to 3.0.3, applied the edits and the announcements don't show. I haven't at this point reverted any templates and I still see the admincp options.
Hmm this is very interesting... I found out about this thread from this site www.wlgo.com/bbs cuz I wanted to try out this announcement hack. Is it possible to make the announcement in motion ? I would be great since it will not require a big msgbox when there is a lot to announce
no go on that as well...but we decided to go with another approach that doesn't use this hack for now. Thanks for looking...if you get time and can find the answer we will use it, but not a rush.
Check this post post and apply it. It will allow you to show the $dfh_announcement from every template.
Hmm this is very interesting... I found out about this thread from this site www.wlgo.com/bbs cuz I wanted to try out this announcement hack. Is it possible to make the announcement in motion ? I would be great since it will not require a big msgbox when there is a lot to announce