WordPress.org

Ready to get started?Download WordPress

Forums

Football Pool
[resolved] Show countdown when not logged in (5 posts)

  1. srozemuller
    Member
    Posted 2 years ago #

    countdown is now visible without logging in:

    replace the following:

    if ( ! is_user_logged_in() ) return;

    with

    if ( is_user_logged_in() && ! is_user_logged_in () ) return;

    in the widget-football-pool-next-prediction.php file

    Sander

    http://wordpress.org/extend/plugins/football-pool/

  2. AntoineH
    Member
    Plugin Author

    Posted 2 years ago #

    Sander, if you want the widget to be visible for all users, then you can delete the entire line. Your code will never evaluate to true, so in fact your addition is kinda strange ;)

    btw. this widget is still not 'officially' supported. You may use it, but I can't guarantee it's correct working.

  3. Maly77
    Member
    Posted 2 years ago #

    Widget with countdown would be great ;)
    Even better if the countdown was to 'One prediction stop'.
    Or shortcode on the prediction's page. ;)

  4. AntoineH
    Member
    Plugin Author

    Posted 2 years ago #

    @Maly77: the shortcode [countdown] now has a few new parameters (date is one of them). You can use that one on the predictions page or in a post if you set the date to the same date as you set for 'one prediction stop'. See help page for details.

  5. Maly77
    Member
    Posted 2 years ago #

    Thanks :)
    I used Countdown Next Prediction Widget and is OK.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic