The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||||
Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals
![]() Developer Last Online: Nov 2023 ![]() ![]()
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 \\=^)) Show Your Support
|
Comments |
#62
|
||||
|
||||
![]() Quote:
But if you need to use conditional power inside your header template (or any other template) I suggest you checking my Advanced Templates hack either..(Please find it in my profile). You can set conditionals inside your header (or any other template) and if you want you can set announements there too.. 2 methods, choose your pick! ![]() |
#63
|
|||
|
|||
![]()
. . .but got this Error Message:
Warning: Failed opening '/home/ish/install.php' for inclusion (include_path='.:/usr/share/php') in Unknown on line 0 This comes up when running the DFHA_install.php The File ist in the Board root Folder, the Board work and its php4.1.x installed. Any Ideas ? |
#64
|
|||
|
|||
![]()
RayMatrix
permissions for that folder and file? Do you have that dir and or file chd to 777 so you can run it. If its not, then it will do that too. |
#65
|
|||
|
|||
![]()
. . .thats it. . .the simplest things are most time the hardest
![]() THANKS !! |
#66
|
|||
|
|||
![]()
You maze me yet again Logi, I now have three of your additions on my forums, Currently i'm trying to get them integrated and working, but they are on and working.
Only questions I have are.. Simple: How can I find the usergroup IDs? (i'm sure its very simple and I'm sure I could just create a small bit of PHP to tell me, but hey, why screw up when ya'll are so smart) and two.. Would it be possible to somehow get more conditionals working at one time? I know you say it can't be done in all of your readmes, but I'm sure there is a way for it to parse each thing not just do one then stop. I havn't looked but I'm assuming that the general code is similar to If conditional1 is true end, else goto next bit but could it be possible to do if conditional1 is true display, now do conditional2, and so on yes good 'ol PSEUDO because currently how I plan to do it willl be have one conditional with all things i want in it, plus everything else, then another conditional for some thigns already in the other and so on, but that takes SOO much time, and is SOO un-efficiant. Theres gotta be someway we cna make it so it parses every conditional no matter what. Edit: OK, now i was thinking that considering most code in the php files around everywhere, its along the lines of If Blah elseif blah elseif blah so really maybe it just should be if blah; if blah; if blah; then each conditional is parsed and used no matter what little bit of editing needed so that all things appear in one box and not in 4 or 5 :P |
#67
|
||||
|
||||
![]() Quote:
Quote:
|
#68
|
||||
|
||||
![]()
Cheers mate!
VeryVERY cool hack, works like a charm on 2.2.8! |
#69
|
||||
|
||||
![]()
[[($bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)]]
Hi $bbuserinfo[usergroupid], diese Nachricht k?nnen nur Moderatoren und Admins lesen. Bitte einen Thread im Mod-Board aufmachen oder in einem Antworten, ob Du das lesen kannst :umfall: Gr??e Wildthinks [[/($bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)]] The "Hi $bbuserinfo[usergroupid]," are on screen and not "Hi Wildthinks" ![]() |
#70
|
||||
|
||||
![]() Quote:
And BTW. you should use "Hi $bbuserinfo[username],", not "$bbuserinfo[usergroupid]" ![]() |
#71
|
|||
|
|||
![]()
Just wanted to thank you for another great and powerful hack, Logician. Every bit of personalization and customization helps, and as always you've added tremendously to my abilities to control my forum. Thanks!
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|