• Hello,
    Sorry to my english, because I’m French.
    Just this post to expose a solution to classify the matchs in the list from the Editor in French’s date, because the list is very long to research the good sporting event :
    Identify the code

    $title = isset($match->title) ? $match->title : $teams[$match->home_team] . "–" . $teams[$match->away_team];

    and modify to

    $datematch = date("d/m/Y", strtotime($match->date));
    $title = isset($match->title) ? $match->title : $datematch.' : '.$teams[$match->home_team] . "–" . $teams[$match->away_team];

    Have you a solution to “group” by match day ($match_day) ?

    thanks

    jér?me

    https://www.ads-software.com/plugins/leaguemanager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Sorry for my English, I am Spanish :).

    Can you tell in what file and line do you do this modification?

    Thread Starter tryalis

    (@tryalis)

    Sorry,
    The code are in window.php. the file is placed in the following directory structure : admin/tinymce/window.php

    I can’t find this piece of code but I found this (same file line 126):

    $matches = $wpdb->get_results("SELECT * FROM {$wpdb->leaguemanager_matches} ORDER BYidDESC");

    If you change this code for that:

    $matches = $wpdb->get_results("SELECT * FROM {$wpdb->leaguemanager_matches} ORDER BYmatch_dayDESC");

    This code resolved your problem?

    PD.: The “code” tag of this post delete the ” of order by id and order by matchday

    Thread Starter tryalis

    (@tryalis)

    Hello erknrio,
    Yes your method is good but the matches are not classified by date “into” the match day.
    For example :
    19/10 bla bla bla
    19/10 bla bla bla
    20/10 bla bla bla
    19/10 bla bla bla

    Thanks for your method

    This is strange. I have all my matches classified by date because in my matches calendar, the matches in match day 1, all of them are the same day.

    Maybe you don’t changed the matchday when you create this “20/10” match?

    Sorry but I can’t help you now :S.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Classify the match by day in french’ is closed to new replies.