Version: 1.01, by Logician
Developer Last Online: Nov 2023
Version: 3.5.5
Rating:
Released: 09-27-2005
Last Update: 01-10-2007
Installs: 721
Uses Plugins Template Edits
No support by the author.
(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:
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 different texts according to different conditions.
For instance you can tell "why they should register" if visitor is a guest, but if he is a member with 0 posts, you can tell him why he should start posting etc.! All in one announcement! Everybody will see the relevant text according to his status. (This is the hack everybody keeps asking in the TheAdminZone.com whose using the hack for members with 0 and 1 posts.)
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:
user is X
user's usergroup is Y
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
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
This modification may not be copied, reproduced or published elsewhere without author's permission.
Thanks for your expert feedback Logician! I've cut and pasted the above, but it doesn't show your message. All my other messages display except this IF statement...
Thanks for your expert feedback Logician! I've cut and pasted the above, but it doesn't show your message. All my other messages display except this IF statement...
I tested it and it works for me? Are you sure you test with a MEMBER account that didn't post in the last 30 days but still has at least 1 posts?
I tested it and it works for me? Are you sure you test with a MEMBER account that didn't post in the last 30 days but still has at least 1 posts?
Ok, i fixed the problem... FOR ANYONE that uses CMPS, they send the varibles through the default output page and revised the header of the 'adv' template, but what i didnt realize is that it's duplicating the popup announcement twice because of the forumhome pops and the CMPS adv template popups.. so basically, you have to deactivate one of them by:
taking out "$dfh_announcement_popup" from the FORUMHOME template only if you install the CMPS along with it. That fixed the duplicate popup announcement at FORUM HOME. =)
ok i need help, how do i do a header for guests saying this
Quote:
There are many great features available to you once you register at SWU, including :
Richer content, access to many features that are disabled for guests like commenting on the front page
Access to a great community, with a massive database of experience on hard & software issues, gaming and recreational activities, and more
Access to the SWU online chat - you could make a friend from across the world and talk to them live
Access to SWU contests & subscription offers like exclusive SWU email addresses
It's simple, and FREE!
Make sure you have space before and after < and also -30 days is between quotation marks. Like that:
PHP Code:
[[($bbuserinfo[lastpost] and $bbuserinfo[lastpost] < strtotime("-30 days"))]]Show this announcement if page visitor has not posted in the last 30 days (although he posted before)[[/($bbuserinfo[lastpost] and $bbuserinfo[lastpost] < strtotime("-30 days"))]]
How to show an announcement in user's birthday?
What is user's birthday of conditional syntax?
$bbuserinfo[birthday] ?
I want to show "Happy Birthday" to User? :squareeyed:
[[($bbuserinfo[lastvisit] and $bbuserinfo[lastvisit] < strtotime("-7days"))]]
Show this announcement if page visitor has not visited my board for over 7 days
[[/($bbuserinfo[lastvisit] and $bbuserinfo[lastvisit] < strtotime("-7days"))]]
Is It Correct as above?
I cannot show it... :ermm: