• Resolved exorrsmits

    (@exorrsmits)


    Hi,

    I want to change the calculation a bit.

    For example:

    <table>
    <tr>
    <td>1-1</td>
    <td>0-0</td>
    <td>
    toto points.<br />
    total = <?php echo $totopoints; ?> = <?php echo $totopoints ?>
    </td>
    </tr>
    </table>

    Should be in my pool:

    <table>
    <tr>
    <td>1-1</td>
    <td>0-0</td>
    <td>
    toto points.<br />
    total = <?php echo $totopoints; ?> + <?php echo $diffpoints; ?> = <?php echo $totopoints + $diffpoints; ?>
    </td>
    </tr>
    </table>

    In wich file do i change them?

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

    (@antoineh)

    The best way is to create a plugin that extends mine using the correct filter/hook.

    There is an example in the first post in this forum.

    Thread Starter exorrsmits

    (@exorrsmits)

    I’m sorry.

    I know a little php and html.
    so creating an plugin who extends youre plugin is not working for me.

    This is one of the last things i have to fix to get i fully working for our rules of the competition.

    Plugin Author AntoineH

    (@antoineh)

    If you look at the example in the opening post, then I think it is exactly what you want. So just save the example in your plugins folder and activate it to try the result.

    Change the score calculation (v2.5 and up)
    Since version 2.5 changing the way the plugin calculates the score has become very simple. This example also rewards the goal diff points when the match ended in a draw and the user predicted a draw.
    football-pool-extension-change-calc-score.php

    Thread Starter exorrsmits

    (@exorrsmits)

    Thx!

    I will let you know.

    Thread Starter exorrsmits

    (@exorrsmits)

    Many Thx!

    it works like a charm!
    and super simple.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Own calculation’ is closed to new replies.