Version: 1.2, by kh99
Developer Last Online: Sep 2020
Category: Administrative and Maintenance Tools -
Version: 4.x.x
Rating:
Released: 01-14-2012
Last Update: 05-17-2014
Installs: 80
Re-useable Code Translations
No support by the author.
What is it?
----------------------------
This mod adds new criteria that can be used to configure when a notice will be displayed or not. (These came from separate requests in the forums which I decided to release as one mod.)
1) Show notice only on one or more days of the week
2) Show notice for any style other than one selected style
3) Show notice only for specified threadids (in this case the notice will on display on the showthread and newthread pages).
4) Show notice if THIS_SCRIPT value is (or is not) in specified list of values
5) Show notice if user has been registered for more/less than a certain number of days
6) Show notice only during certain months
7) Show notice only when user is/is not browsing selected forums (this duplicates the functionality of the standard functions, but adds flexibility).
Installation:
----------------------------
Just import the product XML file from the Product Manager. The new criteria will appear when adding or editing a notice in the Notices Manager.
Notes:
1) Should work on 3.X and 4.X versions.
2) Since notices aren't shown on the register.php page, adding "register" for the "THIS_SCRIPT value is" option will not work. If you want to show notices on the register page, you must edit the navbar template and remove the check for THIS_SCRIPT != 'register'.
As far as I know there's no reason to upgrade just for 4.2. You say it works - did something about notices change in 4.2? To be honest I haven't had the chance to download 4.2.0 yet.
Edit: I changed the version to 4.X.X, which it probably should have been all along.
It works fine on 4.2.0, Kevin. The only mods that should have any issues are any Navbar mods, as far as I can see.
been waiting for this since vb3 ... I always feel the conditional options for notice are too few. Sometimes I had to make several rules just to invert it to meet my condition.
Yep, excatly that, i didn't know whether it should be a dropdown of script names or whether a textarea to enter a script name, however this leaves it open to typo's and improper case so you'd get loads of "it's not working...." posts
Right, but the problem with a list is that it wouldn't contain possible custom script values. I suppose I could have a dropdown and a text area for "other".
Edit: well, I just did a search and found nearly 100 THIS_SCRIPT values - That's quite a list to be choosing from, especially if you want to allow multiple selections. I might just have to go with a text field. But I suppose I could also accept the php file name and build an array to lookup the THIS_SCRIPT value, that way you wouldn't have to know it (which is probably a common problem for people who never look at the source code).