![]() |
Notices: Time Range Criteria (based upon Server Time)
With this Product, a new criteria is added to the Notice Edit screen. Under "Display this notice if...", you will see an option that asks for a start and an end time for a notice to be displayed. NOTE: this is based upon your SERVER time, not the end user's time, and is based upon a 24 hour clock (no AM / PM here).
To Install: 1) Save the attached product-timecriteria.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! If you would like a version of this mod based upon USER time, please speak up, and I'll make it :) Heck, I'll probably make it anyways :) Version History: 1.0.0 - Initial Release 1.0.1 - Changed to clarify Server Time If you're using this product, you may be interested in a similar product of mine: Notices: Day Criteria (based upon Server Time Zone). Using both products you could have notices show up from 9-5, M-F for instance :) |
RESERVED for future use!
|
You should add the following:
|
You mean give the option to use 24 hr or AM/PM? Yeah, should be possible, although it would clutter up the Notice line a bit, dontcha think?
Yeah, User time is on the to-do list, working on my other mod currently though. |
I like this a LOT. Would it be possible to also add an option for days. I run a website for a radio DJ so wouldn't mind a notice option to say show between Monday and Friday.
|
nice one Wired! obviously installed! ;)
|
Quote:
Quote:
|
Quote:
|
Thanks Wired1 for useful hack, which should be a default vb option with the other hack for day of the week.
1. How could I know the server time now? so that I build my notice based on this calculation. (I am only guessing now). 2. Also the vb option (by date) should be a range not an exact date, could you do a hack for that please. Thanks in advance,, |
Quote:
PHP Code:
|
All times are GMT. The time now is 06:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|