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 Details »» | |||||||||||||||||||||||||||
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 |
#82
|
||||
|
||||
Awesome Hack!
Would it be possible to add some comfort to it? New Option in ACP (I don't care about the 1 query) and some usefull buttons to easier configure the conditionals, similiar to bbcode in posts, like a drop down menu where you can choose the usergroup it is shown to, Integration of BBCode-Buttons etc... Guess this is a lot work, isn't it? I would very appreciate if you could take the time. |
#83
|
||||
|
||||
Quote:
Actually I use "conditonals" in many of my hacks and I know that although they are powerful, they are not "newbie-friendly". Therefore I always thought a kind of visual mask for conditionals which would help ordinary users to form them more easily. But there is no easy way to code such an integration. For example you told about choosing "usergroups" from a pull down option which is a good idea but a conditional does not necessarily include a usergroup. It can involve ALL vb user related variables like userid, register date, style id etc, and also ALL the other VB variables like forumid, threadid, post id (that's for my other hacks using conditionals). Besides they can coexist together: For example someone might want to create a conditional which will apply if user group is 6 AND user is viewing thread 17 AND today is his birthday. Well I still couldnt find a way to create a visual mask that will help you forming this conditional. I have to trust the fact that most of the users using hacks with conditionals are "power users" who would need little help to form them.. |
#84
|
|||
|
|||
Most fantastic this hack! Very easy to install and works as promised in 2.2.8 with the changed step 4.
|
#85
|
|||
|
|||
Is there a way to have a general Personal Conditional?
Something like, Welcome, [NICKNAME] to the board. Please make sure that you read the Info & News Forum. So instead of [NICKNAME] it shows the users name? |
#86
|
||||
|
||||
Welcome, $bbuserinfo[username] to the board. Please make sure that you read the Info & News Forum.
|
#87
|
||||
|
||||
is there a way to make it have a fader? like its a news fader.
i saw a hack on a board once, i dont know the name of the hack, but i was wondering if this could do the same thing? it fades from one paragraph to the other, like a javascript fader? could this hack do that also with somw extra modifications? btw, awesome hack! i installed it with no problems. thanks. |
#88
|
||||
|
||||
Quote:
[fade] your text goes here [/fade] all you have to do is put the tag [fade] in your announcement box and the main function inside your forumhome template.. Of course if the script works differently, different solutions may apply.. |
#89
|
|||
|
|||
. . .that warns a user when the PN-Counter ($allpm[messages]) is higher than 'x' PN's.
I tried this code: [[($bbuserinfo[allpm]>=40)]] Hallo $bbuserinfo[username], In Deinen PN Postf?chern liegen zur Zeit $allpm[messages] gesammelte Nachrichten. Noch $rest und Du kannst keine mehr empfangen !! Bitte ?berpr?fe Dein Postfach und l?sche nicht mehr ben?tigte Nachrichten. Danke und Gru? RayMatrix[[/($bbuserinfo[allpm]>=40)]] And also this one: [[($allpm[messages]>=40)]] Hallo $bbuserinfo[username], In Deinen PN Postf?chern liegen zur Zeit $allpm[messages] gesammelte Nachrichten. Noch $rest und Du kannst keine mehr empfangen !! Bitte ?berpr?fe Dein Postfach und l?sche nicht mehr ben?tigte Nachrichten. Danke und Gru? RayMatrix[[/($allpm[messages]>=40)]] Both wont work for me. My Question is: Is $bbuserinfo only looking for fields wich are in DB Folder 'user' ? If no, what do i have to change to read from all the other folders in the DB ? Thanks for your help Regards |
#90
|
||||
|
||||
Quote:
[[($allpm[messages]>=40)]] Hallo $bbuserinfo[username], In Deinen PN Postf?chern liegen zur Zeit $allpm[messages] gesammelte Nachrichten. Noch $rest und Du kannst keine mehr empfangen !! Bitte ?berpr?fe Dein Postfach und l?sche nicht mehr ben?tigte Nachrichten. Danke und Gru? RayMatrix[[/($allpm[messages]>=40)]] But you need to apply the hack to your index.php (not global.php) so that it will work. Because variable $allpm[messages] is assigned a value in index.php and global.php runs before index.php runs. Therefore it is blank if you apply the code in global.php. The answer to your question is: This hack is competible with ALL vb variables available provided that they are assigned a value before dynamic announcement code is run.. |
#91
|
|||
|
|||
. . .but your explanation is to hard for me to understand.
Quote:
If you meen your code: PHP Code:
And another Question: Is there any place where i can read about the Variables so i can understand where '$bbuserinfo' comes from ? And is it right that your Code only get called in index.php when i insert the code as step 4 tells to do ? Thanks for all Regards |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|