WordPress.org

Ready to get started?Download WordPress

Forums

SportsPress - All in One Sports Management
Promotion and relegation borders (11 posts)

  1. Ross Robson
    Member
    Posted 2 weeks ago #

    Hi,

    How could i add a dashed line to seperate the bottom 2 from the rest in the top division and second division and add a dashed line to the top 2 in the section division and third division so that it shows the cut off points for promotion and relegation?

    Example below:

    http://news.bbcimg.co.uk/media/images/74625000/jpg/_74625193_6f117144-8298-4b95-9def-50424bbd16ed.jpg

    Thanks

    https://wordpress.org/plugins/sportspress/

  2. ThemeBoy
    Member
    Plugin Author

    Posted 2 weeks ago #

    @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;
    }
  3. Ross Robson
    Member
    Posted 2 weeks ago #

    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/

  4. Ross Robson
    Member
    Posted 2 weeks ago #

    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

  5. ThemeBoy
    Member
    Plugin Author

    Posted 2 weeks ago #

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

  6. Ross Robson
    Member
    Posted 2 weeks ago #

    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.

  7. ThemeBoy
    Member
    Plugin Author

    Posted 2 weeks ago #

    @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 */
    }
  8. Ross Robson
    Member
    Posted 2 weeks ago #

    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.

  9. ThemeBoy
    Member
    Plugin Author

    Posted 2 weeks ago #

    @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 :)

  10. Ross Robson
    Member
    Posted 2 weeks ago #

    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

  11. ThemeBoy
    Member
    Plugin Author

    Posted 2 weeks ago #

    @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 :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.