Support » Plugin: SportsPress - Sports Club & League Manager » Promotion and relegation borders

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author ThemeBoy

    (@themeboy)

    @ross You could do this by adding the following code to SportsPress > Settings > General tab > Custom CSS:

    .sp-league-table tbody tr:nth-child(2) td {
    border-bottom: 1px dashed #000;
    }
    .sp-league-table tbody tr:nth-last-child(2) td {
    border-top: 1px dashed #000;
    }

    Hi Thats great but i dont want the dashed line above the bottom 2 in the third section/division as that is the lowest division and there is no relegation from that division.

    http://c73.df3.myftpupload.com/summer/section-three/

    The same applies for the first division but i want to have 1 line below the top position in that division as that will be the champion

    Plugin Author ThemeBoy

    (@themeboy)

    @ross Could you clarify where the dashed lines should appear in relation to the teams in your table?

    ok in summer section one i want a dashed line below 1st and a line above 8th, in section two i want a line below 2nd and a line above 8th and in section three i want a line below 2nd and no lines at the bottom of the table.

    Plugin Author ThemeBoy

    (@themeboy)

    @ross Thanks for clarifying. That makes sense, so there are three sections; each with a different league table. Replace the code in Custom CSS with this:

    /* summer section one */
    .page-id-17 .sp-league-table tbody tr:nth-child(1) td {
    border-bottom: 1px dashed #000; /* below 1st */
    }
    .page-id-17 .sp-league-table tbody tr:nth-child(8) td {
    border-top: 1px dashed #000; /* above 8th */
    }
    
    /* summer section two */
    .page-id-444 .sp-league-table tbody tr:nth-child(2) td {
    border-bottom: 1px dashed #000; /* below 2nd */
    }
    .page-id-444 .sp-league-table tbody tr:nth-child(8) td {
    border-top: 1px dashed #000; /* above 8th */
    }
    
    /* summer section three */
    .page-id-19 .sp-league-table tbody tr:nth-child(2) td {
    border-bottom: 1px dashed #000; /* below 2nd */
    }

    That’s awesome thanks very much! 🙂

    One thing i wanted to ask is would there be a way or a chance that we could assign an administrator for each team that could login and enter their results without them logging into the admin dashboard that i use to edit the website.

    Results could then be confirmed or accepted by myself before the result info is automatically updated into the tables/fixture list.

    Plugin Author ThemeBoy

    (@themeboy)

    @ross Glad to help!

    The plugin introduces several user roles that can be used for this. When creating or editing a user, choose one of the following roles to enable access to the following areas:

    Player – Can only edit player profiles, events, and teams that have been assigned to the user by an admin or League Manger. Can also create a new player, event, or team and submit for review.

    Staff – Can only edit staff profiles, events, and teams that have been assigned to the user by an admin or League Manager. Can also create a new staff, event, or team and submit for review.

    Event Manager – Can create, edit, publish and delete events at any time. Can also edit player profiles, staff profiles, and teams that have been assigned to the user by an admin or League Manager, or submit new ones for review.

    Team Manager – Can create, edit, publish, and delete posts, events, player profiles, staff profiles, and player lists at any time. Can also edit assigned teams and submit new teams for review.

    League Manager – Full access to all SportsPress content and settings, plus the ability to publish posts and pages and moderate comments.

    We’ve been working on some documentation which will explain the user roles and other areas of the plugin in greater detail 🙂

    Oh that’s pretty cool 🙂

    Would there be a way you could allow them to edit the events or results or whatever from the website view itself and not from the admin panel?

    Users could have their own page on the website where they could submit results etc.

    If not it’s not a problem as its not something that needs to be done from my side of things 🙂

    I’m confident i can build the website that i want using Sportspress, its a fantastic plugin and i know that you will make it bigger and better each time u release an update.

    What other features are you planning or going to release if you don’t mind me asking?

    Thanks

    Plugin Author ThemeBoy

    (@themeboy)

    @ross The current version requires users to login to the WP admin to make edits. We’ll definitely consider adding front-end editing in a future update.

    The next release will be version 1.2. One of the major improvements in this version is the addition of a shortcodes menu in page content editors.

    We’ll also be releasing a mini-site with extensive documentation at the same time 🙂

    Codytewmey

    (@codytewmey)

    Is there any way I can add a solid border to my player tables around each individual player and keep all the text aligned to the top left?

    Codytewmey

    (@codytewmey)

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Promotion and relegation borders’ is closed to new replies.