All games
-
On one page we have the following:
Matches, by week
Table standing
Matches All gamesThis 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.
-
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.
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…
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
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)
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).
Are you missing the on penalty results completely?
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
since the table is now working (beside some translation issues which are minor) – I set the page live: this is the link: https://www.fc-uebersaxen.at/hobbyliga/tabelle/
interesting:
This is a correct Match result from the last season:
https://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
https://www.fc-uebersaxen.at/hobbyliga/aktuelle-runde/?match=277just noticed: in the backend: there are still “0” prefilled in the “Final Result” Column. The other fields from unplayed games are empty.
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…
sorry for the links. i deactivated that page.
now the page is online and the links are working.The page https://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.
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.
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:
https://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.php2. 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) season3. 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: https://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?I am seeing a lot of 0-0 matches added as ties. I remove the 0’s and submit and they go away. But next time scores are added, the future games all get added as ties 0-0.
- The topic ‘All games’ is closed to new replies.