Instructions:
To use the Expiry stack, please follow these instructions in this order:
- Set the time zone in the stack settings. This can be used to offset your server time; for example if your website is hosted in another country, you can set the Expiry stack to your local timezone without needing to mess-around with the server php.ini file. If you are not sure what to enter in this box, refer to http://www.php.net/manual/en/timezones.php for a list of supported timezones.
- Set the time / date setting to the point at which you want active content to hide and expired content to display. We use the PHP mktime function in this stack, so the time and date you provide needs to be entered in hours,minutes,seconds,month,day,year format. So for an expiry date of 16th April 2014, you would need to enter 0,0,0,4,16,2014 in the box.
- In the stack settings, select from the Display menu whether the content should display before or after the expiry date and time is reached or exceeded.
- Drag and drop stacks into the expired content and / or active content boxes. Both are optional, so if you prefer you can omit content from either the expired or active placeholders - useful if you simply want to hide content after a certain date and display nothing in its place.
- Make sure that this page has a .php file extension set in the RapidWeaver Page Inspector. The Expiry stack will try to do this for you automatically, but you should check this setting anyway and refrain from changing it back to another file extension.
Remember - this is a stack that uses PHP code. It will only work on a live web server with a standard (and active) installation of PHP 5.2 or later. It may not always work correctly in RapidWeaver preview, on cheapo web hosts or web servers running a substandard or incomplete version of PHP.
For more innovative RapidWeaver addons, please visit Stacks4Stacks.com and ThemeFlood.com
%[endif]%