WordPress.org

Forums

League Standings
[resolved] Team links not working (11 posts)

  1. Bogdan87
    Member
    Posted 1 year ago #

    Hello, thank you for this awesome plugin, I konw this isn't the right thread to ask this but I couldn't find the right one. My team links aren't working, although I entered a link in the required field, tha table shows like there aren't any links. What can I do?

    Thanks,
    Bogdan

    http://wordpress.org/plugins/league-standings/

  2. Mark O'Donnell
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Bogdan,
    First, thanks for opening the new thread. My comments apply to version 1.0, hopefully your question does too!

    The documentation is not very clear on this, is it. I will improve it with the next release. There is not a Display Setting for this. I will add it to the next release.

    Right now, you have to add an argument to your shortcode, like so:

    [mstw_ls_table league_id=league-slug show_team_links=1]

    You can see this in the NHL Pacific Standings on my development site.

    Thanks for calling this to my attention.
    -Mark

  3. Bogdan87
    Member
    Posted 1 year ago #

    Thanks, I should have paid more attention. If some teams don't have links and others have, in the same table, is it possible for the teams that don't have links to look like regular ones ?

    Thanks again,
    Bogdan

  4. Mark O'Donnell
    Member
    Plugin Author

    Posted 1 year ago #

    No worries. Why don't you give it a try and let me know how it works? :)

    -Mark

  5. Bogdan87
    Member
    Posted 1 year ago #

    It works fine, thanks, but if some teams don't have links and others have, teams that are in the same table, is it possible for the teams that don't have links to look like regular ones ? I mean if a team has a link and the next one doesn't, they look the same, hyperlinked. Maybe I didn't express myself right...

  6. Mark O'Donnell
    Member
    Plugin Author

    Posted 1 year ago #

    Bogdan87-
    Why would you want links and non-links to look the same? How are users going to know that there's a link? But whatever, you can edit the plugin's stylesheet and change the anchor a rules to whatever you desire. Note that there are quite a few rules to change - even rows, odd rows, home games - as well as states :hover etc.
    -Mark

  7. Bogdan87
    Member
    Posted 1 year ago #

    That is the problem I don't want links and non-links to look the same, but they look, in my case. I inserted show_team_links=1 and all teams have links, even those who shouldn't have. Do you know why ?

  8. Mark O'Donnell
    Member
    Plugin Author

    Posted 1 year ago #

    Got it. It's a bug and has been corrected. Here's the simple fix in the league-standings.php file (around line 466, just search for the line inside the (new) conditional.

    if ( $show_team_links and get_post_meta( $team->ID, 'mstw_ls_team_link', true ) != '' ) {
       $name_string = 'ID, 'mstw_ls_team_link', true ) . '" target="_blank" >' . $name_string . '';
    }
    

    I don't have time to release a new version of the plugin to WordPress.org at the moment, but if you aren't comfortable editing the file, just contact me at mark@shoalsummitsolutions.com, I'll send you the patched file.

    Regards,
    -Mark

  9. Bogdan87
    Member
    Posted 1 year ago #

    Hey Mark,
    It works great. Thanks again for the support and for the amazing plugin.

    Bogdan

  10. apresmatch
    Member
    Posted 1 year ago #

    Hello ! Congratulation for this great plugin. I use it without Problem. But on thing i want to know is " how to set up the mascot ?"
    Thank you in advance.

  11. Mark O'Donnell
    Member
    Plugin Author

    Posted 1 year ago #

    Hi apresmatch-
    This thread is CLOSED (RESOLVED). Please create a new support thread (with a descriptive name) and ask this question, I'll be happy to answer it there so it benefits everyone. Users are unlikely to find it in this thread.
    Thank you.
    -Mark

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.