WordPress.org

Ready to get started?Download WordPress

Forums

LeagueManager
All games (39 posts)

  1. SAFFRed
    Member
    Posted 3 months ago #

    On one page we have the following:
    Matches, by week
    Table standing
    Matches All games

    This used to work but doesn't anymore. The All games only displays same games as the top one, ie first week now while still before season. The syntax is correct it says all.

    Furthermore I cannot insert anything in the Edit page section by clicking the League Manager Icon. When pressing Insert nothing happens.

    https://wordpress.org/plugins/leaguemanager/

  2. LaMonte Forthun
    Member
    Plugin Author

    Posted 3 months ago #

    Can you get me the URL of the page and the shortcodes you are using.

    On the 'edit page' do you mean in a new post window and getting the LeagueManger window to add a shortcode? If so and you're using WordPress 3.9, it's a known problem. WordPress updated their version of TinyMCE to 4.0 and it breaks a lot of code. I'm working on the fix, I didn't realize WP 3.9 had this change and was focused on other issues so was caught off guard, I apologize.

  3. SAFFRed
    Member
    Posted 3 months ago #

    http://www.amerikanskfotboll.com

    [matches league_id=1 mode=]

    [standings league_id=1 template=compact logo=true]

    [matches league_id=1 mode=all]

    The last one not displaying "all"

    Okej, I understand the situation with the TinyMCE.

  4. LaMonte Forthun
    Member
    Plugin Author

    Posted 3 months ago #

    Replace 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.

    shortcode.php

    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.

  5. SAFFRed
    Member
    Posted 3 months ago #

    BTW, this setup is a workaround, since there is no "all" in the first part. If the visitor where able to have a possibility of selecting "all" in the "Match day"-drop in addition to selecting a Match day, then that would simplify things.

    Or even better yet following possibilities in the drop:
    Select one match day (to see a specific weekend)
    Select All
    Select all games played ie with a score
    Select all non played games

  6. SAFFRed
    Member
    Posted 3 months ago #

    Thanx for your prompt and kind attention to this matter. View my suggestion as just suggestions to improve a already good plug-in, it is not a showstopper :-)

  7. LaMonte Forthun
    Member
    Plugin Author

    Posted 3 months ago #

    In 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.

  8. LaMonte Forthun
    Member
    Plugin Author

    Posted 3 months ago #

    I 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...

  9. Briesmi
    Member
    Posted 3 months ago #

    tried the shortcodes.php, same issue as before. shortcodes not working.

  10. devnul
    Member
    Posted 3 months ago #

    hi there -
    just uploaded the shortcodes.php and the problem is bigger - now there a no games in the list. before I could see the matches of the actual matchday.

  11. stylinjimp
    Member
    Posted 3 months ago #

    I am having this issue also:

    See http://indiefilmer.com/Dev/Burlington/atom-a-schedule/

    This is using the following short code:

    [matches league_id=4]

    Adding mode=All does not change anything.

    I am afraid to use shortcode.php. I am willing to help somehow with testing or something because I have client whose season just started, I billed them for work to display schedule, and now its not visible!!

    Let me know how I can help.

  12. LaMonte Forthun
    Member
    Plugin Author

    Posted 3 months ago #

    Do your leagues have groups?

  13. stylinjimp
    Member
    Posted 3 months ago #

    No. Just a season with teams.

    This worked in 3.8.x. My client upgraded to 3.9 without telling me and this was introduced. Once upgraded to 3.9, only next week shown.

    Are you able to reproduce?

  14. devnul
    Member
    Posted 3 months ago #

    stylinjimp - same here.

    but there is another issue with this version - which will not fit in this thread - but when you enter the results for the first matchday - all other results are 0:0 and the points are counted in the table standings.

  15. stylinjimp
    Member
    Posted 3 months ago #

    Oh Boy! My client upgraded to WP 3.9 while in the admin console before I could test it. Wish this didn't happen.

    Seems like making all of the fields blank (the games that haven't been played), and click update Results removes extra games played and points. Maybe not same issue. I really need fix to this Schedule issue. About to dive in to the plugin myself!

  16. LaMonte Forthun
    Member
    Plugin Author

    Posted 3 months ago #

    Devnul, what sport is your site? In soccer and basketball I had added those 0s, but have pulled them out.

    I've got new shortcode, soccer and basketball files to hopefully fix these issues if you want to do a test before I release:

    shortcode.php

    The shortcode.php file goes in the 'lib' folder.

    soccer.php

    basketball.php

    The soccer.php and basketball.php files goes in the 'sport' folder.

    Matches default to 'all' in the shortcodes, to limit to a group use group=XX, to limit to a match day use match_day=XX, to limit to a team use team=XX, where XX equals the team ID.

    Mode=home isn't clear to me in reading through the code, if you've used it tell me what you were trying to accomplish...

  17. devnul
    Member
    Posted 3 months ago #

    LaMonte Forthun, my site is about soccer.
    Sure I want to provide help and test your code.

    I think the "home" switch is to display all matches of the home team by default, without asking the visitor to choose the team.

    i will test your code and post results here.
    at the moments the pages are marked as "draft" because i do not want to publish wrong results.

    btw: thanks for the quick response.

  18. LaMonte Forthun
    Member
    Plugin Author

    Posted 3 months ago #

    The only way 'home' works is if you mark a team 'home' on the team page. Maybe it's allowing you to set which team the site is for. I think the term 'home' is throwing me here...

    If you downloaded the shortcode.php file, download again, there was some code left in that I forgot to remove that was for testing...

  19. devnul
    Member
    Posted 3 months ago #

    ok - in the matches view there seems some debug switch which outputs the array of matches, followed by the list of games.

    this list of matches is now complete, but the results are missing:

    0 - 0 o.P.|on penalty

    In earlier version the list of matches did not show any matchday/team picker > but i am not sure if this wasn't a modification I did when I first installed the plugin.

    the table view looks lie this: (after 2 matches played, 14 matchdays in total) - maybe this got corrupted when I saved the 2 games.

    Pos	 	 	Mannschaft	Sp	W	T	L	Goals	Diff	Pkt
    1	↑	Logo	FC Fraxern	14	1	13	0	2	2	16
    2	↑	Logo	FC Übersaxen	14	1	13	0	2	1	16
    3	↓	Logo	FC Amateure Klaus	14	0	14	0	0	0	14
    4	↓	Logo	FC Viktorsberg	14	0	14	0	0	0	14
    5	↓	Logo	FC Weiler	14	0	14	0	0	0	14
    6	↑	Logo	Sportfreunde Nofels	14	0	14	0	0	0	14
    7	•	Logo	RW Rankweil	14	0	13	1	1	-1	13
    8	↓	Logo	FC Zwischenwasser	14	0	13	1	0	-2	13
  20. devnul
    Member
    Posted 3 months ago #

    downloaded the latest version of shortcodes > output of the array is removed. no other changes.

    regarding home: i defined our team as "home team" in the settings. This affects also the display of the team name in the table-standings. (bold)

  21. LaMonte Forthun
    Member
    Plugin Author

    Posted 3 months ago #

    In your match list, you'll see '0' in all the scores, you need to remove those. I apologize, that was an error on my part trying to clean some things up and making the display look better. What I forgot was that when a score is added, even '0's, the match is marked played. So, right now your matches are all played, most of which are 0-0 ties...

    The new soccer.php file fixes the issue. Unfortunately, it doesn't remove the 0's in your database.

    As mentioned above, replace the shortcode.php file again, you grabbed the first one I posted, which had a couple of test lines that I've removed (so you won't see the array or a few other lines).

  22. LaMonte Forthun
    Member
    Plugin Author

    Posted 3 months ago #

    Are you missing the on penalty results completely?

  23. devnul
    Member
    Posted 3 months ago #

    Ok, I deleted all the "0" scrores and the standing view is now correct.

    In the matches view, the played results are missing - penalty results are new for me - I use the plugin in Standard-Mode, and I am pretty sure, that during a season the results never are found with penalties. (in championship-mode this might be ... finals e.g.)

    28. April 2014 18:00 Sportplatz Sulz
    FC Zwischenwasser – FC Fraxern	0 - 0 o.P.|on penalty
    28. April 2014 20:00 Gastra Rankweil
    RW Rankweil – FC Übersaxen	0 - 0 o.P.|on penalty
  24. devnul
    Member
    Posted 3 months ago #

    since the table is now working (beside some translation issues which are minor) - I set the page live: this is the link: http://www.fc-uebersaxen.at/hobbyliga/tabelle/

  25. devnul
    Member
    Posted 3 months ago #

    interesting:

    This is a correct Match result from the last season:

    http://www.fc-uebersaxen.at/hobbyliga/aktuelle-runde/?match=245

    This is a match from the current season. Notice the o.P. and the wrong result? Should Read 1 - 2
    http://www.fc-uebersaxen.at/hobbyliga/aktuelle-runde/?match=277

  26. devnul
    Member
    Posted 3 months ago #

    just noticed: in the backend: there are still "0" prefilled in the "Final Result" Column. The other fields from unplayed games are empty.

  27. LaMonte Forthun
    Member
    Plugin Author

    Posted 3 months ago #

    As long as 'home_points' and 'away_points' are Null, and 'winner_id' and 'loser_id' are not set, the rest will not cause issues and will be filled in properly when you have a result.

    Your links came up blank...

  28. devnul
    Member
    Posted 3 months ago #

    sorry for the links. i deactivated that page.
    now the page is online and the links are working.

    The page http://www.fc-uebersaxen.at/hobbyliga/aktuelle-runde/ should show only the current matchday.

    Regardless which shortcode I use, there are always all matches displayed. You can also see, that the results are wrong. (0 - 0)

    [matches league_id=2 mode=]
    [matches league_id=2 mode=racing]
    [matches league_id=2 mode=home]
    [matches league_id=2 mode=all]

    Thank you again for your help!

    EDIT: After deleting the results and saving them again, the results are shown as expected = 1 - 2

    mode switch has no effect, also the pulldown (Matchday/Team) always lists all teams and all matchdays.

  29. LaMonte Forthun
    Member
    Plugin Author

    Posted 3 months ago #

    mode isn't needed and right now isn't used. What are you trying to do that you are trying to use mode for? The default is for all matches to show, then if you want to limit by match day, team, group, time, next or prev, etc., you have those options.

  30. devnul
    Member
    Posted 3 months ago #

    I see. After removing the mode= part it starts to work.
    There are 4 Issues left:

    1. Regarding the match_days parameter:
    the match_day parameter is not recognized when passed through the URL ($_GET['match_day'] is not working)

    See:
    http://www.fc-uebersaxen.at/hobbyliga/aktuelle-runde/?season=2014&league_id=2&match_day=3&team_id
    This is when I pick matchday 3 in the pulldown. It is passed to the URL, but is not recognized in shortcodes.php

    2. Within this page I want to display the current/racing matchday, not a particular matchday or the next/previous matchday.
    I think this was the original intention when using the mode switch without any parameters.

    mode=NULL/racing > show the current matchday
    mode=home > show all matches of the (defined) hometeam
    mode=all > show all matches of all teams in the current (or defined) season

    3. Missing Matchday 1 (or the Matchdays in the past?)
    There is another page in my site, where I want to display all matches. With the help of the match_day switch I figured it out to display them separated for each matchday. (See: http://www.fc-uebersaxen.at/hobbyliga/spielplan/

    This is working fine, expect the fact, that matchday 1 (Spieltag 1) is missing. Spieltag 1 takes place on Monday this week and two matches today. As you can see, there is just the Headline "spieltag 1" and the matches are missing.

    4. In the admin backend the Final Results are loaded as 0:0, although I cleared them all out and saved the empty fields. After re-entering the admin area, all earlier empty fields (final results) are filled with "0" again.

    I hope I could give you some valuable information to develope a bugfix.

    EDIT:
    Another Issue:
    time=next displays all the upcoming matches. Shouldn't it just show the next matchday?

Reply »

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.