Support » Plugin: baseballNuke » [Plugin: baseballNuke] Entire League Stats & Players?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author nick50119

    (@nick50119)

    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.

    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.

    Plugin Author nick50119

    (@nick50119)

    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?

    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./

    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

    Plugin Author nick50119

    (@nick50119)

    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.

    Plugin Author nick50119

    (@nick50119)

    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.

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

    Plugin Author nick50119

    (@nick50119)

    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”.

    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.

    Plugin Author nick50119

    (@nick50119)

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

    Plugin Author nick50119

    (@nick50119)

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

    Plugin Author nick50119

    (@nick50119)

    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=

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Plugin: baseballNuke] Entire League Stats & Players?’ is closed to new replies.