T(-) Countdown
[resolved] Show Content only if Countdown is active (6 posts)

  1. mattmatt88
    Posted 3 years ago #

    Is there also a function to show HTML/PHP content only when the countdown is active (which will be hidden, when the countdown is finished?)


  2. Baden
    Plugin Author

    Posted 3 years ago #

    What do you mean by PHP content?
    Yes, you can use the before and after attributes. Please read the documentation for more info: http://plugins.twinpictures.de/plugins/t-minus-countdown/documentation/
    [tminus t="2012-12-20" before="<p>May the force...</p>"/]

  3. mattmatt88
    Posted 3 years ago #

    Thank you but it seems that div's doesn't work.
    I need such a code to be displayed only if the code is active.

    $votecode = '<div class="ld-container" tid="'.$tidcalc.'" buttonclick="no" userid='.$userid.' pageid='.$pageid.' action="http://xxx.de/poll/ajax_likes.php"></div>';

    But as soon as there is a div class, it doesn't work anymore when I define

    [tminus t="2012-12-20" after="'.$votecode.'"]

  4. Baden
    Plugin Author

    Posted 3 years ago #

    try swapping out your double qoutes (") for single quotes (') and visa-versa...
    Also, a link to the page you are having a problem with would be most helpful.

  5. Rhuan
    Posted 3 years ago #

    me too need this solution, i need show content if only countdown active, if countdown 0 hide content, have chance this plugin make this? how make this shortcode?

  6. Baden
    Plugin Author

    Posted 3 years ago #

    rhcarlos: where do you want to show the content?
    above the countdown would be like so:

    [tminus t="2013-12-23" before="<p>May the force...</p>" launchtarget="above"] [/tminus]


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • T(-) Countdown
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic