The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
![]() |
|||||||||||||||||||||||||||||||
Notices Criteria - Additional Conditions for Displaying a Notice
![]() Developer Last Online: Sep 2020 ![]() ![]()
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'. History: ---------------------------- 1.2 (May 18, 2014)
Download Now
Screenshots
Show Your Support
|
Comments |
#32
|
||||
|
||||
![]()
I didn't try any of the features and i wasn't already using any of your features, it didn't show any php errors (none in the log either), so i disabled it and all was well, reenabled it and no css on my site, but................... i found that after importing the product with overwrite and finding these problems that i couldn't change settings for anything unless the mod was disabled, so i uploaded an backup copy of my datastore table (because this has fixed stuff for me before) and hey presto! everything worked fine, i just edited a setting and a forum enabled the mod and all is well????
|
#33
|
|||
|
|||
![]()
Thanks for the reply. This is a pretty simple mod with only 2 plugins and a few phrases (and no install code or templates), and one of the plugins only runs if you're editing notices in the admincp, so it's hard to see how it would cause a problem like that - but of course you never know.
![]() |
#34
|
||||
|
||||
![]()
Thank you so much kh99! You're always really helpful and this helped me a ton! Thanks for the hard work mate!
|
#35
|
|||
|
|||
![]()
Script 'register' does not appear to be working. Thanks!
vb4.2, vbSEO |
#36
|
|||
|
|||
![]() Quote:
Anyway, if you want you can edit your navabr template and take out the check for 'register'. Maybe I'll think about making a future version that can override that check if you specify 'register' for "THIS_SCRIPT value is", or at least have a warning of some kind on the description. |
#37
|
|||
|
|||
![]() Quote:
![]() |
#38
|
||||
|
||||
![]()
Great mod, thanks so much Kevin!
A little off-topic but figured you may be able to help -- I have one "notice" like message that doesn't appear in Notices but rather in the navbar template. I am trying to prevent it from showing up on the register and login scripts. I am trying to do this: Code:
<vb:if condition="THIS_SCRIPT != 'register' OR 'login' OR 'someotherscript'"> my code here </vb:if> Thank you. |
#39
|
|||
|
|||
![]()
You would want something like this:
Code:
<vb:if condition="THIS_SCRIPT != 'register' AND THIS_SCRIPT != 'login' AND THIS_SCRIPT != 'someotherscript'"> my code here </vb:if> |
#40
|
||||
|
||||
![]()
Thank you Kevin!
![]() I actually found one of your older posts and got this from it: Code:
<if condition="!in_array(THIS_SCRIPT, array('register', 'login', 'someotherscript'))"> ad code </if> ![]() |
#41
|
|||
|
|||
![]()
Yeah, I was debating whether or not to post that method as well.
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|