• Resolved ryan944

    (@ryan944)


    Antoine hi, have loaded all the matches for euro2020 which is now next year. I want to only show the first group games only even though the entire list of group matches have been entered. For example just want to show the matches from friday 11th june 2021 to tuesday 15th june 2021 rather than all the first group stage matches even though they have been entered. I hope you understand what I mean. Thanks for previous help….excellent plugin and support.
    Ryan

    The page I need help with: [log in to see the link]

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

    (@antoineh)

    Hi Ryan,
    I think the easiest way to do this, is by defining extra match types, e.g. “group phase week 1”, “group phase week 2”, etc. Or whatever naming you prefer. Match types can be hidden/shown via a checkbox in the admin.

    If you use extra match types, don’t forget to add them to the group phase setting in the plugin options. Otherwise your group standings for the tournament won’t work.

    Another (automatic) option is to filter the matches on date and only show matches for an X day period. Fairly simple to do, but requires some PHP knowledge because you’ll have to write a small script that hooks into that code. I think I posted an example some time ago on the forum. Will have to look it up.

    Thread Starter ryan944

    (@ryan944)

    Antoine hi….thanks..the automatic way sounds the better…will search forum ..but if you come across it then please send link. Some of the extra php scripts you have written are excellent and trying to learn how to do this with online courses but lockdown 2 is not as severe as the first one…and very busy.

    Plugin Author AntoineH

    (@antoineh)

    This post has an example that shows matches for 1 week (weekend + 7 days).

    If you want to change the date range, you can alter the part that sets the $startOfRange and $endOfRange vars. The function simply walks through the matches array and only returns the ones that fit the date range.

    Thread Starter ryan944

    (@ryan944)

    Antoine hi – thank you – looks ideal and can modify the date range. Maybe if you ever do an update on the plugin – when you goto matches if you put an box “active” next to match.. then this can be selected just to show the games you want ie first week of league or cup even though the entire league fixture list has been entered.
    This would work well with your only show open matches..

    Just one other thing – have duplicated site and imported databases – when I use your default ranking page – the no of points next to all users are 0..but when I created a weekly ranking it says no match data available – no scores have been entered but know it works when predictions and scores are entered?

    Thanks again for swift reply.

    Plugin Author AntoineH

    (@antoineh)

    Maybe if you ever do an update on the plugin – when you goto matches if you put an box “active” next to match.. then this can be selected just to show the games you want ie first week of league or cup even though the entire league fixture list has been entered.

    That’s what the match types and visibility setting are for. If I also add it as a field on matches, it seems a bit double.

    Just one other thing – have duplicated site and imported databases – when I use your default ranking page – the no of points next to all users are 0..but when I created a weekly ranking it says no match data available – no scores have been entered but know it works when predictions and scores are entered?

    When the ranking shows zeroes for every user, then either the active ranking table is empty (can be solved by activating a calculation in the admin), or there are no predictions from users in the database (or all are wrong ??) or if none of the matches have finished. In case of the latter, a calculation will not work because that code will only calculate for matches in the past and with an end result in the database.

    Hope this helps.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show only selected active matches.’ is closed to new replies.