• frankiewebs

    (@frankiewebs)


    Hello! I would like to add the point spread (betting line) to matches (for example, CHI -5 @ DET). Is there a good way to do this?

    Thanks in advance! Great tool!

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

    (@antoineh)

    I am not familiar with the term ‘point spread’, so not really sure what you need to do, but in general it is fairly easy to add info to the matches view with the use of some hooks in the code. Only thing you need to do is to overwrite the template and define a new placeholder where you want to put the point spread. And then you need a function to calculate the correct point spread to put in the template.

    A very simple example that overwrites the matches input page can be found here. That can be a starting point to work from. A more extensive example that shows how to add a new placeholder to the ranking template can be found here.

    It does require some PHP knowledge, of course.

    I’m trying to do the same thing, any luck yet? I think I have most working just using the regular plugin. The one thing I would like to add is a confidence points box. It shouldn’t be hard. I’m just trying to wrap my head around the plugin.

    Basically I need a additional box on the predictions page that lets the user enter a value of 1-(the number of matches for that week). Then if the user also selects the winner. Their score is the amount they put in that box. If they don’t select the winner they get nothing. Like I said, I’m experimenting, but shouldn’t be to bad

    Plugin Author AntoineH

    (@antoineh)

    Adding an extra box to the prediction sheet is fairly simple. The example that adds an extra submit button does basically the same.

    But then you’ll need to store the value somewhere, add some validation logic to make sure the entered values are valid and also rewrite the score function.

    All in all this might add up to quite some work.

    But, as said, the example with the submit button on every line and the golden games example (that one overwrites the calc score) may be combined into something that comes close to what you want.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘NFL Pick ‘Em With Point Spreads’ is closed to new replies.