• Resolved cardosonash

    (@cardosonash)


    Hi again Antoine! Is there any way to only show matches from next week.. so that the prediction page shows only matches that are going to be played this weekend, even ho the full schedule has been loaded.. im working on an NFL prediction site

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

    (@antoineh)

    Yes, that is possible. There is a manual way and an automatic way. But the latter requires some programming (but I have an example).

    You can do it manually by placing matches in match types (one match type per weekend). A match type has a value to indicate if it should be shown on the website. You can set all match types to hidden except for the first weekend. After every weekend you would have to hide the match type for previous weekend and make the next one visible.

    There is also an automatic way because the matches can be filtered via PHP. There is a hook in the code that you can use for this. I made a quick example (download here) based on the only shows open matches extension. Not sure if it completely fits your requirements, but it is a simple example on how to filter the matches based on dates (timestamps) and maybe you can alter it to your specific needs.

    • This reply was modified 4 years, 6 months ago by AntoineH.
    • This reply was modified 4 years, 6 months ago by AntoineH.
    Thread Starter cardosonash

    (@cardosonash)

    you.
    are.
    the.
    MAN.
    ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Predict matches weakly’ is closed to new replies.