Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals Details »
Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals
Mod Version: 1.01, by Logician (Coder) Logician is offline
Developer Last Online: Jan 2021 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.5 Rating: (30 votes - 4.63 average) Installs: 721
Released: 28 Sep 2005 Last Update: 11 Jan 2007 Downloads: 1424
Not Supported Uses Plugins Template Edits  

(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:
  1. user is X
  2. user's usergroup is Y
  3. user has X posts or has more than Y posts but less than Z posts
  4. his last visit time was X days ago
  5. 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
  6. etc.
Here is a Screenshot from a general table announcement.
Here is a Screenshot from a popup announcement.

Some Features:
  • Coded as a vbulletin pluggin. Can be installed easily without hacking PHP files.
  • It's Admin CP integrated
  • Smiley, BBCode, HTML, IMG tags are supported in announcements.
  • You can address your users with their usernames inside announcements (Use $bbuserinfo[username] variable)
  • Announcements are displayed directly in Forum Home so users are forced to read them.
  • The Conditionals help you to design powerful and ever changing announcements/private messages/forum home notifications.
  • Poupup announcement can not be killed by popup killer software
Hacks of Hack:
* For CMPS Integration see here
* French Translation by Allan : http://www.vbulletin.org/forum/showp...&postcount=143
* Nested Conditionals by dc3dreamer : http://www.vbulletin.org/forum/showp...&postcount=175
* Hack Annoucement appears in all vb pages:
http://www.vbulletin.org/forum/showt...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 \\=^))

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	dhfa_1.jpg
Views:	6340
Size:	110.0 KB
ID:	34888   Click image for larger version

Name:	dhfa_2.jpg
Views:	6811
Size:	153.1 KB
ID:	34889   Click image for larger version

Name:	dhfa_3.jpg
Views:	4232
Size:	195.9 KB
ID:	34890  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals Logician vBulletin 3.0 Full Releases 437 20 Nov 2005 17:10
Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals Logician vBulletin 2.x Full Releases 210 16 Sep 2004 19:27
Dynamic Forum Home Announcement - vBaCMPS Integration kall vBulletin 3.0 Full Releases 2 06 Sep 2004 23:46

  #136  
Old 11 Nov 2005, 08:53
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Real name: Brandon
Originally Posted by folkish
I'd like to know the answer to this as well.

Installed, btw. Great hack.

here is the answer. for those who want to move the popup
on the first page

http://www.vbulletin.org/forum/showp...93&postcount=9

/me installs

great hack, thank you
__________________

Love and support one another #vote2020
I offer Managed IT Services in Kansas
Reply With Quote
  #137  
Old 11 Nov 2005, 11:15
OzgurcaN OzgurcaN is offline
 
Join Date: Nov 2005
arkadaşlar bu konuyu türkçe [ TURKİSH ] Anlatabilecek birisi yokmu sevaba girersiniz valla.
Reply With Quote
  #138  
Old 11 Nov 2005, 14:35
slank slank is offline
 
Join Date: May 2005
cheers - installs
Reply With Quote
  #139  
Old 12 Nov 2005, 13:20
tbroush tbroush is offline
 
Join Date: Aug 2003
How can we add a time limit for the regular announcement?
Reply With Quote
  #140  
Old 12 Nov 2005, 22:41
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Real name: Brandon
what is the condition to make it say the users name ..
like here it would be

Hello Loco Macheen pls post more

i seen it was set in the default, but i've edited it..ty
__________________

Love and support one another #vote2020
I offer Managed IT Services in Kansas
Reply With Quote
  #141  
Old 13 Nov 2005, 09:42
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Originally Posted by Loco Macheen
what is the condition to make it say the users name ..
like here it would be

Hello Loco Macheen pls post more

i seen it was set in the default, but i've edited it..ty
[[($bbuserinfo[userid] AND $bbuserinfo[posts]<5)]]
Hello $bbuserinfo[username] pls post more
[[($bbuserinfo[userid] AND $bbuserinfo[posts]<5)]]

Translation :

If visitor is a user but has less than 5 posts, say :

Hello $bbuserinfo[username] pls post more
__________________
Logician's Blog | WebTemplates for vb 4.x : VB Integrated Content Management System
Reply With Quote
  #142  
Old 13 Nov 2005, 14:59
aacircle aacircle is offline
 
Join Date: Jun 2005
Anyone know what would be the condition if a user hasn't posted for 30 days? I have been trying the following without luck.

[[($headerstime - 1209600 > $bbuserinfo[lastpost])]]Message Here[[/($headerstime - 1209600 > $bbuserinfo[lastpost])]]

Last edited by aacircle; 13 Nov 2005 at 15:03.
Reply With Quote
  #143  
Old 13 Nov 2005, 20:49
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Real name: allan
The French Language
Attached Files
File Type: xml product-lh_dynamic_fhannouncement_french.xml (6.7 KB, 26 views)
__________________
-------------------------------------------------------------------------------------------
Administrator vBulletin-Ressources.com, French vBulletin Resources.
Reply With Quote
  #144  
Old 14 Nov 2005, 10:29
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Originally Posted by Allan
The French Language
Thanks for sharing. I linked in the hack post.
__________________
Logician's Blog | WebTemplates for vb 4.x : VB Integrated Content Management System
Reply With Quote
  #145  
Old 14 Nov 2005, 11:39
nexus851's Avatar
nexus851 nexus851 is offline
 
Join Date: Oct 2005
Question cannot close popup

Seems like i cannot close announcement POPUP at the FORUM homepage. When it pops up, and i click "close announcement" it doesnt close and stays there.. its annoying for my users.. Only way i can close it is to goto another link. Anyone knows whats wrong or how to fix this???

John P.
Reply With Quote
  #146  
Old 14 Nov 2005, 11:53
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Originally Posted by nexus851
Seems like i cannot close announcement POPUP at the FORUM homepage. When it pops up, and i click "close announcement" it doesnt close and stays there.. its annoying for my users.. Only way i can close it is to goto another link. Anyone knows whats wrong or how to fix this???

John P.
If you modified popup template, revert it to the original. If not, give me the URL of your board, put a announcement for guests and let me check it.
__________________
Logician's Blog | WebTemplates for vb 4.x : VB Integrated Content Management System
Reply With Quote
  #147  
Old 14 Nov 2005, 15:16
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Real name: David
* chrisitanb clicks install
__________________
Former vBulletin.org Staff Member

Christianboards.org * Web Design * CIW Certified * My hacks

Check my hacks to see which ones are marked as re-usable.

Please do not contact me through my site for vBulletin matters. These issues should be handled on vBulletin sites. I am not the only person who handles the contact us mail for my site.
Reply With Quote
  #148  
Old 14 Nov 2005, 23:18
nexus851's Avatar
nexus851 nexus851 is offline
 
Join Date: Oct 2005
i didnt modify the templates at all... couldnt close the announcement at my FORUM HOME only, but for my CMPS home, it closes fine. Check it out at www.pimpwithus.com and click "Forum" link under navigation link on left. It was like this even before i put in the CMPS codes in, i just thought maybe after i install the CMPS add on it'll work fine, but guess not... please advise...


P.S - it has 2 different size popup tables in the FORUM HOME.. maybe that's a clue in why it's duplicating the popup and not closing one.
Reply With Quote
  #149  
Old 15 Nov 2005, 03:38
aacircle aacircle is offline
 
Join Date: Jun 2005
Logician... are you able to help with my above post #142. I am using your hack and this replaced the welcome headers hack I was previously using. The welcome headers hack was similar, but places the message on every page, whereas I don't want to be so "in the face" for our users.

Need the message to only display if a user hasn't posted for x amount of days.

Thanks.
Reply With Quote
  #150  
Old 15 Nov 2005, 07:38
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Originally Posted by mycolumbus
Anyone know what would be the condition if a user hasn't posted for 30 days? I have been trying the following without luck.

[[($headerstime - 1209600 > $bbuserinfo[lastpost])]]Message Here[[/($headerstime - 1209600 > $bbuserinfo[lastpost])]]
[[($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"))]]
__________________
Logician's Blog | WebTemplates for vb 4.x : VB Integrated Content Management System

Last edited by Logician; 19 Nov 2005 at 08:25.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 03:37.

Layout Options | Width: Wide Color: