• Resolved tomtom555

    (@tomtom555)


    hi.
    i have a problem with player statistic for soccer.

    if a player recived a 2nd yellow card and then a red card, in player statistic there is counted both, +1 yellow and +1 red.

    in this case i want to be counted only +1 and for red. yellow card is only shown on scorebox and timeline

Viewing 15 replies - 1 through 15 (of 19 total)
  • Impossible, it is necessary to create a new statistic for the case of yellow + yellow = red.

    Plugin Contributor Savvas

    (@savvasha)

    Why not create a statistic called “2nd Yellow Card”? Red Card and 2nd Yellow should be different I think ??

    Thanks,
    Savvas

    @betisweb
    Yes, but there the statistics count 2 yellow cards and one red. It must be 1 yellow + 1 red. As Savvas says, you need to create a new statistic for this scenario!
    You should use an icon like this:
    https://commons.wikimedia.org/wiki/File:Yellow-Red_card.svg

    • This reply was modified 3 years, 10 months ago by plou.

    @savvasha thks you
    how is the equation

    @plou thks you

    @plou sometime is 1 + 1 yellow card = 1 red, like this event https://www.betisweb.com/web/event/j14-real-betis-fem-vs-sevilla-fc-fem/ so red card not to be counted

    Thread Starter tomtom555

    (@tomtom555)

    @betisweb yes it is OK for Timeline and bor score mode1 (like yours) but not for 2nd mode

    @savvasha i have tried to put a function toadjust player stats: yellow card = yellow card – red card but do not works

    @plou how can i upload a new icon?

    Here is what I advise you to do:
    Player performance (SportSpress configuration) :
    – yellow card (yellowcards variable)
    – red card (redcards variable)
    – yellow/red card (yellowredcards variable)

    Player Statistics (SportSpress configuration))
    – yellow cards (equation = yellowcards)
    – red cards (equation = redcards+yellowredcards)

    Regards,

    • This reply was modified 3 years, 10 months ago by plou.
    Thread Starter tomtom555

    (@tomtom555)

    @plou great! but the first yellow is still added to player statistic under player profile

    Plugin Contributor Savvas

    (@savvasha)

    Hi @tomtom555 ,

    So if I understand it right, you want to keep record of the yellow cards, the 2nd yellow cards and the red cards of an event.
    You should create four differenet stats:
    1. Yellow Card
    2. Red Card
    3. 2nd Yellow Card
    4. (1st) Yellow Card

    If a player was given a direct Red Card then you use the stat (2). If a player was given two yellow cards then you should use the stats (1) and (3). In FIFA regulations I think that in the case of a 2nd yellow card, the first yellow is not counted to the player stats. If that is the case, then you can use the stats (4) and (3) and just hide the stat (4) from Player Statistics. The cards will be shown as usual at the timeline, but the 1st yellow will not be counted to the Yellow Cards of the player ??

    Thanks,
    Savvas

    For me :
    An expulsion as a result of two yellow cards should be calculated like this: 1 yellow + 1 red.

    Thread Starter tomtom555

    (@tomtom555)

    @savvasha GREAT solution!
    Under Timeline it is OK, the problem is under Match profile – Box Score COLUMNS AUTO (design: values) there are shown all cards.

    Plugin Contributor Savvas

    (@savvasha)

    You can hide the cards you dont want to show in Match Profile with some css code.

    Thread Starter tomtom555

    (@tomtom555)

    @savvasha and how to count player statistic the red cards?
    tried RED CARD + 2nd yellow nothing happened- only reduce minutes xoz of sendoff but not count a red card on total

    Plugin Contributor Savvas

    (@savvasha)

    I am not sure I understand why Red Card + 2nd Yellow is not working. Can you share some screenshots?

    Thanks,
    Savvas

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘2nd yellow card -> red card’ is closed to new replies.