Simple GCB Scheduling Plugin? [solved]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Jonny
Forum Members
Forum Members
Posts: 77
Joined: Sun Sep 24, 2006 10:49 am

Simple GCB Scheduling Plugin? [solved]

Post by Jonny »

Occasionally I need to add temporary content alerting visitors to something that will cease to be relevant on a certain date. For this I create a Global Content Block and manually add and remove it from the relevant page.

Is there an easy way to schedule a GCB to be removed on a given day e.g. not displayed beyond a certain unix time? A plugin with parameters for the GCB and unix time of start and end times maybe?
Last edited by Jonny on Wed Jan 23, 2013 4:50 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Simple GCB Scheduling Plugin?

Post by calguy1000 »

something like this should work:

Code: Select all

{if $smarty.now < strtotime('February 1, 2013')}
DISPLAY SOME CONTENT
{/if}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Jonny
Forum Members
Forum Members
Posts: 77
Joined: Sun Sep 24, 2006 10:49 am

Re: Simple GCB Scheduling Plugin?

Post by Jonny »

That's certainly simple and effective! Thanks very much.
Post Reply

Return to “Modules/Add-Ons”