WordPress.org

Ready to get started?Download WordPress

Forums

baseballNuke
Multiple Teams-baseballnuke (9 posts)

  1. ryantaylor16
    Member
    Posted 2 years ago #

    Hey Nick,

    Fantastic plugin/extension. Using the site as intended in a dev environment right now.

    http://mvps.ryan-taylor.net

    The question I have is as follows. We are actually running a program for two different teams just different age groups. Is it possible to place stats, rosters, etc for the two teams that are part of our program? Is there a shortcode I can use to post these for a 2nd team. Also, have you looked at doing any work to include League Manager in your work? We host tournaments and leagues where it would be nice to allow folks to check schedules for teams not managed by baseballnuke. Just an idea?

    Thanks for any help you can offer!

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

  2. nick50119
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Ryan,
    Yes, you can specify the team in the shortcode. For example, [bbnuke_roster team="Team 2"]. You can also specify season. If the team or season is not specified it will use the default defined in the admin page.

    I haven't really looked at league manager yet, but it could be something to consider for the future.

    P.S. Sorry I haven't had a chance to reply to you on the BBNUKE page yet, I have been swamped the past week.

    --Nick

  3. ryantaylor16
    Member
    Posted 2 years ago #

    Thank you, I got the 2nd team to show on the roster page of my site, but when I attempt to add a 2nd player to that roster I see this at the top of the add player screen Duplicate entry '154-2011' for key 1

    Any ideas.

    As far as the sorry I haven't part of your reply. Please don't worry about it. I understand what you are doing and at the price you are doing it (time is not free). I appreciate that you're passionate about two things I happen to love. Great job and thanks for the support. I am not a coder but run a datacenter in real life. Anything I can do to help will be my pleasure.

  4. nick50119
    Member
    Plugin Author

    Posted 2 years ago #

    hmm, that is interesting. I am not able to duplicate it. I am guessing that 2011 is your season, but I am not sure what the 154 is. I am guessing it is the generated playerID..... I'll take a look at the code.

  5. ryantaylor16
    Member
    Posted 2 years ago #

    In the DB it looks as though they may be player IDs. They seem to be flipping back to 154 and 155.

  6. ryantaylor16
    Member
    Posted 2 years ago #

    Jeez, sorry my friend. They were assigned to another team and therefore when I was attempting to assign them to the right team it was saying they were already somewhere else. Changed it directly in the DB and now it is fine. Thanks again.

  7. nick50119
    Member
    Plugin Author

    Posted 2 years ago #

    That makes sense. The playerID and the season are both primary keys in the table. Glad it was something simple :)

  8. ryantaylor16
    Member
    Posted 2 years ago #

    I am attempting to setup my practice schedule and I am seeing the following issue. mysql_fetch_array(): supplied argument is not a valid MySQL result resource in bbnuke-functions.php on line 3749

  9. nick50119
    Member
    Plugin Author

    Posted 2 years ago #

    This looks like a bug, I will resolve it in the next release. Looks like there are a few problems on that line. In the mean time, replace line 3749 with the following.

    "WHERE homeTeam='" . $team . "' AND season = '" . $season ."' AND visitingTeam = 'practice' ORDER BY gameDate ASC";

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic