• Hi,
    I have loaded the EURO 2020 match data but then bought a game’s date forward so I could test it.

    On the predictions page now, it shows my prediction for this game but not the actual result of the match which I added in the admin matches page? I can see some placeholder divs for the actual scores, but nothing has populated into them.

    Should this happen automatically?

    • This topic was modified 3 years, 6 months ago by haydnjames.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter haydnjames

    (@haydnjames)

    I found there was a setting for this for the USER page, but nothing for the predictions form page.

    • This reply was modified 3 years, 6 months ago by haydnjames.
    Plugin Author AntoineH

    (@antoineh)

    This is by design. The prediction form page cannot show the actual results because I do not pass the user page setting to that page. The setting was only intended for the user page.

    You see the empty div because both parts use the same code to display the info. This allows you to make use of this code with some PHP coding: you can overwrite the template params ‘home_actual_score’ and ‘away_actual_score’ with the filter ‘footballpool_predictionform_match_template_params’ with the correct values (get it from the get_match_info method in the Matches class). When the value is populated, it will be automatically shown in the template. This requires some PHP knowledge, though.

    Thread Starter haydnjames

    (@haydnjames)

    Thanks @antoineh ??

    After delving into the templates to make some other modifications I think I’d come to the realisation this was by design. Thanks for responding though and thanks for a great plugin!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Actual scores missing from predictions page?’ is closed to new replies.