LeagueManager 3.4.1
This version should fix the AJAX navigation in the widget. Further I have updated the italian translation and added some new shortcodes. See the Documentation for details on shortcodes
This version should fix the AJAX navigation in the widget. Further I have updated the italian translation and added some new shortcodes. See the Documentation for details on shortcodes
I have just released a new version of LeagueManager which should fix a few of the most pressing bugs:
At the moment I have very little time, but will do my best to address the other issues and new sport types as soon as possible. Please let me know if the above issues work.
Since I could find nobody to implement a championchip mode I finally found time to do it myself. Also I realized that a couple of previous changes, such as storing the team’s rank in the database and modular settings, made it quite simple to do this. The current version is still testing, but should work. Moreover the championchip mode should not affect other plugin functionalities.
It is now possible to group teams and rank teams within each group. To activate a championchip, choose “championchip” as Mode in the League settings. After saving the settings there will be another option to specify how many teams advance from the preliminary to the final rounds. That number is crucial, as it defines the number of final rounds. For example Soccer World Championchip as four final rounds (Last-16, Quarter Final, Half final, final), but european championchip as only the last three.
To insert matches for the final rounds go to the “Championchip” page via the new link on the League overview page. There you’ll find a dropdown menu to add matches for a specific final round. The matches are entered symbolically, e..g 1. Group A – 2. Group B etc. Those matches will only be displayed on this page and not with the other matches. The preliminary matches are added just as normal, but don’t forget to assign a group to each match.
The symbol final rounds matches will be automatically exchanged for the true team as soon as the previous round has been played. Here’s a short list of how to setup a championchip.
To display the championchip page in the frontend use the following shortcode.
[championchip league_id=ID season=X template=X]
league_id is obligatory and the ID of league. season and template are optional. If you want to design custom templates name them championchip-X.php
Please send me feedback and suggestions or bugs.
In LeagueManager 3.2 there are three new sport rules and scoring supported:
Further I have added some options to control the display of Played, Won , Tie and Lost Matches in the Standings Table.
Enjoy.
I have decided to add another feature, which I think is really cool. It is now possible to add dynamically statistics, similar to FormFields in ProjectManager. Available fields are “text” and “roster”, which adds a popup box if there is a Team Roster active. The statistics are automatically displayed in the single match view and also added to ProjectManager FormFields. However the hook into ProjectManager only counts occurences of a value for given user, so this will work for goals, but not if you want to insert points and display the summary of these. This could be achieved by setting up a customized function.
Here’s a short description of the structure. This is only important if you want to programme custom templates or functions for ProjectManager FormFields. The statistics are merge with the $match object whereas the key is the sanitized name of the stat. Suppose you add statistics called Goals, they can be access by
$match->goals
This is an assoziative array which stores the name and fields of this statistic. You can see the contents of the variable by doing
var_dump($match->goals);
Anybody interested can also have a look at view/match.php