![]() |
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:
|
nice add on
thanks |
Quote:
|
Wired,
I'm trying to modify this to add in a "member for X days" option. Do you think that would be a simple change of where it looks for the variable (instead of TIMENOW, use [joindate])? |
Quote:
|
I've got a notice working for if someone has been a member for X number of days, if you want I'll throw it up.
|
I would looooooove a notice like that! :) Great for forums where a member should "do something" after a certain number of days.
|
Quote:
You can use it in 2 different ways. Say it's 30 days. You can enter that in, and the notice will only show up for that one day. If you check the box, it will keep on showing up past that. |
Quote:
|
So for example, from 5-26-08 to 5-28-08? Ya, that's doable. I'll look into it this weekend.
|
Quote:
also for this hack could you: 1. display server time (beside the option) and +/- GMT ? and 2. put a new field for offset, so that we put our time and the offset to server time. Thanks for your great job Wired1. |
Quote:
Thanks for all your great mods. |
Quote:
|
No promises, but I'll try to look at it tomorrow. Coding time has gone to 0 since I started a new job.
|
i searched for it sooooooooo long!!!
|
Installed.
Thank you Wired :up: |
All times are GMT. The time now is 05:55 PM. |
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:
|