![]() |
|
|
Mod Options |
Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals Details »»
|
|||||||||||
|
Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals
Developer Last Online: May 2013
This modification is in the archives.
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:
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:
The conditionals even allows you to design "Board Tips" ever changing according to user's seniority or post number. See how-to document for conditional usage and more info.. It's tested in both v.2.2.6 and v.2.2.7 but it should work with any versions > 2.0.3. (v.2.2.8 or later Users READ HERE!) I'm using it in my own board and a friend's board for more than a month and found it quite stable and released it. Although not likely, if you found any bugs, holler and I'll fix it.. Here is a Screenshot from a "general announcement". Here is a Screenshot of announcement which is addressed to a certain user. Some Features:
If you have problems displaying HTML/smilie/bbcode in your announcements, make this tiny change in hack code If you install the hack, click INSTALL, thank you.. Logician \\=^)) Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
|||||||||||
Similar Mod
|
||||
| Mod | Developer | Type | Replies | Last Post |
| Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals | Logician | vBulletin 3.5 Add-ons | 411 | 27 Sep 2012 06:17 |
| Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals | Logician | vBulletin 3.0 Full Releases | 437 | 20 Nov 2005 16:10 |
| Dynamic Forum Home Announcement - vBaCMPS Integration | kall | vBulletin 3.0 Full Releases | 2 | 06 Sep 2004 22:46 |
| Comments |
|
#2
|
||||
|
||||
|
Screenshot1:
General announcement in forum home
__________________
Logician's Blog | WebTemplates for vb 4.x : VB Integrated Content Management System I do NOT do custom work, so please do not PM/email me for such projects. Thanks for understanding.. No members have liked this post.
|
|
#3
|
||||
|
||||
|
Screenshot2:
An announcement addressed to a specific user only. (Needless to say it will be visible only if the visitor is that user)
__________________
Logician's Blog | WebTemplates for vb 4.x : VB Integrated Content Management System I do NOT do custom work, so please do not PM/email me for such projects. Thanks for understanding.. No members have liked this post.
|
|
#4
|
||||
|
||||
|
Screenshot 3:
Admin CP/Settings: Where you customize your announcements
__________________
Logician's Blog | WebTemplates for vb 4.x : VB Integrated Content Management System I do NOT do custom work, so please do not PM/email me for such projects. Thanks for understanding.. No members have liked this post.
Last edited by Logician : 05 Sep 2002 at 15:56. |
|
#5
|
||||
|
||||
|
How To Use - Conditionals Help
After you installed the hack: Basic Usage: If you want to display an announcement to ALL users, simply login to Admin CP/Choose VB Settings/Dynamic Forum Announcements and enter your announcement as a plain text into the box. (Delete the previous one). You can use smilies and all other bbcode in your announcements. This text will be dragged to your forum home regardless of whoever the page visitor is. Advanced Usage: You can use "conditionals" to set announcements displayed if a certain condition applies. If you are using my WebTemplates Hack , you should be already familiar with the term "conditional". In Webtemplates conditionals could be used to put different texts/HTML codes which will be parsed if certain condition appied in your non-vb pages. It's the same concept and their usage is same. Here is its format: [[(your conditional)]] Your Announcement [[/(your conditional)]] Conditional Rules:
* [[($bbuserinfo[userid]==32)]] Show this announcement if page visitor's user id is 32 [[/($bbuserinfo[userid]==32)]] * [[($bbuserinfo[usergroupid]==5)]] Show this announcement if page visitor's usergroupid is 5 (=if he is a Super Mod) [[/($bbuserinfo[usergroupid]==5)]] * [[($bbuserinfo[usergroupid]==1)]] Show this announcement if page visitor is a guest [[/($bbuserinfo[usergroupid]==1)]] * [[($bbuserinfo[userid]>1)]] Show this announcement if page visitor is NOT a guest [[/($bbuserinfo[userid]>1)]] * [[($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)]] Show this announcement if page visitor's a Super Mod OR a Mod OR an Admin [[/($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)]] * [[($bbuserinfo[posts]<10)]] Show this announcement if page visitor has less than 10 posts [[/($bbuserinfo[posts]<10)]] * [[($bbuserinfo[lastvisit] and $bbuserinfo[lastvisit]<strtotime(-30 days))]]Show this announcement if page visitor has not visited your board for 30 days[[/($bbuserinfo[lastvisit] and $bbuserinfo[lastvisit]<strtotime(-30 days))]] * [[($bbuserinfo[joindate]>strtotime("-2 weeks") AND $bbuserinfo[joindate]<strtotime("-4 weeks"))]]Show this announcement if page visitor registered in a date between 2 weeks to 4 weeks from now[[/($bbuserinfo[joindate]>strtotime("-2 weeks") AND $bbuserinfo[joindate]<strtotime("-4 weeks"))]] You can use conditionals together too. Here is an example: -=-=-=-=-=-=-=-=-=-=-=-=-=-= [[($bbuserinfo[userid]==32)]] Announcement 1 [[/($bbuserinfo[userid]==32)]] [[($bbuserinfo[usergroupid]==3)]] Announcement 2 [[/($bbuserinfo[usergroupid]==3)]] Announcement 3 -=-=-=-=-=-=-=-=-=-=-=-=-=-= If you set this text as your announcement, the hack will: Show Announcement 1, if user's userid = 32 Show Announcement 2, if user's usergroupid = 3 (=email confirmation waiting members) show Announcement 3, For ALL other users What if user 32 is also from user groupid 3? He will be displayed Announcement 1 because even if he matches both conditional 1 and conditional 2, conditional 1 (which is above) has a higher priority. Notice About vbulletin admin CP/settings bug: While I code this hack I have noticed that vbulletin Admin CP/Settings section has a bug. This hack's installation step 6 also fixes this bug so you wont be effected by it after the installation. You can find more info about this bug in the official vbulletin.com thread. Hope this document helps you to understand the term conditional. You can use this help page as a reference for this hack, for WebTemplates Hack and for some of other hacks I am coding at the moment. I have recently noticed that vbulletin version 3 will also have a concept "vb conditionals". I dont know their syntax but their logic will be same so you can consider yourself lucky by using the conditionals before it's officially integrated to the script. If you need more help to design a "conditional", before asking me please read this document carefully for a few times, try to form it by yourself and if they all fail, ask in the hack's thread giving details about exactly what conditional you tried to form and what text (format) have you tried (and failed). Thank you.
__________________
Logician's Blog | WebTemplates for vb 4.x : VB Integrated Content Management System I do NOT do custom work, so please do not PM/email me for such projects. Thanks for understanding.. No members have liked this post.
Last edited by Logician : 12 Sep 2002 at 21:46. |
|
#6
|
||||
|
||||
|
Forum Tips Depending on visitor's post count
Add-on 1: Forum Tips Depending on visitor's post count
If you copy/paste this text into your announcement box, you'll create a forum tips announcement which will be displayed to your visitors according to their post count. Eg. If his post number < 1 displays "Tip 1" If his post number = 1 displays "Tip 2" If his post number > 1 AND <=5 displays "Tip 3" etc.. More info in the text file..
__________________
Logician's Blog | WebTemplates for vb 4.x : VB Integrated Content Management System I do NOT do custom work, so please do not PM/email me for such projects. Thanks for understanding.. No members have liked this post.
Last edited by Logician : 05 Sep 2002 at 16:56. |
|
#7
|
||||
|
||||
|
Add-on 2: Forum Tips Depending on visitor's seniority
If you copy/paste this text into your announcement box, you'll create a forum tips announcement which will be displayed to your visitors according to their seniority (register date) Eg. If he registered today displays "Tip 1" If he register day >1 AND <3 displays "Tip 2" If he register day >=3 AND <5 displays "Tip 3" etc.. More info in the text file..
__________________
Logician's Blog | WebTemplates for vb 4.x : VB Integrated Content Management System I do NOT do custom work, so please do not PM/email me for such projects. Thanks for understanding.. No members have liked this post.
Last edited by Logician : 05 Sep 2002 at 16:56. |
|
#8
|
||||
|
||||
Very interesting hack!! ![]() No members have liked this post.
|
|
#9
|
||||
|
||||
|
You're great Logican, you alway create very helpfull hacks!
Thank you very much! ![]() No members have liked this post.
|
|
#10
|
||||
|
||||
|
this is AWESOME... one of the best hacks... im definately going to install this later 2nite
![]() - Mist
__________________
Dean Clatworthy - Web Developer/Designer No members have liked this post.
|
|
#11
|
||||
|
||||
|
Bloody brilliant
Defintely going to install this one! Great work LogicanNo members have liked this post.
|
|
#12
|
|||
|
|||
|
Just like Mist says 'this is awesum!'
We are totally gonna try and see if we can use this.
__________________
My community; http://wetalknation.net No members have liked this post.
|
|
#13
|
|||
|
|||
|
awesome hack Logician
reason why you're one of the best at vb.org keep up the great work...g-force2k2
__________________
Custom vBulletin Hacker => Making Ideas Into Working Programs => No Idea Can Ever Be A Bad Idea -- My vb3 Hacks -- [ Posting Required Before Poll Voting ] | [ vb3 Font Color Hack ] | [ vb3 User Forum Activeness Hack ] | [ vb3 Postbit Style Option ] | [ vb3 User Ratings Hack ] No members have liked this post.
|
|
#14
|
|||
|
|||
|
One of the coolest hacks I have seen in a while.
No members have liked this post.
|
|
#15
|
||||
|
||||
|
Terrific hack Logician, as it will defiantly will prove useful for many
![]() *slaps install*
__________________
My OpenSource (as in do with them what you want no need to ask for permission) Scripts: 7/25/04 » Article Bot 1.1, vB3 Member Album 2.0, BB Code Functions, Advanced Search w/Member Conditions, Eggdrop IRC Manager, IRC Manager for mIRC, Existing Topics Check http://www.mozilla.org/products/fire...efox_80x15.png No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 18:20.




Very interesting hack!! 

keep up the great work...
