• I am having a problem with the plug-in that is driving me crazy. All of the formatting seems to be correct, the server time/date is correct.

    I am using the plugin to show a PayPal button starting on a certain date and then stop after a deadline date. After the deadline date, I have another timed PayPal button that shows. So, if they pay by the first date, they receive early bird discount. If they pay by the second date, they receive regular pricing.

    Here is my code:

    [timed-content-server show=”2019-08-17″ hide=”2019-10-02 09:31 -0700” debug=”true”]
    <form action=”https://www.paypal.com/cgi-bin/webscr&#8221; method=”post” target=”_top”>
    <input type=”hidden” name=”cmd” value=”_s-xclick”>
    <input type=”hidden” name=”hosted_button_id” value=”TZW8KPMMTV8LC”>
    <input type=”image” src=”https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif&#8221; name=”submit” alt=”PayPal – The safer, easier way to pay online!” border=”0″>
    </form>
    [/timed-content-server]
    Regular Registration: $750
    [timed-content-server show=”2019-10-10″ hide=”2019-11-09”]
    <form action=”https://www.paypal.com/cgi-bin/webscr&#8221; method=”post” target=”_top”>
    <input type=”hidden” name=”cmd” value=”_s-xclick”>
    <input type=”hidden” name=”hosted_button_id” value=”G79BYJUJY5B9J”>
    <input type=”image” src=”https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif&#8221; name=”submit” alt=”PayPal – The safer, easier way to pay online!” border=”0″>
    </form>
    [/timed-content-server]

    As you can see, I added the debug attribute. This is what the debug says:

    Notice
    Debugging has been turned on for a [timed-content-server] shortcode on this post/page. Only website users who are currently logged in and can edit this post/page will see this. To turn off this message, remove the debug attribute from the shortcode.
    The show attribute is currently set to: 2019-08-17,
    The Timed Content plugin thinks the intended date/time is: 2019-08-17 00:00 +0000 (2 months ago.)
    The hide attribute is not set or invalid.
    Current date: 2019-10-02 09:59 -0700
    Content filter: timed_content_filter
    Content:

    PayPal – The safer, easier way to pay online!

    The plugin will show the content.

    What am I missing here? It says the hide attribute is not set or invalid. I have tried with the date only, with specific times, with and without timezones – every conceivable format.

    The problem that I have is that it does NOT hide the first button, but the second button appears when it should – giving me two buttons.

    What am I missing?

    • This topic was modified 5 years, 1 month ago by kenroberts.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    I am sorry, but I can’t reproduce this. The code works fine on my demo server:

    https://wordpress-demo.arnowelzel.de/timed-content-bug-test/

    No errors reported about invalid hide date and the first content is hidden as expected.

    Maybe your server runs an outdated PHP version 5 – then you must use the time zone name “America/Chihuahua” (or “America/Creston” – I’m not sure which one applies here) and not “-0700”:

    [timed-content-server show="2019-08-17" hide="2019-10-02 09:31 America/Chihuahua" debug="true"]
    
    ...
    
    [/timed-content-server]
    
    Plugin Author Arno Welzel

    (@awelzel)

    Oh – and another thing: make sure, the double quotes are exactly real double quotes and not “typographic” ones:

    Correct: " ... "
    
    Not correct: ” ... ”
    
    Also not correct: ” ... "
    
    And this neither:  " ... ”
    
    • This reply was modified 5 years, 1 month ago by Arno Welzel.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show works, but Hide does not’ is closed to new replies.