• Hello everybody,

    finally I managed to complete LeagueManager Version 2.9. It introduces several changes and new features, the most important being a modular setup with several WordPress actions and filters for easy implementation of different sport types. Here’s a brief list:

    * Modular setup and several new sport types
    * unlimited number of widgets
    * different dropdown menues for match report
    * easy adding of custom fields for matches and teams via WP hooks
    * match statistics
    * shortcodes to show teamlist and single team page
    * TeamRoster via bridge to ProjectManager (for match stats)
    * track team rank of previous save

    Due to the growing complexity and number of sport types I cannot provide templates to cover everything. I can only impement the basic features to gather all needed data. I encourage anybody who to design new templates for any specific sport type or just for the fun of it. You can then send them to me by email for inclusion into the main plugin.

    The second topic I’d like to address here is a Championchip Mode. Unfortunately I don’t have enough time to further develop this feature, as it would be highly complex. However I have some preliminary code, that resides in lib/championchip.php and admin/championchip.php. It follows a list of features I thought would be needed:

    * Option to set number of teams that adavance from preliminary round to final round (easy with WP action)
    * insert groups (like Seasons)
    * dropdown in team edit form to allocate group to team (easy with WP action)
    * Add final matches beforehand in a style Winner A – Second B (present)
    * replace code format of final matches with respective team

    So the basic features of the plugin already exist or are quite easy to implement. However the last part of inserting the true teams for respective final matches is quite complicated. My idea would be to add buttons to proceed into the next round.

    Is there anybody or group who would be willing to work on this feature. It should be already possible with LeagueManager 2.9 to implement a Championchip Mode as standalone-plugin. If not, I would provide needed hooks.

    I hope there is somebody who could work on that, because I think it would be a very cool feature.

    https://www.ads-software.com/extend/plugins/leaguemanager/

Viewing 13 replies - 16 through 28 (of 28 total)
  • It looks like it can’t connect to wp_leaguemanager_teams to get the title. If I remove ['title'] from the code it does show the IDs of both teams.

    Sorry, confused matters there, I replaced the front end code in matches.php with the back end code to see if it would pull in the team names. When I did this I could get the ID but still no team name.

    Thread Starter K

    (@koelle)

    Hey,

    do you use the default template or did you create a custom one? Could you do <?php print_r($matches) ?> in the template (If you use the default it’s view/matches.php) and post the output here.

    Here’s the result, I use the default template.

    Array ( [0] => stdClass Object ( [home_team] => 63 [away_team] => 64 [date] => 2009-06-06 20:00 [day] => 6 [month] => 6 [year] => 2009 [hour] => 20 [minutes] => 00 [match_day] => 1 [location] => Test [league_id] => 6 [home_points] => 0 [away_points] => 0 [winner_id] => 0 [post_id] => 0 [season] => 09/10 [id] => 8 [custom] => [0] => [class] => alternate [hadPenalty] => [hadOvertime] => [start_time] => 8:00 pm [title] => - [report] => [score] => 0 - 0 ) )
    Thread Starter K

    (@koelle)

    Wow, that was fast ??
    Next test. In lib/shortcodes.php there is the function showMatches().
    After the line

    $teams = $leaguemanager->getTeams(“…”, “ARRAY”):

    do

    print_r($teams);

    Also after

    $matches = getMatches($search, false, $order);

    do, before the foreach-loop

    print_r($matches)

    I’ve added those.

    Here you go: Array ( ) Array ( [0] => stdClass Object ( [home_team] => 63 [away_team] => 64 [date] => 2009-06-06 20:00 [day] => 6 [month] => 6 [year] => 2009 [hour] => 20 [minutes] => 00 [match_day] => 1 [location] => Test [league_id] => 6 [home_points] => 0 [away_points] => 0 [winner_id] => 0 [post_id] => 0 [season] => 09/10 [id] => 8 [custom] => [0] => ) ) Array ( [0] => stdClass Object ( [home_team] => 63 [away_team] => 64 [date] => 2009-06-06 20:00 [day] => 6 [month] => 6 [year] => 2009 [hour] => 20 [minutes] => 00 [match_day] => 1 [location] => Test [league_id] => 6 [home_points] => 0 [away_points] => 0 [winner_id] => 0 [post_id] => 0 [season] => 09/10 [id] => 8 [custom] => [0] => [class] => alternate [hadPenalty] => [hadOvertime] => [start_time] => 8:00 pm [title] => - [report] => [score] => 0 - 0 ) )

    Thread Starter K

    (@koelle)

    OK, so the teams aren’t retrieved from the database. What does

    echo $season;

    and

    echo $league_id

    in the showMatches function give?

    The league id didn’t show up.

    Thread Starter K

    (@koelle)

    I have figured it out. The problem was that the MySQL query for the teams only worked with seasons that were just numbers (e.g. 2009), but not with string such as you had “08/09”. I have released a patch (Version 3.0.4), which should fix it. It should be available within the next 15 minutes.

    Thanks, that is great news. i’ll sort out a donation, you’ve been a massive help.

    I have an issue I can’t solve myself and need help please!

    I mistakenly added a league match and posted the results from said match only to later find out the match was infact a cup tie and should not have been posted.

    I need to remove this match and its result from the league as the league table is showing false information due to my ignorance.

    I have tried deleting the match from the match list but this does not effect the league table and the match still exisists but only as a 0-0 result (the actual result was 5-2).

    Can someone please help me?

    Thanks
    Steven Gardner

    If I wanted to implement LeagueManager to keep track of the World Cup Soccer in its exact format (32 teams, Group stages with groups of 4, 2 advance from each group, then knockout), what settings do I use in the Championchip mode to achieve this?

    What should the values for: Teams Ascend, Teams Descend, Teams Relegation and Teams Advance be?

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘[Plugin: LeagueManager] Version 2.9 & Championchip Mode’ is closed to new replies.