• Resolved leonardopiel

    (@leonardopiel)


    I am with problems with Joker’s Function. When users select Jokers (clicking in the football ball in matches table) and click save button the page reloads and the joker is not marked anymore. Also, when the match is ended and the ranking is calculated the selected Joker’s game is not contabilized in calcution.

    The option “use jokers” is selected on admin pannel.

    plugin version: 2.9.5
    wordpress: 5.7.2

    • This topic was modified 3 years, 8 months ago by leonardopiel.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author AntoineH

    (@antoineh)

    The joker selection only works for matches that have a prediction (meaning: when both home score and away score are filled in). If this is not the case, then the joker will not be saved with the match.

    If the above is the case, then the first thing I would check, is if there is a javascript conflict on the page. The joker selection works with a javascript function that sets the image to selected and then also saves the match id in a hidden input in the form. If you inspect the page via the dev tools in chrome, you can search for the input named “_joker”, then you should see the value of this input changing when you click a joker icon.

    2021-06-19-09h27-07

    • This reply was modified 3 years, 8 months ago by AntoineH. Reason: fix the screenshot
    Thread Starter leonardopiel

    (@leonardopiel)

    I am trying to choose joker in a match that the home score and away score are filled, so I think this is not a problem.

    I had made an extension to change the “save button” template on predictions form. But I had disabled it and also restored the original file “class-football-pool-pool.php”. But nothing done.
    I used the dev tools in browser. The hidden input’s value is changing normally when I click in a different match. I am thinking in reinstalling the plugin but I don’t want to loose the database data. Is there a way to do that?

    Thread Starter leonardopiel

    (@leonardopiel)

    I reinstalled the plugin, following these steps:

    1) Downloaded the original plugin here: https://www.ads-software.com/plugins/football-pool/
    2) Renamed the plugin folder on webserver to: football-pool-old
    3) Uploaded the original plugin in plugins>add new>upload
    4) installed and activated it.

    Not solved… the joker still is not being saved.

    Plugin Author AntoineH

    (@antoineh)

    What you can try is to disable all other plugins and choose a standard theme. See if that makes a difference. If that works, then re-enable plugins one by one.

    Also, make sure you have debugging enabled in WordPress so you can check the error log for possible hints.

    Before you start, make a back-up of your database.

    • This reply was modified 3 years, 8 months ago by AntoineH.
    Thread Starter leonardopiel

    (@leonardopiel)

    I tried to do that but didn’t solve the problem. I deactivated all the plugins and changed the theme to a default wordpress one.

    I will try explain what exactly what I have:
    I am using the football pool plugin for users to play in “Brasileir?o Série A”. This league has 38 rounds and for each round I am creating a match type. This means: 1° round => match-type called: “1° round” and so on. This way I am grouping the matches in match types.
    So, my question is: a user can select a joker in 1° round but can not select another joker to 2° round? I think this may be the problem.

    Plugin Author AntoineH

    (@antoineh)

    I see. No this is correct, the plugin only supports 1 joker. Players cannot select another joker in a future match type when they’ve already used their joker in a previous one.

    Thread Starter leonardopiel

    (@leonardopiel)

    All right. So I will need to create an extension to do that in the way I want, or this will be very hard (or even impossible) to modify?

    • This reply was modified 3 years, 8 months ago by leonardopiel.
    Plugin Author AntoineH

    (@antoineh)

    I don’t know if it is difficult in the current plugin.

    I am working on a bigger release later this year (Oct/Nov) and multiple jokers are on my wish list for that release.

    Thread Starter leonardopiel

    (@leonardopiel)

    All right. Thank you for your attention. This plugin is very cool, congrats and have a good job. Waiting for these updates!

    • This reply was modified 3 years, 8 months ago by leonardopiel.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Joker is not been saved’ is closed to new replies.