Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author landoweb

    (@landoweb)

    To do this you need to understand a little PHP programming.

    1) Go to Admin >> Plugins >> Editor and select the World-Cup-Predictor plugin.

    2) Open the file world-cup-predictor/admin/wcp-scoring.class.php and look for function calculate_scores().

    3) Change it as desired and save the file.

    Thread Starter Ole1210

    (@ole1210)

    Thanks for your quick reply. I found the function, but unfortunately I do not understand it.

    same here.

    I am not really able to understand that code. It′s not that it is bad code… it′s that I have no idea what it stands for ??

    Could you provide a “look for this” and “replace with this” to make

    1. Difference not shown as commulative scores in admin settings
    2. Difference not commulative in point calculation.

    For exact amount of goals, it is a good idea I think.

    But I want to grand extra points, if the result is not exact but difference and winner are right.

    Example:

    Exact: 3 points (just exact)
    Result: 3:1 Prediction 3:1 => 3 Points (just exact, no bonus)

    Result: 3:1 Prediction: 2:1 1 Point (just winner)

    Result 4:1 Prediction: 5:2 = 2 Points (winner + bonus)

    Thanks

    Btw..

    I think, it does not make any sense to grand bonus points when the result is exact the prediction, because every exact prediction has the correct goal difference.

    So, it would really help to just disable points for goal difference for exakt results/predictions

    Thread Starter Ole1210

    (@ole1210)

    Could you please help me? I am asking, because games like this have a bit different rules in germany.

    Plugin Author landoweb

    (@landoweb)

    The plugin does not claim to meet all standards of desired score in all countries. The file to be modified is the world-cup-predictor/admin/wcp-scoring.class.php. Any professional who understands PHP programming can perform customization to fit the pattern of desired score, but this is not a support question but a customization.

    I suggest that you hire a professional who can perform such customization for you.

    Thread Starter Ole1210

    (@ole1210)

    How much is it, If you do that customization?

    Plugin Author landoweb

    (@landoweb)

    If I’m not mistaken, the forum rules do not allow this type of trading. Anyway, any programmer could accomplish such changes in an hour of service. Thus, the value depends on how this developer charges by the hour.

    Thread Starter Ole1210

    (@ole1210)

    I understand, I wrote an email.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Bonus points’ is closed to new replies.