Forum Replies Created

Viewing 15 replies - 256 through 270 (of 723 total)
  • Plugin Author ThemeBoy

    (@themeboy)

    Hi @iconoclast50,

    Thank you for your question.

    You could add a “Minutes played” performance value via SportsPress > Settings > Configure > Player Performance > Add New.

    This would enable a column in the event performance tables, player lists, and player profiles.

    I hope this helps!

    Plugin Author ThemeBoy

    (@themeboy)

    Hi @macrain13,

    This sounds like a great use of the plugin! As far as I can tell, it should work just fine 🙂

    The only thing is that the statistics would need to be plain digits i.e. 129.75 instead of 129.75″, because the current version doesn’t have a method for adding units (in this case, inches) to variables yet. We’ll get to that soon 🙂

    I hope this helps!

    Plugin Author ThemeBoy

    (@themeboy)

    Hi @dbsept24,

    I’m happy to answer your questions.

    The team page statistics are designed to auto-update only if the fields are left blank. If it works, you’ll notice a “placeholder” value that shows in light grey if the fields are empty.

    For this to work, the league and season of the event must be the same as those displayed in the team page.

    I hope this makes sense 🙂

    Plugin Author ThemeBoy

    (@themeboy)

    Hi @alaaaaa,

    The content-single-event.php template file is part of the template system. It is used for events, but there are other files that hook into it.

    In includes/sp-template-hooks.php, you’ll find the following lines:

    add_action( 'sportspress_single_event_content', 'sportspress_output_event_video', 10 );
    add_action( 'sportspress_single_event_content', 'sportspress_output_event_results', 20 );
    add_action( 'sportspress_single_event_content', 'sportspress_output_event_details', 30 );
    add_action( 'sportspress_single_event_content', 'sportspress_output_event_venue', 40 );
    add_action( 'sportspress_single_event_content', 'sportspress_output_event_performance', 50 );

    You don’t need to edit these lines, though. Instead, you can remove each action (if needed) or add your own actions to ‘sportspress_single_event_content’. Here is an example of each:

    Remove the venue output

    remove_action( 'sportspress_single_event_content', 'sportspress_output_event_venue', 40 );

    Add a new section to events

    add_action( 'sportspress_single_event_content', 'my_event_output_function', 40 );

    (be sure to define ‘my_event_output_function’ in this case)

    The other option is to create your own page template. You can do this by making a copy of single.php in your theme folder, and adding it to a new folder called ‘sportspress’. The files should be single-(post_type).php. For example, the path to an event template that would override the default event page is:

    your_theme/sportspress/single-event.php

    We’ll be launching the documentation portal very soon, which will outline all of this in more detail 🙂

    Plugin Author ThemeBoy

    (@themeboy)

    Hi @lstephan, could you give me a bit more info?

    Are you able to login to the dashboard, or view any of the pages on your site?

    The name of theme you are using, and a list of plugins would also help us find the issue.

    Plugin Author ThemeBoy

    (@themeboy)

    Hi Joe,

    Thanks for the system status. We’ll try a few things and will let you know when we discover the issue.

    Plugin Author ThemeBoy

    (@themeboy)

    Hi @iconoclast50,

    Thank you for letting me know about this issue.

    Since checkboxes were added to the result columns, the new version is not displaying the columns unless the event is saved with the checkboxes selected.

    If you edit each event and save changes (without changing anything), the result columns should appear again.

    We’ll be releasing an update soon that will make sure that the results are displayed by default.

    Plugin Author ThemeBoy

    (@themeboy)

    Hi again!

    Hi Sven,

    We just released SportsPress version 1.1.2 which includes a new Volleyball preset.

    There are several unique statistics in volleyball. Here’s the raw preset file:

    {
    	"name":				"Volleyball",
    	"outcomes": [
    						"Win",
    						"Loss",
    						{ "name" : "Overtime win", "abbreviation" : "OTW" },
    						{ "name" : "Overtime loss", "abbreviation" : "OTL" }
    	],
    	"results": [
    						{ "name" : "1", "description" : "1st set points" },
    						{ "name" : "2", "description" : "2nd set points" },
    						{ "name" : "3", "description" : "3rd set points" },
    						{ "name" : "4", "description" : "4th set points" },
    						{ "name" : "5", "description" : "5th set points" },
    						{ "name" : "T", "id" : "points", "description" : "Total points", "primary" : 1 }
    	],
    	"performance": [
    						{ "name" : "S", "id" : "sets", "description" : "Sets played" },
    						{ "name" : "K", "description" : "Kills" },
    						{ "name" : "E", "description" : "Attack errors" },
    						{ "name" : "TA", "description" : "Total attacks" },
    						{ "name" : "A", "description" : "Assists" },
    						{ "name" : "B", "description" : "Blocks" },
    						{ "name" : "DIG", "id" : "digs", "description" : "Digs" },
    						{ "name" : "PTS", "id" : "points", "description" : "Points" }
    	],
    	"columns": [
    						{ "name" : "Pts", "equation" : "$win * 3 + $overtimewin * 2 + $overtimeloss", "priority" : 1, "description" : "Total points" },
    						{ "name" : "P", "equation" : "$eventsplayed", "description" : "Matches played" },
    						{ "name" : "W", "equation" : "$win + $overtimewin", "priority" : 2, "description" : "Wins" },
    						{ "name" : "L", "equation" : "$loss + $overtimeloss", "description" : "Losses" },
    						{ "name" : "PW", "equation" : "$pointsfor", "description" : "Points won" },
    						{ "name" : "PL", "equation" : "$pointsagainst", "description" : "Points lost" },
    						{ "name" : "Ratio", "equation" : "$pointsfor / $pointsagainst", "precision" : 3, "priority" : 2 }
    	],
    	"metrics": [
    						"Height",
    						"Weight"
    	],
    	"statistics": [
    						{ "name" : "Pct", "equation" : "( $k - $e ) / $ta", "description" : "Hitting percentage" },
    						{ "name" : "B/S", "equation" : "$b / $sets", "description" : "Blocks per set" },
    						{ "name" : "A/S", "equation" : "$a / $sets", "description" : "Assists per set" }
    	]
    }

    This version of the volleyball preset has been included in the new update. It may not be perfect, though, so I’d love to hear your thoughts and adjust things as needed.

    http://wordpress.org/plugins/sportspress/changelog/

    Plugin Author ThemeBoy

    (@themeboy)

    Hi Sven,

    We just released SportsPress version 1.1.2 which includes a new Ice Hockey preset.

    This preset uniquely has an Overtime Loss outcome and a Shot Percentage statistic. Here’s the raw preset file:

    {
    	"name":				"Ice Hockey",
    	"outcomes": [
    						"Win",
    						"Loss",
    						{ "name" : "Overtime loss", "abbreviation" : "OT" }
    	],
    	"results": [
    						{ "name" : "1st", "description" : "1st period goals" },
    						{ "name" : "2nd", "description" : "2nd period goals" },
    						{ "name" : "3rd", "description" : "3rd period goals" },
    						{ "name" : "OT", "description" : "Overtime goals" },
    						{ "name" : "T", "id" : "goals", "description" : "Total goals", "primary" : 1 }
    	],
    	"performance": [
    						{ "name" : "G", "description" : "Goals" },
    						{ "name" : "A", "description" : "Assists" },
    						{ "name" : "H", "description" : "Hits" },
    						{ "name" : "S", "description" : "Shots on goal" }
    	],
    	"columns": [
    						{ "name" : "GP", "equation" : "$eventsplayed", "description" : "Games played" },
    						{ "name" : "W", "equation" : "$win", "description" : "Wins" },
    						{ "name" : "L", "equation" : "$loss", "description" : "Losses" },
    						{ "name" : "OT", "equation" : "$overtimeloss", "description" : "Overtime Losses" },
    						{ "name" : "P", "equation" : "$win * 2 + $overtimeloss", "priority" : 1, "description" : "Points" },
    						{ "name" : "GF", "equation" : "$goalsfor", "priority" : 3, "description" : "Goals for" },
    						{ "name" : "GA", "equation" : "$goalsagainst", "description" : "Goals against" },
    						{ "name" : "Diff", "equation" : "$goalsfor - $goalsagainst", "priority" : 2, "description" : "Goal differential" },
    						{ "name" : "L10", "equation" : "$last10", "description" : "Last 10" },
    						{ "name" : "Strk", "equation" : "$streak", "description" : "Current streak" }
    	],
    	"metrics": [
    						"Height",
    						"Weight"
    	],
    	"statistics": [
    						{ "name" : "GP", "equation" : "$eventsplayed", "description" : "Games played" },
    						{ "name" : "P", "equation" : "$g + $assists", "description" : "Points" },
    						{ "name" : "S%", "equation" : "$g / $s * 1 0 0", "precision" : 2 }
    	]
    }

    It’s also included in the new update. I’d like to hear your thoughts and expertise. Please let me know if anything needs to be adjusted 🙂

    http://wordpress.org/plugins/sportspress/changelog/

    Plugin Author ThemeBoy

    (@themeboy)

    Hi there,

    Yes, you can always create the table columns again and your data will be restored if you use the same values and variable names. The columns can be loaded per sport if you select a sport from the “Sport” dropdown in SportsPress settings. You may need to select a different sport, save, then select Soccer again.

    Note: the Football Club theme uses a data structure separate from SportsPress.

    Plugin Author ThemeBoy

    (@themeboy)

    Hi again!

    Are you using another plugin to manage the roles and capabilities per user? The built-in “Player” role will only have access to SportsPress post types (and not posts or pages) which could then be used with Co-Authors Plus.

    If you are using a custom roles plugin, please let me know which one it is so we can test further compatibility 🙂

    Plugin Author ThemeBoy

    (@themeboy)

    Hi Jonathan,

    Thanks for your question.

    To assign a team to a user, log in as an administrator or league manager, then edit that team. Scroll down to the “User” section and select the other user, then save changes.

    Now the other user (Team Manager) will be able to edit that team.

    Plugin Author ThemeBoy

    (@themeboy)

    Hi Joe,

    This could be an issue with the permalinks or possibly another plugin. Could you paste the output of SportsPress > System Status below? (Use the “code” button)

    Plugin Author ThemeBoy

    (@themeboy)

    Hi @amanipe,

    Thanks for your follow-up.

    SportsPress 1.1 introduces a change in capabilities so that all users can be assigned an event.

    We omitted the multiple users feature because there is a great plugin called Co-Authors Plus that will do this. We’ve tested the new version of SportsPress with Co-Authors Plus and were able to assign events to multiple users.

    You can download the plugin here: https://wordpress.org/plugins/co-authors-plus/

    Hope this helps 🙂

    Plugin Author ThemeBoy

    (@themeboy)

    Hi @sharko,

    We’re putting some documentation together, including a theme integration guide that will help you create your own page templates. I’ll let you know when the documentation becomes available.

    In the meantime, let me know if you have any specific questions that I can answer 🙂

Viewing 15 replies - 256 through 270 (of 723 total)