ThemeBoy
Forum Replies Created
-
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Player PageAre you using the “Grouping” option?
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Player PageHi Pedro,
Positions will be sorted by the slug. To sort in that order, you could keep the position names but change the slugs, for example:
name: Goalkeeper
slug: 0-goalkeepername: Defender
slug: 1-defendername: Midfielder
slug: 2-midfieldername: Forward
slug: 3-forwardHope this makes sense 🙂
Hi @andrewlynch,
You’re right. The events importer as it is currently will assign the same league and season to all imported events. If you wish to import events from different leagues, you will need to create a separate csv file per league.
We’ll look into adding more columns to the event importer in a future update.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Player PageHi Pedro,
The venue page is a taxonomy archive, so the file name would be taxonomy-venue.php
Hope this helps!
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] QuestionHi @kev147,
We’re still working on an integration guide for themes. I’ll try to give you a quick outline here in the meantime. The following is an example of how to create a player profile template.
1. In your theme’s folder, create a new folder called “sportspress”.
2. Create a copy of single.php and add it to the sportspress folder. Then, rename that file to single-player.php
3. Right after the following line (or similar):
while ( have_posts() ) : the_post();add the following line of code:
$player = new SP_Player( $post );4. Now that you have an instance of the SP_Player object, you can use the functions from sportspress/includes/class-sp-player.php, like $player->current_teams(), $player->past_teams(), and $player->metrics().
5. SP_Player extends the abstract class SP_Custom_Post, so you can also use magic methods to get meta data, like $player->number and $player->nationality.
6. You can also use standard WP functions like the_title, get_post_meta and get_the_terms.
7. The rest is the same as creating a standard WP custom page template (see http://codex.wordpress.org/Page_Templates).
You can use this process for creating event, calendar, team, table, list, and staff page templates.
I hope this helps. We’ll bring out the full integration guide as soon as possible. In the meantime, let me know if you have any questions about any of the steps above. I’d be happy to help you.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] updatesHi Teo,
Glad to hear you’re enjoying the plugin!
You won’t lose any of the data when updating. But it’s always a good idea to back up your site before updating just in case 🙂
The next update will be released early next week. You can always grab the latest version from GitHub and test out features before they are officially released on WordPress.org. Keep in mind that GitHub commits are not official releases so some of the features may not work perfectly yet.
Linking player lists to teams will be in the next major update (version 1.1) due in a couple days 🙂
Hi Josh,
Thanks for your question.
We’re releasing an update early next week which will have options to hide various sections from frontend templates.
You can add the following code to your theme’s functions.php to hide the event performance section for now:
remove_action( 'sportspress_single_event_content', 'sportspress_output_event_performance', 50 );I’ll let you know when the update becomes available 🙂
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Player PageHi Pedro,
Glad to hear that! Thanks for your kind words about the plugin. I’d love to see your finished design 🙂
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Logo urlHi @vdvinho,
Thanks for using Premier! You can change the logo via Appearance > Customize > Site Title & Tagline > Logo.
Hope this helps 🙂
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Batting averageHi @dbsept24,
Thanks for your question.
The formula is correct, but a “division by zero” error will occur when AB is zero. The next update (due early next week) will have an error check feature to prevent this issue.
I’ll let you know when the update is released 🙂
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Player List ErrorThank you for your feedback. We’ll be releasing an update early next week with a fix for this issue. The error occurs when no players have been added to an event. For a temporary fix, please change the line 142 to:
if ( is_array( $players ) ): foreach( $players as $player_id => $player_performance ):and line 209 to:
endforeach; endif;I’ll let you know when the update becomes available.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Goals/assists TableHi again!
The next update is scheduled for early next week. We’ve added a lot of new functionality and tweaks that will allow for even more customizability.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Custom capabilitiesHi @amanipe,
Are you using a custom role plugin? Here is a full list of player related capabilities:
‘edit_sp_player’
‘read_sp_player’
‘delete_sp_player’
‘edit_sp_players’
‘publish_sp_players’
‘delete_sp_players’
‘delete_published_sp_players’
‘edit_published_sp_playe
‘assign_sp_player_terms’The Premier theme will work with the Page Builder plugin, but you’ll need to add a couple lines of CSS to change the way the widgets look. We’ll definitely adjust the stylesheet for better compatibility with Page Builder in the next update to Premier.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Goals/assists TableHi @amanipe,
Will you be displaying the goals/assists table in a match result page, or on another page (for example, a team profile)?
The next update has options that give you more control over how player lists are displayed, which might be useful 🙂
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Custom capabilitiesHi again!
It looks like only players and admin users are able to change player positions in the current version, but we’re releasing an update soon that improves user roles and capabilities.
Which user role are you logged in as when the position disappears?
Regarding the themes, Football Club is our old theme and is a standalone solution. Premier is our new theme, released earlier this month, and is designed exclusively for SportsPress. Both themes include color and customization options, so there is no need to edit any CSS files 🙂