Viewing 10 replies - 1 through 10 (of 10 total)
  • put this shortcode:

    [matches league_id=xx match_day=2]
    [matches league_id=xx match_day=3]

    change the day number as you want

    Thread Starter armando.alberti

    (@armandoalberti)

    Thank you ben52,
    I was wondering what shortcode should I use to show in separated div:
    1) my team last played match
    2) my team next match to play

    I’ve tried time=prev/next but that’s re
    [matches league_id=xx mode=home time=next (or) prev]

    But this seems not working… ??

    (***remark = using LM v 3.9.1.1)

    Thanks

    Armando try this code is working for me:

    [matches league_id=xx mode=home limit=1 time=prev1 order=”date DESC”]

    [matches league_id=xx mode=home limit=1 time=next order=”date asc”]

    Thread Starter armando.alberti

    (@armandoalberti)

    No way for me with League manager v3.9.1.1 it does not work.
    This returns follwoing and SQL error
    “#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘) AND (winner_id != 0) ORDER BY date DESC LIMIT 0,1′ at line 4″

    fixed by changing line #287 of shortcode.php file as follow

    BEFORE I’ve spotted one additional bracket ‘)’
    $search .= " AND DATEDIFF(NOW(),date) > 0) AND (winner_id!= 0) ";

    AFTER deleted the additional bracket
    $search .= " AND DATEDIFF(NOW(),date) > 0 AND (winner_id!= 0) ";

    notwithstanding this returns last played matches but not of my team (so it seems mode=home is simply ignored

    dont make a change in shortcode php
    and try this;
    [matches league_id=xx mode=home limit=1 time=prev order=”date DESC”]

    xx put your ID

    Thread Starter armando.alberti

    (@armandoalberti)

    appreciate it Ben52 but same as above,
    Never mind

    armando for mode=home
    add this code to shortcodes php after line 292:

    // Only get Home Teams
    if ( $mode == ‘home’ )
    $search .= parent::buildHomeOnlyQuery($league_id);

    Thread Starter armando.alberti

    (@armandoalberti)

    AWESOME!!!!
    Now works Ben! Many thanks indeed!
    By the way I hope this fix IS included within next LeagueManager version!!!
    Thanks again

    Hi ben52 , super. I also use the code without the filter-Day / Team

    Code for prew:
    [matches league_id=XX show_match_day_selection=false show_team_selection=false mode=home limit=1 time=prev order=”date DESC”]

    Code for next:
    [matches league_id=XX show_match_day_selection=false show_team_selection=false mode=home limit=1 time=next order=”date DESC”]

    Thread Starter armando.alberti

    (@armandoalberti)

    Oh yeah Jinko of course!
    honestly I’ve managed to build my own matches.php templates w/o that form displayed quite time before this was gladly included into latest LM version ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Does anyone know how…’ is closed to new replies.