WordPress.org

Ready to get started?Download WordPress

Forums

baseballNuke
Entire League Stats & Players? (15 posts)

  1. S S0DEN
    Member
    Posted 2 years ago #

    I have installed the plugin but I am wondering how we can use this for an entire leagues stats, players and teams. Seems like the software only tracks stats for 1 team.

    http://wordpress.org/extend/plugins/baseballnuke/

  2. nick50119
    Member
    Plugin Author

    Posted 2 years ago #

    You can use the plugin to track stats for multiple teams. There are 2 parts to this, the first is on the administration side. TO enter stats for a team at the moment, you will need to set them as the default team, this will be simplified in the next release.

    The second part in the public UI. When you use the shortcodes, you can specify the team and season as follows:

    [bbnuke_schedule team="team 1" season="spring 2012"]

    the same attributes will work with all of the shortcodes except bbnuke_playerstats and bbnuke_gameresults. These are dynamic pages, you only need 1 of each that can be shared for all of the teams.

  3. S S0DEN
    Member
    Posted 2 years ago #

    I tried doing that, example Red Sox vs Pirates. I had the Red Sox as my default team and entered the stats, but when I switch to the Pirates for my default team, I can not see their players in the game results to enter stats.

  4. nick50119
    Member
    Plugin Author

    Posted 2 years ago #

    After you set the default team to the Pirates on the main BBNUKE setting page, can you then see the Pirates roster on the Players Settings page under current players?

  5. S S0DEN
    Member
    Posted 2 years ago #

    Yes, I can see them on the teams roster but I can not edit the stats in the admin section. On the scores page, you can only edit and see the first teams players./

  6. S S0DEN
    Member
    Posted 2 years ago #

    Also I followed the installation to the dot, yet when I view a player on the roster page, it always takes me to the same players page.

    Example, I click Matt and it takes me to Shawns page. I click Kevin and it takes me to Shawns page.

    http://springssox.com

  7. nick50119
    Member
    Plugin Author

    Posted 2 years ago #

    Ok, I found the issue. It is a bug and will need to be fixed in the next release. I am hoping to have that out in the next couple weeks, I had planned to release it by now but work has gotten in the way the past month. The problem is when trying to enter stats for the both teams for the same game. If there are existing stats it will display those instead of displaying the other team. The plugin was initially designed to manage only a single team, I have been working on ironing out these type of bugs for league use.

    The second issue with the links not working. Baseballnuke requires the use of "pretty urls". With the WordPress default it requires a tweak to the code, I will see if I can iron that out in this release also. In a nut shell, when you click the link it adds a query string to the url with the playerID of the player, it will append ?playerID=145 to the url and bbnuke will use that to display the appropriate player. The default urls for WordPress are query strings themselves, http://www.springssox.com/?page_id=729 for example. So, when the query string is appended to the end, the query string is no longer valid http://www.springssox.com/?page_id=729?playerID=145. THis can be corrected in bbnuke-functions.php if you do not want to use permalinks by changing ?playerID=145 to &playerID=145. Try this for example http://www.springssox.com/?page_id=729&playerID=145.

    The easiest way to fix this is to use permalinks. In the WordPress admin console, go to Settings > Permalinks and select anything other than the default. I usually use Numeric.

  8. nick50119
    Member
    Plugin Author

    Posted 2 years ago #

    To the second problem, I found a way to detect if permalinks are being used or not, I am working now on accounting for both scenarios.

  9. S S0DEN
    Member
    Posted 2 years ago #

    I tried doing that, but now it pulls a page that does not exists...

  10. nick50119
    Member
    Plugin Author

    Posted 2 years ago #

    It looks like the page player-stats does not exist. You need to create a page with that name and enter the playerstats shortcode [bbnuke_playerstats] After you have created that page, you'll need to go to the bbnuke settings page and select that page from the dropdown for "Player Stats Widget Page".

  11. S S0DEN
    Member
    Posted 2 years ago #

  12. S S0DEN
    Member
    Posted 2 years ago #

    This is weird, the page is created and when I click on view page it says it is not created. But if I change the Permalinks back to default the page shows up.

  13. nick50119
    Member
    Plugin Author

    Posted 2 years ago #

    I am getting the 404 error when I click that link....

  14. nick50119
    Member
    Plugin Author

    Posted 2 years ago #

    do you have gmail? If so, reach out to me on google chat and we can work through it. nick50119 at gmail dot com.

  15. nick50119
    Member
    Plugin Author

    Posted 2 years ago #

    Thats very strange, it looks like all of your links are broken with permalinks enabled. I have made that change already to support the default urls, but it is very beta right not (not necessarily that change, but many of the others) so I wouldn't want to burden you with that. In the mean time, here is a quick workaround for your site.

    in bbnuke-functions.php, do a find and replace for the following (make sure to back it up first).

    replace ?playerID= with &playerID=
    replace ?gameID= with &gameID=
    replace ?field= with & field=

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic