LaMonte Forthun
Forum Replies Created
-
Forum: Plugins
In reply to: [LeagueManager] White page on nav-menus.phpJust checking back to see if any of the newest updates helped your problem (3.8.8), if not, I’d like to work with you to get it fixed…
Thanks
Forum: Plugins
In reply to: [LeagueManager] Attempted to add an Umpires Field to Add Matches…The database error is telling you that the database doesn’t have a field named ‘umpires’. If you go through all your files and change a name, you also have to change the name of the database field or it won’t know what you’re looking for.
The problem with what you’ve done is that the next update I put out will mean that you’ll have to manually do a diff on every file to see what I’ve changed and if you miss something as simple as one comma, you’ll start having errors.
I understand what you’re trying to do as I’ve got eight months worth of mods I’ve done and have to wade through them all as I do work on the core now that I’m helping further development. It’s complex enough for me right now that I’m like four updates behind on my own site (most of the changes have come from my prior work so I already have that code, but I can’t do auto updates is the point).
The best way to do what you want to do is using ProjectManager, which is another plugin by the LeagueManager author. I wish I could help you out there, but I really don’t know anything about it as it didn’t work for what I needed and so I never spent much time with it.
What sport are you using? There’s possibly a better option.
Forum: Plugins
In reply to: [LeagueManager] Last 5 matchesYeah, sorry, that’s my fault I didn’t notice that the code didn’t copy over right. Make a copy of your shortcode.php file in the libs folder and put the following in it’s place.
Here’s the file on pastebin:
See how that works…
Forum: Plugins
In reply to: [LeagueManager] Scorers When shows?LeagueManager by itself doesn’t have stats built in (yet), but if you add ProjectManager you can have stat capabilities. ProjectManager hasn’t been updated in a while and I’ve personally never used it, but there will be a resolution to the stats issue one way or another as soon as possible.
I apologize, but the second part of your message I don’t follow.
Forum: Plugins
In reply to: [LeagueManager] Errors once activatedThanks for the heads up, I’m looking into it…
Forum: Plugins
In reply to: [LeagueManager] Last 5 matchesSorry, forgot the most important line:
[matches league_id=1 limit=10 time=prev1 order=”date DESC”]
See how that works, and let me know.
Forum: Plugins
In reply to: [LeagueManager] Last 5 matchesYeah, I actually added a new ‘time’ code called ‘prev1’ to fix that a few months ago. What I did was if the game was scheduled, but there’s no winner (obviously wasn’t played), then it will still show up in the list. Otherwise the shortcode is looking for games in the past without checking if they’ve been played or not…
Try this code and see if it works for you (make a copy of your ‘shortcodes.php’ file first!)
Open the ‘shortcode.php’ file in the ‘libs’ folder. Around line 250-260 you’ll see:
if ( $time ) { if ( $time == 'next' ) $search .= " AND DATEDIFF(NOW(), <code>date</code>) <= 0"; elseif ( $time == 'prev' ) $search .= " AND DATEDIFF(NOW(), <code>date</code>) > 0"; }Change that with this:
if ( $time ) { if ( $time == 'next' ) $search .= " AND DATEDIFF(NOW(), <code>date</code>) <= 0"; elseif ( $time == 'prev' ) $search .= " AND DATEDIFF(NOW(), <code>date</code>) > 0"; elseif ( $time == 'prev1' ) $search .= " AND (DATEDIFF(NOW(), <code>date</code>) > 0) AND (<code>winner_id</code> != 0) "; }Then, around line 275 (probably 285 or so) find:
$matches = $leaguemanager->getMatches( $search, $limit, $order );
after that line, add these:
foreach ( $matches AS $key => $row ) { $matchdate[$key] = $row->date; } if ($time=='prev1'){ array_multisort( $matchdate, SORT_ASC, $matches ); }That will come right before:
$i=0;
foreach ( $matches AS $match ){There are two other things that could make it work better, but try that first and we’ll go from there. I haven’t touched this code in awhile since it’w working for me.
Forum: Plugins
In reply to: [LeagueManager] LeagueManager Cannot delete all matchesOK, one of the things I’ve been working on is eliminating some bugs that have been causing issues for awhile, 3.8.1 still has those. I know how it is though, my main site that I started using LeagueManager on is a few updates behind because I have so many things that I had updated on so many files… Fortunately, a lot of the changes I made were those bug fixes, so I’ve put the in the core, the number of files I have to check all the time has finally started to go down…
Anyway, I’ll have a look at your file and we’ll see what we can do.
Thanks
Forum: Plugins
In reply to: [LeagueManager] Last 5 matchesIf you test and don’t mind, please put a link to a page that you’ve got set up to test so I can see how it looks on your page.
Thanks robsanders – let me know if there’s anything that can make it better. I have a few ideas, but am interested in getting more.
Cargov – I’m not sure I understand your message. You can’t see anything? Can you post a link so I can see it on your page?
Forum: Plugins
In reply to: [LeagueManager] LeagueManager Cannot delete all matchesIf you can send whatever import file you used that caused a problem and then tell me how you built the file, did you export existing records and replace the new or build your import file from scratch?
There are a number of problems in the Bantam B standings, doesn’t look like it’s sorting properly at all. Are you on 3.8.8 or an earlier version?
I assume that you used the ‘baseball’ setting in your preferences, yes?
The reason you get an 0.5 in games behind is the formula used to calculate that is:
((1st place team wins – wins of team being worked on) + (losses of current team – 1st place team losses))/2When I get some time in the next couple of days I’ll set up a baseball league and look at what’s going on in there. In the meantime, send me those files so I can see why you’re getting extra records. Chances are there’s extra data at the end that you don’t realize.
Forum: Plugins
In reply to: [LeagueManager] Last 5 matchesI’m committing a test version shortly that will be 3.8.8.1, specifically for the ‘Last 5’ functionality.
Here’s some information that will be part of the new version info )there’s also a screen shot of a ‘Last 3’ setup so you can see what it should look like):
If you test and find that the icons at the end of each line in the standings are moving to a second line it means you don’t have enough room on your template for five past results. You can then change to a lesser number in the template, named ‘standings-last5.php’ in the ‘admin/templates’ folder. Go to 43:
<th width=”100″ class=”last5″><?php _e( ‘Last 5’, ‘leaguemanager’ ) ?></th>
change the ‘Last 5’ text to ‘Last 3’ if you’re going to use three past results, or whatever you choose. Then go to line 93:
$results = get_latest_results($team->id, 5);
Change the ‘5’ at the end to ‘3’ if you want three past results.
The final version will probably have this as a preference option.
Shortcode to use:
[standings league_id=1 template=last5] or
[standings league_id=1 group=A template=last5 logo=true]
(group and logo are optional)Forum: Plugins
In reply to: [LeagueManager] Using League Manager for CricketGood information…
No dramsell, I’m not very familiar with cricket, so assume I know nothing when you give me info…
Thanks!
Forum: Plugins
In reply to: [LeagueManager] How to Add Scoring Difference to League TableThat I can do… I’ll be in touch.
Forum: Plugins
In reply to: [LeagueManager] How to Add Scoring Difference to League TableI have to dig into it a bit further, but I don’t think IGF has difference as part of the ‘sport’ file, we’d have to add it.
Let me look around your site and into that particular file and get back to you. Might be a day or two, but we’ll get it for you.
Forum: Plugins
In reply to: [LeagueManager] version 3.8.8Only one of significance:
admin/match.php
Every update will include readme.txt and leaguemanager.php as the version numbers are in both and the readme.txt file contains all the data for the plugin page on WordPress.org.
In the future you can see changes in the development log at:
http://plugins.trac.wordpress.org/log/leaguemanager/
It’ll show you the diff between any changed files…
If you’ve done any modifications that you feel would benefit any other users, let me know, maybe we can get them included in the core so you don’t have to worry as much about changes being blown out with updates…