• As we use real money we are not predicting every game of the poolstage.
    I’m looking for a way to only allow them to predict games we have picked.
    I found a topic where you stated that i should create a new gametype and drag the games in there and hide the main poolstage.

    It works, however i have an issues with that solution:

    1. the poolpage with the calculations only works on visible gametypes, if i hide one with all the other games it doesn’t calculate, if i show both they can enter the scores of both.

    I was thinking about adding a plugin extension where i define the matchids in an array of the games we are betting on, and hide the inputfields for those certain matches we are not using, but it’s a little out of my league.

    Also i speak Dutch if that’s easier for you, but i thought typing in english might benefit others in the future.

    Thanks in advance

    • This topic was modified 3 years, 9 months ago by pixelhouse18.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author AntoineH

    (@antoineh)

    Hi,

    If it is just about hiding certain inputs, you could also do that with CSS. It requires some manual labour’s, but once you have 1 match correct, it is a simple matter of copy & pasting.

    One thing to keep in mind though, is that clever players could still enter predictions for those matches by fiddling with the page, or even by calling the AJAX endpoint. If you notice this, then you need to delete those predictions from the database (and send the player a compliment for trying to outsmart you 😉).

    Best option, I agree, is the extension. I think it won’t be that hard if we take the Golden Games extension as an example (it has everything: admin screen for selecting matches, template override and pre-calc function to delete fraudulent predictions). I can help with that, I will have a look tonight.

    P.s. I learned some time ago that it is allowed to ask questions on the forum in Dutch, but that won’t help others indeed. And English is not a problem for me.

    Thread Starter pixelhouse18

    (@pixelhouse18)

    I just checked your golden goal plugin, and it has a bunch of code we do not need(like the ball icon for the joker etc) but it could help me out because it has the css code labeling indeed and an easy admin interface. I am aware that if they know css they could possibly just make it visible again, but i have no clue how to do it otherwise without alot of coding.

    Thanks alot for willing to help out!

    Plugin Author AntoineH

    (@antoineh)

    I created a basic version of an ‘exclude matches extension‘ based on the golden games one. Hope this helps (disclaimer: didn’t test a lot).

    Thread Starter pixelhouse18

    (@pixelhouse18)

    Hey, thanks Antoine i think it works as intended, however i’m also using another plugin you made earlier ‘different-points-per-match-type’ and i don’t think it’s taking account for those values. Would be nice if that plugin is installed that it looks at those values, if not the regular plugin values.

    Also i just sent some coffee your way for all the effort your putting in this, there’s more to come your way when the pool goes live in November.

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

The topic ‘Only allow certain gamepredictions?’ is closed to new replies.