Support » Plugin: Football Pool » How do I display team names in the forecast table?

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

    (@antoineh)

    Can you explain a bit more what you want? I am not sure what you mean with the forecast table.

    Thread Starter lemp8

    (@lemp8)

    @antoineh,
    check screenshot.
    https://ibb.co/YZ74b2D
    I hope the screenshot will give more information about what I want to do.

    • This reply was modified 5 years, 4 months ago by lemp8.
    • This reply was modified 5 years, 4 months ago by lemp8.
    Thread Starter lemp8

    (@lemp8)

    @antoineh,
    I found a way to show the names of the commands in the table, but this is not a very convenient way if a lot of predictions were made, because the data in the database has to be written manually.
    check out the screenshot https://ibb.co/FnNJ3Fh
    My way:
    1) I created 2 additional fields in the database, home_team and away_team.
    2) then in code prescribed p.home_team and p.away_team
    3) wrote variables in the table itself.
    But as I said, this method is inefficient, because you need to register the data in the database manually.

    result screenshot: https://ibb.co/HLSS153

    The question is how to make the names of the teams entered into the database automatically after the match is created?

    • This reply was modified 5 years, 4 months ago by lemp8.
    • This reply was modified 5 years, 4 months ago by lemp8.
    • This reply was modified 5 years, 4 months ago by lemp8.
    Plugin Author AntoineH

    (@antoineh)

    Changing the template is indeed the way to go, but you don’t have to change the database or even the code in the plugin. You can overwrite the template via a hook and insert the template parameters for team names from the match info array.
    I’ll check it tonight for you.

    Thread Starter lemp8

    (@lemp8)

    @antoineh,
    Okay, I’ll wait for an answer.

    Plugin Author AntoineH

    (@antoineh)

    With this extension plugin every row in the predictions table will also show the team names.

    Hope this is what you were looking for. If not, you can easily change this example with the HTML that you need.

    Thread Starter lemp8

    (@lemp8)

    @antoineh,
    Yes, this is what you need, but it displays only one command.
    check screenshot https://ibb.co/C8FP532

    • This reply was modified 5 years, 4 months ago by lemp8.
    Thread Starter lemp8

    (@lemp8)

    @antoineh,
    I found a bug that I accidentally created in the plugin itself, the add-on works as it should, thank you. The result screenshot https://ibb.co/S6G54wh

    Plugin Author AntoineH

    (@antoineh)

    You’re welcome 🙂

    Thanks for letting me know.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How do I display team names in the forecast table?’ is closed to new replies.