LaMonte Forthun
Forum Replies Created
-
Forum: Plugins
In reply to: [LeagueManager] Players StatsThere’s a separate plug-in available for League Manager, that you can use. I’ve personally not been able to get it to work the way I like it to and have resorted to work on an entirely new module, but that’s just me. The developer hasn’t updated either plug-ins in a while, so it’s hard to say if he’ll come back to it. Others have gotten things to work with ProjectManager though, so it’s worth a look. It’s by the same developer, so it’s easy to find.
Forum: Plugins
In reply to: [LeagueManager] multiple seasonYou can store multiple seasons per league.
Forum: Plugins
In reply to: [LeagueManager] [Plugin: LeagueManager] Scores No Longer RecognisedSee two possible solutions in a previous post:
Forum: Plugins
In reply to: [LeagueManager] view last matchTry this:
[matches league_id=9 time=prev mode=all]
That gives you the last match day, if you have match days assigned.
Forum: Plugins
In reply to: [LeagueManager] publish all matches for only one teamThere’s a problem with the shortcode to allow this from what I can see. I’ve started looking into it and will let you know when I figure it out.
Forum: Plugins
In reply to: [LeagueManager] Refresh leaquemanager after adding tems etcThis should help you:
To fix the problem update the core.php file which is in:
leaguemanager->lib->core.phpOn line 361 you should see:
echo “<div id=’message’ class=’updated fade’><p>”.$this->getMessage().”</p></div”;That line isn’t complete it needs a closing ‘>’, so the full line should be:
echo “<div id=’message’ class=’updated fade’><p>”.$this->getMessage().”</p></div>”;Forum: Plugins
In reply to: [LeagueManager] Setting page brokenI can’t duplicate this error on any of the installations I have right now, but I’ll grab a fresh copy of the plugin and install again to check. I might need a bit more information…
Forum: Plugins
In reply to: [LeagueManager] Matches not updateingThis problem is based on a PHP update (introduced in 5.3.9) that introduced a setting to help prevent hash collision attacks. The setting is “max_input_vars” and is defaulted to be set at 1,000.
The problem with updating an entire season, or even a few weeks worth, of matches is there are a lot of variables per game and those variables add up quickly when you’re limited to 1,000.
The best solution would be to re-write the code to work on a few lines at a time instead of grabbing all the code at once and then updating game by game, and I’m looking at it to see if I can do that (keeping in mind that League Manager isn’t my plug in).
In the mean time, there are two solutions:
1). Make sure you have match days defined in the season (how many matches per season), then make sure when you add a match you have a match day assigned to the match. When you go to update matches, filter by match day so you are only working with game 12 or whatever, so that the number of updates and variables used stays under the limit. If you’ve got 36 teams in a league and you’re trying to update 18 games at a time, you might run into the problem anyway and you’ll need to see solution 2. There are a lot of reasons that this is the best option, but the best reason is that it doesn’t involved anything like code changing or server tweaking…
2). This isn’t the ideal solution because it’s bypassing a setting that’s been added to PHP to avoid a vulnerability. The solution is to increase the number of variables that can be set at one time from 1,000 to some number higher. If you have access to your server’s php.ini file and know how to modify files on a server, you can add or modify the max_input_vars setting like this:
max_input_vars = 2,500
You can also change this setting in an .htaccess file in your local word press directory like this (they are different, if you put the above code in an htaccess file you’ll get a server error):
php_value max_input_vars 2500
I’ve tested this and it does work. If you find that the number isn’t high enough, add another 500 or 1,000, but I wouldn’t recommend throwing 10,000 in right away as the purpose of the restriction was to close a PHP vunerability.
If I can figure out how to update the code to work with a group of matches at a time so that the problem goes away, I’ll update the code here.
Forum: Plugins
In reply to: [LeagueManager] Points systemWhen you set the league up, use ‘User Defined’ as your points system in the preferences for the league, then you can set up the points any way you like.
Forum: Plugins
In reply to: [LeagueManager] [Plugin: LeagueManager] Table by GroupIf you want I can take a look at it from the inside and see what I can come up with.
Forum: Plugins
In reply to: [LeagueManager] [Plugin: LeagueManager] Table by GroupThe Groups are set up in the league preferences and then the teams have to be set up within the groups for it to work properly.
Forum: Plugins
In reply to: [LeagueManager] Matches not updateingThere’s a known problem with update large number of matches at one time. If you can filter by match day, it works very well. It’s not my plug-in, but I’ve been looking at some bugs, I’ll see if I can track this one down this week.
Forum: Plugins
In reply to: [LeagueManager] [Plugin: LeagueManager] Table by GroupI’m not sure what the ‘
' and '‘ tags are for, but those are causing your problem from what it looks like.Just curious, have you tried this:
[standings league_id=1 group=A]
The standings will list all teams unless you request a certain group. If I have a league with the same four groups, I have
[standings league_id=1 group=A]
[standings league_id=1 group=B]
[standings league_id=1 group=C]
[standings league_id=1 group=D]and get four tables, one for each group. Is that what you’re looking for?
Forum: Plugins
In reply to: [LeagueManager] points_plus & points_minus‘points_plus’ is the number of points a team has earned based on your scoring system (2 points for a win, 1 point for a tie, etc), ‘points_minus’ is the number of points their opponents have earned against them. In other words, if a team has won 6 games and lost 3, using the above point system they would have ‘points_plus’ of 15 ((6*2) + 3) and ‘points_minus of 12 ((3*2) + 6).
Forum: Plugins
In reply to: [LeagueManager] Class Ascend, Descend and RelegationOK, so you want to change the class from ‘rank’ to ‘rank ascend’, yes?