K
Forum Replies Created
-
Thank you for reporting this issue. This is an issue with identical CSS classes, which I will fix
Forum: Plugins
In reply to: [LeagueManager] WordPress-Datenbank-Fehler:Hi,
this should be fixed in 4.1.1
Forum: Plugins
In reply to: [LeagueManager] Matches and standings are the same for different leaguesHi,
this should be fixed in 4.1.1
Forum: Plugins
In reply to: [LeagueManager] WordPress-Datenbank-Fehler:Das Problem kam durch das caching, aber sollte behoben sein
Forum: Plugins
In reply to: [LeagueManager] widget error – double time show logos and matchI think the duplicate logo issue is fixed
Forum: Plugins
In reply to: [LeagueManager] Parse error: syntax errorHi, ich denke der Fehler ist behoben
Forum: Plugins
In reply to: [LeagueManager] Database Error MessageIm working on it, but please don’t double post
Forum: Plugins
In reply to: [LeagueManager] Show all games that day of a leagueI think this is an issue due to some caching of MySQL queries. I will work on this
Forum: Plugins
In reply to: [LeagueManager] widget error – double time show logos and matchplease post a link to your website
Forum: Plugins
In reply to: [LeagueManager] Next matches not working since updateyou need to be more precise.
Do you use a shortcode? what template? what exact shortcode options?
A template function?
widget?
what sport type?Forum: Plugins
In reply to: [Fancy Slideshows] Images not in slideshowAwesome ??
Forum: Plugins
In reply to: [LeagueManager] Other field in matchYou first have to add your new sports type using the filter
add_filter( 'leaguemanager_sports', 'my_sports' ); function my_sports( $sports ) { $key = 'my_key'; $sports[$key] = __( 'My Sport', 'leaguemanager' ); return $sports; }
Then, you can add custom fields to the matches admin table using the following actions:
$key = 'my_key'; add_action( 'matchtable_header_'.$key, 'My_displayMatchesHeader', 10, 0 ); add_action( 'matchtable_columns_'.$key, 'My_displayMatchesColumns' );
$key
has to be a unique identifier for your sports type. The input fields must be named in the patternname="custom[$match->id][your_field]"
. Have a look at the files in the sports/ subfolder that use those actions, e.g. sports/gymnastics.php.Forum: Plugins
In reply to: [LeagueManager] Very slow loading of matches shortcodeI just submitted a new version, which includes caching MySQL queries. Page loading times should be much better
Forum: Plugins
In reply to: [LeagueManager] Show all games that day of a league@chleray: I found an issue with the match_day option when using multiple shortcodes on the same page. This should be fixed in 4.0.9
@1999999: I added two functions
get_last_matches($team_id, $n, $logos)
andget_next_matches($team_id, $n, $logos)
, which can be used to easily retrieve the next or last$n
matches of$team_id
with logos ($logos = true) or without (false)I won’t add the shortcodes you asked for as this would make things to complicated. You could, however, use the following shortcode, which should work to get the data (you may need to design custom templates).
[matches team=ID time='prev' limit=1]
[matches team=ID time='next' limit=1]
Both functions, and the shortcodes return a lot of pre-formatted data, such as
$match = get_last_matches($team_id, 1, true)
returns the last match for given team ID with logos
$match->title
contains the formatted title with logos as in the matches table or next/last match box on the team page
$match->score
contains the formatted score (including considering overtime/penalty
$match->report
contains the url to the match report if present
$match->homeTeam
contains the team object of the home team
$match->awayTeam
contains the team object of the away teamYou can dump all data using
print_r($match)
Hope that helps
Forum: Plugins
In reply to: [LeagueManager] Show all games that day of a leagueHmm… strange as the shortcode works perfectly fine with a specific match day or last, current, next match days on my testserver.
Please post a screenshot of the post edit page with the shortcode you use and the output. What template do you use?
Did you also make sure that the matches are correctly assigned to the match days?
Concerning the removing and adding of points? Do you mean the +/- Points column in the standings table? In this case you need to reload the page for the changes to take effect