• Resolved rbarrett776

    (@rbarrett776)


    Hi

    In the Club Manager Cricket plug in, I have an issue with the match text regarding the toss. The match view shows who won the toss even if the match result hasn’t been entered yet and as the toss only happens when the match is played, it shouldn’t show until the result is entered.

    This is my first website using WordPress and so it could be something I need to change – please let me know.

    Thanks
    Richard

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rbarrett776

    (@rbarrett776)

    I’ve now extended the plug in to fix this and found a bug too. I’ve changed the function wpcm_cricket_toss_display() to get ‘wpcm-played’ and ‘_wpcm_postponed’ (because there’s no toss for a postponed match either) and put another if statement in. That stop anything being displayed unless the toss has taken place.

    Where the code says if ( $toss = ‘home’ ), the ‘=’ should be ‘==’ to make the code work correctly.

    Thanks
    Richard

    Plugin Contributor Leon

    (@leonterry)

    Hi Richard,

    Sorry for the delay getting back to you!

    Thanks for reporting this issue and including your fix. I’ll get it implemented into the plugin as soon as possible.

    Cheers

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