Viewing 15 replies - 1 through 15 (of 32 total)
  • Plugin Author LaMonte Forthun

    (@lamontef)

    I wrote a bit of code to add a new shortcode that I think will give you want you want. Give me an email address and I’ll send a new version of the ‘shortcode.php’ file. [ Or post a link to the pastebin.com file instead. ] You can tweak the matches template to get the output you want, but right now you’ll get this:

    November 9, 2012 20:30 Stozice Arena
    Union Olimpija Ljubljana – Real Madrid 76 – 89

    Thread Starter kikoweb

    (@kikoweb)

    Hi,
    my email is [ redacted, support is offered via the forums and not email ]

    Ty very much!

    Thread Starter kikoweb

    (@kikoweb)

    lamontef please post a link to the pastebin.com file instead. ty

    peanutgnome

    (@peanutgnome)

    I’d like to see this too, along with an easy way to only show future scheduled matches, for example, the matches for the next 2 weeks.

    Yes this is a thing that I would like to see .

    [signature moderated]

    I looked for the code on pastebin.com but I didn’t find it. Where is it possible to find it?
    Thx

    Also interesting … How can I get the updated file – shortcode.php?

    I am trying to download this plugin but it cannot be located in the WP repository. Any ideas?

    A mi tambien me interesa!!!

    Plugin Author LaMonte Forthun

    (@lamontef)

    I’m working on some code that I just need to tweak the CSS for, if you’re interested in testing it, let me know. I’ll post it here sometime today or tomorrow.

    interested

    interested

    interested

    Plugin Author LaMonte Forthun

    (@lamontef)

    I’m committing a test version shortly that will be 3.8.8.1, specifically for the ‘Last 5’ functionality.

    Here’s some information that will be part of the new version info )there’s also a screen shot of a ‘Last 3’ setup so you can see what it should look like):

    If you test and find that the icons at the end of each line in the standings are moving to a second line it means you don’t have enough room on your template for five past results. You can then change to a lesser number in the template, named ‘standings-last5.php’ in the ‘admin/templates’ folder. Go to 43:

    <th width=”100″ class=”last5″><?php _e( ‘Last 5’, ‘leaguemanager’ ) ?></th>

    change the ‘Last 5’ text to ‘Last 3’ if you’re going to use three past results, or whatever you choose. Then go to line 93:

    $results = get_latest_results($team->id, 5);

    Change the ‘5’ at the end to ‘3’ if you want three past results.

    The final version will probably have this as a preference option.

    Shortcode to use:

    [standings league_id=1 template=last5] or
    [standings league_id=1 group=A template=last5 logo=true]
    (group and logo are optional)

    Nice one boss.

    Keep up the good work.

Viewing 15 replies - 1 through 15 (of 32 total)
  • The topic ‘Last 5 matches’ is closed to new replies.