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..
Originally posted by SpeedStreet GREAT Hack! Only problem I am having, is that if I try entering in HTML code, it will not parse it. I only see my code on the page.
Sinan, if we choose to put the code in the global.php, do we need to use the code for 2,2,8 and above like we did in the index.php (before it was removed) or the code you have in that section (which is the code for 2.2.7 and below)? I am running 2.2.9.
And is it ok to use this AND the Dynamic templates hack together, ir is it redundant to do that? I have them both installed now.
Originally posted by Boofo Sinan, if we choose to put the code in the global.php, do we need to use the code for 2,2,8 and above like we did in the index.php (before it was removed) or the code you have in that section (which is the code for 2.2.7 and below)? I am running 2.2.9.
good point.. Yes you have to use the code for 2.2.8 above if you are using vb 2.2.8 or later..
Quote:
And is it ok to use this AND the Dynamic templates hack together, ir is it redundant to do that? I have them both installed now.
they can work together, I have them both installed too...
Thank you, sir. I use the Dynamic templates hack for EVERYTHING now. I'm looking forward to making good use of the one, too.
By the way, is there a way to be able to use the announcements on any page AND the index.php? I know we have to put it in one or the other, but it would be great to be able to use them both places. Do you know what I mean?
One last thing...is there a way to make a link in the left panel that will take you to the bottom of the vbulletin options where the announcement box is straight from that link?
uh you are replying me faster than I'm replying you lol
Quote:
Originally posted by Boofo Thank you, sir. I use the Dynamic templates hack for EVERYTHING now. I'm looking forward to making good use of the one, too.
yeah I like the hack much too..
Quote:
By the way, is there a way to be able to use the announcements on any page AND the index.php? I know we have to put it in one or the other, but it would be great to be able to use them both places. Do you know what I mean?
adding the code in global.php should let you use in main page too. In other words adding there means using in any vb page..
Quote:
One last thing...is there a way to make a link in the left panel that will take you to the bottom of the vbulletin options where the announcement box is straight from that link?
Originally posted by Logician uh you are replying me faster than I'm replying you lol
Great minds think alike. LOL
Quote:
adding the code in global.php should let you use in main page too. In other words adding there means using in any vb page..
Ok, but you said the global is called before the index.php. I was referring to the $allpm example you gave above. I would like to be able to do that sort of thing on the index page and still be able to use it elsewhere in the forum.
And I tried adding that code under the vb options link on the left but it takes me to the top of the vb options listing instead of to bottom of it. And idea how to make it go to the bottom? I did the settinggroup ID but it didn't change it.