View Full Version : Administrative and Maintenance Tools - Notices: Day Criteria (based upon Server Time Zone)
Wired1
05-20-2008, 10:00 PM
NOTE: This is currenty @ beta status. For whatever reason, parts of the week are triggering others. Working on a fix.
With this Product, a new criteria is added to the Notice Edit screen. Under "Display this notice if...", you will see three new options. Using them, you can select which days of the week your notice will show up. NOTE: Yes, this is based upon your SERVER's time zone, not the end user's time zone.
To Install:
1) Save the attached product-daycriteria.xml file.
2) Navigate to AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product]
3) Browse to wherever you saved the file.
4) Allow Overwrite -> Yes.
5) Import!
Version History:
1.0.0 - Initial Release
You may be interested in a similar product of mine: Notices: Time Range Criteria (based upon Server Time) (https://vborg.vbsupport.ru/showthread.php?t=178377). Using both products you could have notices show up from 9-5, M-F for instance :)
Wired1
05-21-2008, 12:59 AM
reserved for future use.
Lionel
05-21-2008, 01:06 AM
Perfect for store open/close days
Wired1
05-21-2008, 01:16 AM
Yep! I'm going to use it in combo with my other mod for a pretty similar purpose, opening / closing hours / days for various departments.
Next step is to figure out how to lock a notice into a calendar, so you can auto-adjust for holidays :)
soulface
05-21-2008, 05:08 AM
Can you make those days in an one single line rather then making in 3 line ?
Wired1
05-21-2008, 06:01 AM
Can you make those days in an one single line rather then making in 3 line ?Not with the limitations of the Notice system, only 3 conditions per notice criteria currently (3 checkboxes per notice). Only way around it is with manual edits and database changes. Not worth it. Multiple product coders have started threads @ vbulletin.com about this limitation.
I've already got a version coded for when they fix said limitations though. Product will be smaller than it currently is.
Lionel
05-21-2008, 06:45 AM
About one check box for every day, and then you do like you have for exclude days
Wired1
05-21-2008, 07:20 AM
About one check box for every day, and then you do like you have for exclude days
I have no idea what you mean. Can you please elaborate?
readjono
05-21-2008, 09:26 AM
Just one little problem for me - the 'date' product appears in the middle of the lines for the days. Not a huge problem but would be nice to change that.
KURTZ
05-21-2008, 11:45 AM
another installation for you Wired ... :p
Wired1
05-21-2008, 06:24 PM
Just one little problem for me - the 'date' product appears in the middle of the lines for the days. Not a huge problem but would be nice to change that.Can't replicate it myself, but it's easy to fix. It's happening because they all have the same Execution Order.
Two ways to fix it:
Disable the Adds Server Time Criteria plugin, save, enable, save.
OR
Edit the plugin Adds Server Time Criteria, go to Execution Order. Change it to 6.
another installation for you Wired ... :pThanks!
readjono
05-25-2008, 01:33 PM
As pointed out, yesterday it was showing Friday's message.
Wired1
05-25-2008, 08:57 PM
You can check any of the 3 criteria (NOT the conditionals), and it'll set them all to true. Still working on a fix.
readjono
09-03-2008, 02:24 PM
Did this ever get any further?
mgurain
10-20-2008, 11:31 AM
You can check any of the 3 criteria (NOT the conditionals), and it'll set them all to true. Still working on a fix.
yes that what is happening!
It will be a great fix if you repair it.
Thanks a lot.
mgurain
03-01-2009, 04:21 AM
yes that what is happening!
It will be a great fix if you repair it.
Thanks a lot.
Hope to see it fixed soon, thanks,,
Daniel_HBK
07-28-2009, 03:25 AM
Wow i wanted it so far !!
mgurain
12-16-2009, 01:31 PM
Hi Wired1,
This would be a great mod if you fix it and upgrade it to 3.8.4 ,
Days should be in one radio button (in one line) but each day has a checkbox,
that will do an 'OR' condition for checkboxes.
Thanks,,
Wired1
12-16-2009, 10:46 PM
Limitations in 3.x prevent it from working fully. It's on the list to look into upgrading after my major mods are upgraded for vB 4.0.
TheMic
08-05-2010, 08:22 AM
Limitations in 3.x prevent it from working fully. It's on the list to look into upgrading after my major mods are upgraded for vB 4.0.
there is a new update for vb4?
thanks in advance!
Where exactly is the problem. I played a little with the code and got the first part working.
The MOD now shows up and the days can be picked.
I can't figure out, why the conditionals aren't working. The notices just won't show up at the right day.
If the author has no interest on the MOD any more, is there a way to get the idea out of this dead area to somewhere, where people might read it?
CoffeeLovesYou
11-10-2011, 04:16 AM
Does anyone know how to do this without the mod?? I really need to know how and this doesn't work :(
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.