Version: 1.2, by kh99
Developer Last Online: Sep 2020
Category: Administrative and Maintenance Tools -
Version: 3.8.x
Rating:
Released: 05-17-2014
Last Update: 05-17-2014
Installs: 7
Uses Plugins
Re-useable Code Translations
No support by the author.
(Note: this is the same code as the vb4 version, so if you are already using that one there is no reason to switch)
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'.
This is the same code as the vb4 version that has been around for a couple of years (and has always worked on vb3), but I'm adding it here so vb3 users have a better chance of finding it.
I know the developer kh99 (who did a great job) has said he won't be updating his mods any more, but he stated his code is freely re-usable. Therefore, can anyone add an extra feature to this mod?
Basically, I'd like a new option at the bottom of the mod, which gives the ability to change the title of the Notices. As you know, by default, the title of EVERY notice displayed to the end-user is always "Notice".
However, this can be manually modified in the Navbar template, i.e. $vbphrase[notices] ... But by modifying this template, it is a global modification, i.e. every Notice would again, have the same title.
So, I'd like an extra option on this mod like this:
- Replace $vbphrase[notices]? Yes / No? Replace with: (insert new title here)
So the admin can put whatever he wants there. The aim is, to give the ability to set individual titles to every notice.