Forum Replies Created

Viewing 15 replies - 556 through 570 (of 574 total)
  • Plugin Author LaMonte Forthun

    (@lamontef)

    You can add the style you want to the style.css file inside the League Manager folder. If you go to the Plugins editor in the admin area of WordPress you can edit the style.css file if the permissions are set up right or you can just edit the file and upload it new.

    Plugin Author LaMonte Forthun

    (@lamontef)

    One thing that I don’t see in the post is adding the actual field that you want to add (such as, in your case Jopacic, Chairman or Secretary, etc.) to your database. Depending on what you want to do with the data, the details you’ve provided are excellent, but the problem is that when you go to implement it as is, you’ll get an error because the field doesn’t exist in the team database.

    Plugin Author LaMonte Forthun

    (@lamontef)

    I’m doing basketball leagues as well, how I would handle your situation is this:

    1). Set up three leagues, one for each age group.
    2). Set each league to ‘championship’ in the league preferences.
    3). Set up four groups in each league, one for each region, also in preferences.
    4). Set the ‘Teams to advance’ to 1, so that the winner of each group moves on the the finals.

    The only problem you might run into is that, unless I’ve missed something somewhere, you can’t set up games outside a group in Championship mode, I had to write some code for that. I’ve seen ‘Inter Group Matches’ in a couple of places in the code, which seems like it might be what I’d want, but I’m don’t see any way of getting it to work so I fixed it myself. If you only allow games within the group, ‘championship’ is perfect, if you need the other code, I’ll clean it up and make it available.

    So far, this set up is working well for me with the leagues I’m working with that will have advancement out of a group, the prelim games are still being played, and I haven’t had time to tackle those tests yet, I probably will next week.

    Plugin Author LaMonte Forthun

    (@lamontef)

    @dami1988 – would it work to use the ‘user defined’ scoring option and set the win option to 3 with the loss at 1? I haven’t worked with the volleyball option yet, so I’m not sure, I’ll go in and have a look, but I know I use the user defined for my basketball stats so I can set the points the way I want them.

    Plugin Author LaMonte Forthun

    (@lamontef)

    I apologize if I’m missing what your saying, I’m going by what I know…

    The settings page only has the Color Scheme and five options (Table Headers, Table Rows, etc.), the type of league is set in the League preferences after you create a league on the Overview page. Let me know if that helps or if I’m totally missing the problem.

    Plugin Author LaMonte Forthun

    (@lamontef)

    Yeah, I saw on your site, it’s a good project, we’ll get it…

    Plugin Author LaMonte Forthun

    (@lamontef)

    That’s a pretty straightforward template project. I’m assuming you want the standings as normal, sorted by points, but you want the Home/Away stats on the same line per team, yes? Soccer league?

    Plugin Author LaMonte Forthun

    (@lamontef)

    Maci, if you can (which you should be able to) get the list of matches, you can format it in such a way that you could import them. I have only done tests on the import/export functions and did find that there were a few problems that I worked on, but haven’t used it myself yet. I’m using LM on a basketball site that is currently up 25 leagues, so the automation functions are starting to be more and more important to me as well, meaning I’ll be spending some time with the code in that area, so let’s keep in touch. League Manager isn’t my plug-in, but it’s very important to my work, so I’m doing what I need to so it’ll work for me.

    Having remote updating of matches is definitely a possibility, but will require a bit of custom code to do what you want. It wouldn’t be a lot, but you need a way to give someone access to the update function without necessarily giving them access to the entire backend of your site (WordPress Admin). I’ve done something similar to this for a couple of sites I have for youth teams I coach, so again, let’s share some ideas and see what we can come up with. I’m going to have a number of people helping keep our leagues updated as well, so it’s another area that I’m going to need to focus on…

    Plugin Author LaMonte Forthun

    (@lamontef)

    When you say sorting do you mean filtering? In other words, if you’re in championship mode and you only want to see the matches on a certain match day there’s a filter for that, or do you mean something else. The filtering is a project I’m on this weekend, that one’s very annoying to not be able to use…

    Plugin Author LaMonte Forthun

    (@lamontef)

    I wrote a bit of code to add a new shortcode that I think will give you want you want. Give me an email address and I’ll send a new version of the ‘shortcode.php’ file. [ Or post a link to the pastebin.com file instead. ] You can tweak the matches template to get the output you want, but right now you’ll get this:

    November 9, 2012 20:30 Stozice Arena
    Union Olimpija Ljubljana – Real Madrid 76 – 89

    Plugin Author LaMonte Forthun

    (@lamontef)

    I’ve had the same problem when using the ‘default’ mode and have a lot of matches, but if I’m using ‘championship’ mode it works better, especially if I do as ‘mdotti’ suggests and filter by match day. I have one league that I had set up as default and have 48 matches and it won’t let me add scores, so it seems the two different modes work differently.

    I’ve been digging into the code quite a bit lately, this is a problem that’s starting to come up in a couple of the leagues I’m working with, so hopefully I’ll find a more universal solution and can share it.

    Plugin Author LaMonte Forthun

    (@lamontef)

    Have you tried deactivating other plugins one at a time to see if there’s a conflict with any of those? I’ve been running LM with WP 3.4.2 without any problems related to WordPress. LM has some issues that I’ve had to work out, but the combination works well.

    Plugin Author LaMonte Forthun

    (@lamontef)

    Still wasn’t quite right, this should be what we need…

    $diff[$key] = $row->diff;
    $GA[$key] = round((($team->points2_plus) > 0 ? (($team->points2_minus) > 0 ? (($team->points2_plus)/($team->points2_minus)) : 1.00) : 0.00),4);
    $WinPerc[$key] =  (($row->won_matches) > 0 ? (($row->done_matches) > 0 ? (($row->won_matches)/($row->done_matches)) : 1.00) : 0.00);
    }
    array_multisort( $points, SORT_DESC, $WinPerc, SORT_DESC, $GA, SORT_DESC );

    Mods, is there any chance of killing this and the last post and moving this code into the first post with code? I apologize, just didn’t get things right…

    Plugin Author LaMonte Forthun

    (@lamontef)

    Sorry, I hadn’t tested the $GA section fully…

    You should use this code as the replacement:

    $diff[$key] = $row->diff;
    $GA[$key] = (($row->points2_plus) > 0 ? (($row->points2_plus) > 0 ? (($row->won_matches)/($row->points2_minus)) : 1.00) : 0.00);
    $WinPerc[$key] = (($row->won_matches) > 0 ? (($row->lost_matches) > 0 ? (($row->won_matches)/($row->lost_matches)) : 1.00) : 0.00);
    }
    array_multisort( $points, SORT_DESC, $WinPerc, SORT_DESC, $GA, SORT_DESC, $teams );

    Plugin Author LaMonte Forthun

    (@lamontef)

    I have a fix for #1, but I’m sure about the other two as I haven’t had to work with those. Can you give me some additional details on either and I’ll see what I can find out. It’s not my plug-in, but I’m using it for quite a bit of work and have been digging into the code a lot lately…

    To fix the problem in #1 to the the core.php file which is in:
    leaguemanager->lib->core.php

    On 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>”;

    That one took a number of hours to track down…

Viewing 15 replies - 556 through 570 (of 574 total)