The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Widget Logic
Displaying a widget on a specific day/timezone (2 posts)

  1. comicstackca
    Posted 2 years ago #

    Hello all,

    I've been playing around with the code for Widget Logic specifically trying to have a widget appear on Wednesdays only at 7PM CST. I'm not as php savy as I'd like to be so while I know some of the code to do it, I'm not sure how to put it all together.

    Any help would be greatly appreciated!



  2. comicstackca
    Posted 2 years ago #

    This is what I've got so far to have it display at 7PM but I believe that this will make the widget go live for anyone looking at it at 7PM locally and not be dependant on what timezone the person is in:

    $hour = date_i18n('G'); if ($hour > 18 && $hour < 20) return true;

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic