Version: 1.00, by Logician
Developer Last Online: Nov 2023
Version: 2.2.x
Rating:
Released: 09-04-2002
Last Update: Never
Installs: 146
No support by the author.
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 (or other board pages), not inside thread view. So visitors will read them without clicking on them.
The Hack's announcements are not static: ie. they can be powerfully programmed to change themselves according to many conditions.
Basic Usage : You can set a text in your Admin CP and it's displayed in forum home to all users.
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
his profile field Z is X
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
User is invisible/visible
user is using style A
his cookies are on
his timeset is set to A
etc..
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..
Before that paste (insert) the hack code, then you'll be fine..
Quote:
Is there any place where i can read about the Variables so i can understand where '$bbuserinfo' comes from ?
$bbuserinfo variable saves the info of the page visitor according to the "user" and "userfield" tables. Field names in these tables are also references in this variable. So for example the "usergroupid" field in user table is $bbuserinfo[usergroupid]. Check the fields in these 2 tables and you'll see what this variable keeps.
Quote:
And is it right that your Code only get called in index.php when i insert the code as step 4 tells to do ?
What I meant was that: Check where the hack code resides and where your variable $allpm[messages] gets a value. The hack code is parsed BEFORE $allpm[messages] is assigned a value so it couldnt work in your announcement.
If you heed to my advice and change the code's location, the hack would parse the $allpm[messages] variable because it would already have a value BEFORE hack runs..
Originally posted by gohanssj2 I have a question can you do this outside the announcement?
Do what? If you mean "using conditionals", I have some other hacks using them:
For non-vb web pages check webtemplates hack
For vb templates check dynamic templates hack
Originally posted by Logician
Do what? If you mean "using conditionals", I have some other hacks using them:
For non-vb web pages check webtemplates hack
For vb templates check dynamic templates hack