LeagueManager 2.8
February 22nd, 2009
This version comes with a bunch of new features:
- optionally add team from existing one
- insert standings manually
- possibility to manually rank teams via drag & drop
- import and export of teams and matches to CSV files
- additional field to add or substract points for teams




Good update. Now it doesn’t automatically edit the league standings when i enter the scores.
To improve this make it so players can enter there own scores instead of the admin doing it.
@Night_fly
Did you check your settings that you don’t have “Upate Standings Manually” as Point-Rule? Save the settings once and see what happens. Did you also save the scores?
Yes that was the problem.
Thank you for telling me what to do. It now works fine.
I also hope you take my suggestions on board.
Great plugin ! Congratulations !
However it seems that the function GetScore in shortodes.php has a bug :
You should replace the code with :
$match = $leaguemanager->getMatches(“(`home_team` = $curr_team_id AND `away_team` = $opponent_id)”);
$match = $match[0];
if ($match) {
$match2 = $leaguemanager->getMatches(“(`home_team` = $opponent_id AND `away_team` = $curr_team_id)”);
if ($match2) $match = $match2[0];
}
If you don’t do that, the crosstable isn’t right !
As far as I can tell the function is correct. Since I don’t know wether the match of the current team was at home or away I check for both possibilities:
$match = $leaguemanager->getMatches("(`home_team` = $curr_team_id AND `away_team` = $opponent_id) OR (`home_team` = $opponent_id AND `away_team` = $curr_team_id)");What you do is only check the first part, if the current team is the home team and only if a match is found you run the second query for $match2. Thus only half the crosstable is displayed!
With your query, the results in the crosstable is the same for home and away matches. Yes ! Because, getMatches function returns 2 results and you only take the first.
With mine, it’s right ! Look this screenshot : http://www.jude.be/crosstable.png
P.S. : my league consists of 2 matchs for each team : one at home and one away
Ah, OK. That’s the problem that I always only had one match
. Will work something out to work for both cases.
This is a great little plugin. I’ve been looking for something like this for a while now. It would be even better if it calculated statistics, but that would make it a LOT more complicated, particularly since each sport handles statistics differently.
Firstly a top class plugin which we use to show our xpert eleven league on wordpress. Now i have seen the option where it says link to report. However i cannot find anyway to link to reports, is this actually possible in 2.8?? Going to waiti till start of new season before i attempt to upgrade to 2.9
To see the software running go to http://superfootballleague.bloggzor.com/
I also have this error at the bottom of each leagues preferences page
Missing argument 2 for date_i18n(), called in /****/******/*******/wp-content/plugins/leaguemanager/admin/settings.php on line 168 and defined in /****/*********/********/wp-includes/functions.php on line 115
December 31, 1969
@Julien
I get the point posted by Julien, but I still have a problem when trying to show both results. Any clue?