Support » Plugin: CSSable Countdown » CSS Countdown Timer

  • Resolved dapuru

    (@dapuru)


    Hi there,

    I’m not actually using any version at the moment. Although I am looking to host with Dreamhost. I’m looking for a plugin that counts down the time users have left before their subscription expires, for multiple users. To clarify: When a member logs into my site, they will see a timer that lets them know how much time they have left before their subscription expires.(Days, hours, minutes, seconds.)

    Have looked and looked, and this is the closest I have come so far. Is your plugin capable of this?

    Thanks a bunch.

    https://wordpress.org/plugins/cssable-countdown/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dmonnier

    (@dmonnier)

    Yep, but since it’s dynamic per-user you’ll have to code it in the template(s) for wherever the user will see it. Something like this in, say, header.php:

    if ( {user is logged in} )
    {
    	$subscription_expires_date = date( 'm/d/Y', {timestamp from database} );
    	$subscription_expires_time = date( 'H:i:s', {timestamp from database} );
    	do_shortcode( '[countdown date='" . $subscription_expires_date . "' time='" . $subscription_expires_time . "' ...]' );
    }

    It’s completely doable, you just need to know a little code. 🙂 Does this answer your question?

    Woohoo!! Thank you so much. Haven’t tried it yet, but will do and will let you know the results. Hmmm may take a coupla months tho. Lol. Thank you thank you thank you. mwah!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS Countdown Timer’ is closed to new replies.