Support » Plugin: SportsPress - Sports Club & League Manager » League table – GOALS “:” separately

  • Hello!

    I need to add a new column to the league table.

    What I need to do is that GOALS(FOR) and GOALS(AGAINST) I want to show like this -> GOALS(FOR) “:” GOALS(AGAINST) example: 104:84 in one column I need to have this stats.

    Example of the table is here: http://www.livesport.cz/fotbal/cesko/1-fotbalova-liga/tabulka/

    My webpage: https://futsalhavirov.cz

    Please tell mi if is it possible to do it with little custom code and what code to use for it, JS or CSS or another else?

    Where should I paste this code?

    Do you have any other ideas?

    In Czech Republic we use in league tables GOALS(FOR) and GOALS(AGAINST) separately by “:

    I thank you in advance for your help.

    Kind Regards,
    Daniel

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Roch

    (@rochesterj)

    Hi Daniel!

    Thanks for reaching out!

    At the moment you’ll need some custom code to achieve that.

    We’re looking into ways to implement this feature

    Thanks!

    Kind Regards,
    -Roch

    Hi Roch!

    Can you advise me, in which the .php file I have to implement this feature?

    Could the code look something like this <?php echo $GOALS(FOR)":"$GOALS(AGAINST);?> what you think?

    Let’s try to advise me, thank you.

    King Regards
    Daniel

    Plugin Support Roch

    (@rochesterj)

    Hi @voda4!

    Unfortunately we can’t help you with custom code. I recommend you hiring a developer to help you there if this feature is a must have for you.

    Just a heads up, although we can’t confirm if or when this feature is coming, I recall this being discussed in one of our weekly meetings.

    Thanks!

    Kind Regards,
    -Roch

    Okay, I’ll try to write custom code.

    Thank you.

    Kind Regards,
    Daniel

    Hi @rochesterj!

    I found a way to achieve this.

    I need to advise in which file I have to merge column, form colspan=1 to colspan=2

    I change HTML in Firefox browser (in Inspect Element), but don’t know where to edit it in the code (theme or plugin).

    Please, look at the pictures below.
    img_1 HTML code what I need edit

    Here is the CSS code I used for that.

    /* G- = hidden */
    th.data-gob {
      display: none;
    }
    
    /* G+ = alignment (skóre) */
    th.data-gvs.sorting {
      padding-left: 0px;
    }
    
    th.data-gob.sorting {
      border-left-style: hidden;
    }
    
    /* G+ = added " :" */
    td.data-gvs:after {
      word-spacing: 6px;
      content: " :";
    }
    
    td.data-gvs {
      border-left-width: 2px;
      text-align: right;
      padding-right: 0px;
      width: 50px;
    }
    
    td.data-gob {
      text-align: left;
      border-right-width: 2px;
      border-left-style: hidden;
      width: 50px;
    }

    Here I add pictures (League tables) as it looks after adding codes, but now I would like to ask you where to change #text “G+” and #text “G-” to #text “Skóre” and where to make colspan = 2.
    With “G+” “G-“, colspan=1 img_2 League table 1
    With “Skóre”, colspan=2 img_3 League table 2 = Final form

    Thank you in advance for your help.

    Kind Regards,
    Daniel

    • This reply was modified 2 months, 2 weeks ago by  voda4.
    Plugin Support Roch

    (@rochesterj)

    Hi Daniel!

    Thanks for your reply!

    Using the colspan is a great idea! But unfortunately this is considered custom code so we can’t help you with that.

    It’s just out of the scope of our help here, which is meant to be used for simple setup issues. We do love that our users have creative ideas and think of new features that we couldn’t come up with ourselves, but we really need to limit our work in our support channels to support only.

    As for your idea itself, you’ll need some code changes, as we don’t have this option at the moment.

    Regarding changing the div ID, in your case in particular this won’t be possible as CSS won’t allow you to use special characters. Maybe you could use a simplified version of it, but again, we don’t have any fields for custom IDs.

    Thanks!

    Kind Regards,
    -Roch

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.