Support » Plugin: Timed Content » Hide and Show content Everyday

  • Resolved enthusiast1

    (@enthusiast1)


    Hello,

    I have a live video feed that needs to only be displayed from 9:00am to 5:00pm every single day. I can’t seem to figure out how I would do that. @awelzel please help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • [timed-content-server show=”2019-06-18 03:10 America/Los_Angeles” hide=”2019-06-18 03:15 America/Los_Angeles”][/timed-content-server]

    Is my current shortcode…

    And im not clear if this blocks the whole page or just an element from displaying.

    Also do I need to specify Post ID or what?

    Thanks for the help

    • This reply was modified 4 months, 4 weeks ago by  enthusiast1.
    Plugin Author Arno Welzel

    (@awelzel)

    Everything is explained in the examples in the FAQ as well. You have to do two things:

    1) Create a rule (see “Timed Content rules” in the backend) with the following settings to show content every day from 9 AM to 5 PM for the next 10 years:

    Action
    Show the content

    Starting date/time
    Date: 2019-06-18 Time: 09:00

    Ending date/time
    Date: 2019-06-18 Time: 17:00

    Timezone
    America/Los_Angeles

    Repeating pattern
    Frequency: daily
    Number of recurrences: 1

    Stopping condition
    Keep repeating until a given date
    Date: 2029-06-18

    2) Insert a timed content rule shortcode in your page or post which includes the video – replace the ID number – 1 – with the real ID the rule has or just use the editor popup to insert the rule from there:

    [timed-content-rule id="1"]
    
    Your video goes here.
    
    [/timed-content-rule]

    Would something like your example above be used to toggle 12hrs/12hrs, everyday, between one set of: a call button and 2 displayed phone numbers (which are also activated through a call plugin) and another set of a call button and displayed number(s).

    Not sure if my present Call button can accept more than one number, maybe there is a work around. Maybe someone has already done something like this…
    Thanks

    • This reply was modified 4 months, 3 weeks ago by  morbea. Reason: clarify simplify
    Plugin Author Arno Welzel

    (@awelzel)

    You have to create two rules which show the content for 12 hours every day.

    Rule 1 for 00:00 – 11:59
    Rule 2 for 12:00 – 23:59

    Then you add the buttons with the rule shortcodes in the page:

    [timed-content-rule id="1"]
    
    Button with phone number 1 for 00:00 - 11:59
    
    [/timed-content-rule][timed-content-rule id="2"]
    
    Button with phone number 2 for 12:00 - 23:59
    
    [/timed-content-rule]

    Just play around with the rules and the shortcodes to get familiar with it!

    Thank you. This looks like a great tool!

    Hello, I’m wondering if there is a client-side shortcode for repeating timed content. I have used the “rule” way of doing it, but my client is married to Godaddy (doesn’t allow disabling cache on certain pages, doesn’t even have an official way of disabling cache for all pages)
    So I want to implement the client-side shortcode, because I don’t care that my users are able to see the content in html, but I need it to be repeated once daily.
    Is there a shortcode handle for repetition? Thanks in advance

    Plugin Author Arno Welzel

    (@awelzel)

    @awkellett no, there is no client side shortcode with repeating timed content. You can only hide or show content once after a given time. So far there are also no plans to implement server side rules to be used as client side rules, since this would require implementing the whole rule logic in JavaScritp as well in addition to the existing server side logic.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.