LaMonte Forthun
Forum Replies Created
-
Forum: Plugins
In reply to: [LeagueManager] For and Against not workingI haven’t touched the pool sport file, so there are no doubt some other issues I haven’t seen as well. I’ll have a look at it and get back to you shortly.
Forum: Plugins
In reply to: [LeagueManager] Problem with played games basketballMost likely it’s due to what I thought was a good idea turning out to be not such a good idea. I added ‘0’ to all the empty boxes, which tells LeagueManager that the match is played. I’ve got an update just about ready that will fix it, but it’ll require you to remove the ‘0’s from unplayed matches. I apologize for the issue, in all the testing I did I never noticed that the games played changed, just a bad oversight on my part…
Forum: Plugins
In reply to: [LeagueManager] 0 Score added.I’ll get it released later today, I’ve been away from LeagueManager for a couple of days on a pressing issue with another project, but will be able to get back to it now.
Forum: Plugins
In reply to: [LeagueManager] Short Codes and Changing MatchesAre you on LeagueManager 3.8.9? The documentation problem was resolved then.
You can change Matches to Games, it would involve one of two methods on your end, or one permanent solution on mine…
On your side:
1). (Not ideal) Go through the code and change anywhere ‘Matches’ is placed on a page with ‘Games’. The problem with this is any updates will wipe out your changes.
2). (This could work well) Build a language file that replaces the word ‘Matches’ with ‘Games’. It would be the same as replacing an English word with a Spanish word. Could be a bit of work, but I think it could work…On my side:
1). (The best solution) There are numerous situations where there are terms in LeagueManager that aren’t relevant to all sports, so it would me nice to have options. I’ve been working on some solutions for this, but I’m guessing that I’m a few months away from anything with all the more pressing projects that LeagueManager has. It might be something I bump upwards though since it’s not a tough problem to solve…Forum: Plugins
In reply to: [LeagueManager] Results updates not saving after php upgrade to 5.3James,
We’ve had a few discussions about this over the past few months with multiple solutions, including the php.ini one you mention…
The best solution, is to work on data by match_day (fixture) or by limiting the number of matches that are shown on in the matches table at a time, which I’m currently working on. I’m going to be implementing a pagination system shortly that should resolve the issue on the LeagueManager side. There are a few things I need to work through to get it right, but if I set up a few options, it shouldn’t be too much of a change in the way things work.
Thanks for the input…
Forum: Plugins
In reply to: [LeagueManager] errorForum: Plugins
In reply to: [LeagueManager] Wantto separate groups in standings, please helpI updated the shortcode file yesterday to fix a different problem, but give this a try to see if there’s any difference:
Remove ‘home=all’ from matches and see if you get the same results for matches. As for the standings, I can’t duplicate your problem here, so if it’s possible, can you give me temp admin access that I can look on your site?
I still need to get you a new sport file too. Now that I’ve got this update out, I’ll get on that…
Forum: Plugins
In reply to: [LeagueManager] Wantto separate groups in standings, please helpI’ll test a few things and get back to you. Does the matches section work?
Forum: Plugins
In reply to: [LeagueManager] How to print a particular teams matches in a seasonTo get this to work just add ‘team=TEAMID’ in your matches shortcode and you’ll get matches for just that team.
Forum: Plugins
In reply to: [LeagueManager] Extended Plugin DevelopmentHi Jeff,
Sorry for my delay in getting back, I’m just starting to go backwards with messages now that I’ve got a few bigger issues resolved.
Let me know if you’re still interesting in chatting.
Forum: Plugins
In reply to: [LeagueManager] Wantto separate groups in standings, please helpCan you all let me know if the latest update resolves this issue for you please? Thanks
Forum: Plugins
In reply to: [LeagueManager] All gamesI appreciate the suggestions and hope that there are many more where that came from! The objective is to make it as complete as possible. One function that I added a year ago for my use on a basketball website is date range. It works great for what I needed, but I never documented it or added it to the interface. Adding functions to shortcodes is fairly simple, so it’s a good place to work on functionality…
Forum: Plugins
In reply to: [LeagueManager] All gamesIn the two years I’ve used LeagueManager and the year that I’ve been working on development, I’ve never used the interface on the edit page, I just write the shortcodes. Unfortunately, because of that, that interface is behind the changes that I’ve made and now with WordPress 3.9, it doesn’t work because they updated TinyMCE from version 3.x to version 4.0, which breaks a lot of TinyMCE plugins. LeagueManager has a TinyMCE plugin that adds the icon to the edit window, the icon is fine, the window opens, but it’s a blank window (at least on my install) when it opens. I’m trying to fix it as quickly as possible and then will dig into how that interface can be enhanced.
Anyway, that’s tomorrow’s problem, today we have to get you back where you want to be…
Tell me exactly what you want in the three shortcodes you showed me and I’ll give you what you need to use. Keeping in mind, the default is ‘all’ as it would relate to mode, you modify what you want to show with other options.
Forum: Plugins
In reply to: [LeagueManager] All gamesReplace this file, I fixed a couple of things in the shortcode.php code earlier. Honestly, the mode function doesn’t do much, you should just remove it as the default is to show all, unless you start limiting what’s shown with group, date, team, match day, etc.
That file should go in the LeagueManager folder in the ‘lib’ folder, replacing the current shortcode.php file.
I have one other thing I have to update shortly, so I’m going to push a new release tonight. Let me know if this works for you, if not I’ll get whatever needs to be fixed before pushing the update.
Forum: Plugins
In reply to: [LeagueManager] 0 Score added.Yeah, one idea, what I thought was a good idea turns out wasn’t such a good idea… I’ll push an update tonight to fix it, but in the mean time, do this if you want:
Go to the matches.php file in the admin folder of the LeagueManager plugin and replace this line (line 71):
<input class="points" type="text" size="2" style="text-align: center;" id="home_points_<?php echo $match->id ?>_regular" name="home_points[<?php echo $match->id ?>]" value="<?php echo (isset($match->home_points) ? $match->home_points : 0) ?>" /> : <input class="points" type="text" size="2" style="text-align: center;" id="away_points[<?php echo $match->id ?>]" name="away_points[<?php echo $match->id ?>]" value="<?php echo (isset($match->away_points) ? $match->away_points : 0) ?>" />with this:
<input class="points" type="text" size="2" style="text-align: center;" id="home_points_<?php echo $match->id ?>_regular" name="home_points[<?php echo $match->id ?>]" value="<?php echo (isset($match->home_points) ? $match->home_points : '') ?>" /> : <input class="points" type="text" size="2" style="text-align: center;" id="away_points[<?php echo $match->id ?>]" name="away_points[<?php echo $match->id ?>]" value="<?php echo (isset($match->away_points) ? $match->away_points : '') ?>" />You are basically removing a
0in two places and replacing it with ”, one at the very end and one in the middle.If you updated scores and have unplayed matches that have zeros in the score, you’ll need to delete the zeros (just in the score) and update matches again. That will reset the played column in your standings.
I apologize, as I worked through the large number of updates I just finished, I thought adding the zeros to the unplayed matches looked good, what I didn’t notice as I tested it was that it triggered the ‘played’ flag. I would consider making 0-0 scores to be considered not played, that’s a possible score in a number of sports, so it just won’t work. I’ve fixed it in the code and will update the release version shortly.
I apologize for the inconvenience.