Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter DCFan17

    (@dcfan17)

    PS – If anyone would have the code that would work to not cause a php error, I’d appreciate it. I’ve tried doing it myself, but I just get an error.

    Thread Starter DCFan17

    (@dcfan17)

    I fixed it!

    I chanted the widget.php file in /leaguemanager/lib/

    and changed the code lines 180-183 from

    $out .= "<p class='match_day'>".sprintf(__("<strong>%d.</strong> Match Day", 'leaguemanager'), $match->match_day)."</p>";
    
    			$time = ( '00:00' == $match->hour.":".$match->minutes ) ? '' : mysql2date(get_option('time_format'), $match->date);
    			$out .= "<p class='date'>".mysql2date($instance['date_format'], $match->date).", <span class='time'>".$time."</span></p>";

    to

    $out .= "<p class='match_day'>".sprintf(__("<strong>Week %d</strong>", 'leaguemanager'), $match->match_day)."</p>";
    
    			$time = ( '00:00' == $match->hour.":".$match->minutes ) ? '' : mysql2date(get_option('time_format'), $match->date);
    			$out .= "<p class='date'>".mysql2date($instance['date_format'], $match->date)." <span class='time'>".$time."</span></p>";

    and the code on line on 261 from
    $out .= "<p class='match_day'>".sprintf(__("<strong>%d.</strong> Match Day", 'leaguemanager'), $match->match_day)."</p>";

    to
    $out .= "<p class='match_day'>".sprintf(__("<strong>Week %d</strong>", 'leaguemanager'), $match->match_day)."</p>";

    This is a nice nice hack. It would be even better if we could pull this out and make it customizable as well.

    What I’d love to see is the ability to change the display of match selection to use the *date* of the match(es) to be selected. I can’t remember which match number is which match, I just want to update the scores on all matches for a specific date.

    Am I making sense here?

    Thread Starter DCFan17

    (@dcfan17)

    Not sure what you mean… but I’d also like to be able to add the match end time, so that I can enter the score and have it show immediate.

    With how it’s set up now, I have to wait a whole day.

    Thread Starter DCFan17

    (@dcfan17)

    Oh, okay. I re-read what you said. Yes, that makes sense… instead of having to scroll alllllllllllll the way down to edit the most recent matches.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: LeagueManager] Change "Match Day" to "Week #"’ is closed to new replies.