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.
Well once I got help figuring out how to put in my addy as asked above this hack went right in, and worked right away. If this stupid arse can do this, any of you reading this can.
GREAT HACK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!
How can I get my Wife on my site to see mutli messages via the pop up? I did one for user group 2 which she is in and one for her ID, she only saw the useer Group pop up. How can she see both?
I'm having problems understanding the conditionals (ie. where [brackets], (parenthesis) and "quotes" go).
Here's what I'm trying to do:
I want to set up a new message for every day of the month for certain usergroups. They are actually going to be download links and they need to be replaced each night at midnight.
Here's what I've tried and it didn't work and I can't figure out why.
[[($bbuserinfo[usergroupid]==2 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==9 OR $bbuserinfo[usergroupid]==10) AND date("m.d.Y")=="04.21.2005")]]Daily Download Link[[/($bbuserinfo[usergroupid]==2 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==9 OR $bbuserinfo[usergroupid]==10) AND date("m.d.Y")=="04.21.2005")]]
I realize that I would have to basically repeat the set of conditionals changing the date section for every day of the month - but I can't even get this to show up for today - so where is my error?
I'm having problems understanding the conditionals (ie. where [brackets], (parenthesis) and "quotes" go).
Here's what I'm trying to do:
I want to set up a new message for every day of the month for certain usergroups. They are actually going to be download links and they need to be replaced each night at midnight.
Here's what I've tried and it didn't work and I can't figure out why.
[[($bbuserinfo[usergroupid]==2 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==9 OR $bbuserinfo[usergroupid]==10) AND date("m.d.Y")=="04.21.2005")]]Daily Download Link[[/($bbuserinfo[usergroupid]==2 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==9 OR $bbuserinfo[usergroupid]==10) AND date("m.d.Y")=="04.21.2005")]]
I realize that I would have to basically repeat the set of conditionals changing the date section for every day of the month - but I can't even get this to show up for today - so where is my error?
Thanks
Try this:
PHP Code:
[[(($bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==9 OR $bbuserinfo[usergroupid]==10) AND (date("m.d.Y",time())=="04.22.2005"))]]
Daily Download Link
[[/(($bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==9 OR $bbuserinfo[usergroupid]==10) AND (date("m.d.Y",time())=="04.22.2005"))]]
[[(($bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==9 OR $bbuserinfo[usergroupid]==10) AND (date("m.d.Y",time())=="04.22.2005"))]]
Daily Download Link
[[/(($bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==9 OR $bbuserinfo[usergroupid]==10) AND (date("m.d.Y",time())=="04.22.2005"))]]
Tested and works.
Thank you so much!!! I appreciate the quick reply!
My Problem: I 've done step for step, i have the option in the menu i can save a message but nothing changes!
I use 3.07. There is no change and i double-checked all steps now.
Make sure you've done template changes all ok (newly created templates and modifications in existing templates like forum home). Also make sure you did the changes in ALL template sets available.
WONDERFUL HACK!! I was looking for something to show messages direct on the forum home page, this is perfect, and seriously configurable -although Firefox does have issues with the popup, but in IE it's fine.