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

  1. srozemuller
    Posted 4 years ago #

    countdown is now visible without logging in:

    replace the following:

    if ( ! is_user_logged_in() ) return;


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

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



  2. AntoineH
    Plugin Author

    Posted 4 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
    Posted 4 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
    Plugin Author

    Posted 4 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
    Posted 4 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

  • Football Pool
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic