• I am trying to figure out how to display all of the possible stats on my site. What I would like to do is:

    1) have a page for each stat category (for example, a page for player stats, a page for league standings, a page for scores etc)

    2) I would like to display a small league standings on my home page….but NOT in the sidebar. I’d like to have it on the page

    Any help getting both of these to work is appreciated!

    THanks

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

    (@nick50119)

    Right now the way I accomplished this on https://dev.flyingdogsbaseball.com was to use a full page side bar, then I used an additional plugin to only display the widget on the specified page. This is my first rodeo with wordpress so – am learning as I go. Since this approach is turning out to be a pain I am looking into creating shortcodes that can just be placed in the page. This will be included in the next release.

    Plugin Author nick50119

    (@nick50119)

    Jon,
    I have released version 1.0.5 this evening which includes shortcodes, detailed in the readme file. If you want them in the sidebar, just drag the widget to the sidebar. If you want it displayed in a page just create a new page and put the shortcode in the content. Let me know if you have any questions.

    Thread Starter jonluciano

    (@jonluciano)

    That sounds exactly like the functionality I need! Thanks for putting that together….however, I cannot get the plugin to activate. I upgraded the plugin, but when I try to activate it, I always get a 404 error. Any ideas?

    Thanks!

    Plugin Author nick50119

    (@nick50119)

    hmm. Are you logged in with admin privileges?

    Thread Starter jonluciano

    (@jonluciano)

    I got it figured out…I uninstalled and re-installed and it worked!

    Is there a League Standings widget? I thought maybe the game results was like that, but after closer look I don’t think it is. Or is the Season widget like league standings?

    Great plugin…..great update…great work!

    Thanks!
    Jon

    Thread Starter jonluciano

    (@jonluciano)

    Also…i am seeing this error in the footer of my site:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘bbnuke_wp_footer’ was given in /arvadacolts.com/wp-includes/plugin.php on line 395

    Plugin Author nick50119

    (@nick50119)

    I dont have a standings widget, only because it was set up to track a single team so a standings widget would really only be a table with data that is entered manually.

    Not sure what is causing that error, but what theme are you using? I can try loading it on my test site.

    Plugin Author nick50119

    (@nick50119)

    Actually, I am seeing it with the Twenty Ten theme. Looking into it now.

    Plugin Author nick50119

    (@nick50119)

    Ok, here comes 1.0.5.2 ??

    Thread Starter jonluciano

    (@jonluciano)

    worked like a charm! thanks for the fast turn around…

    When do i link the players to their individual bios. On the player roster, each player has a link, but the link doesn’t go anywhere, it just anchors to the top of the page

    thanks!

    Plugin Author nick50119

    (@nick50119)

    Hey Jon,
    Glad it worked. A couple of things are required for the links to work. I made a couple of assumptions when I made this, as I learn more about wordpress I am finding out there is a lot more to consider when first thought.

    As it is, I am assuming you are using permalinks (url looks like https://www.yoururl.com/roster) rather than the default (www.yoururl.com/?page=123). That said, it requires a plugin called “Cookie Monster”. Download that and under Settings > Cookie Monster in the admin console add 3 parameters – playerID, gameID and field. Also, under Baseballnuke in the admin page you must select and save the page where the playerstats are displayed. This configures that link. The same must also be done for locations and game results.

    If you are not using permalinks and are using the default link format, you do not need cookie monster, however, you will need to make a few changes to the bbnuke-functions.php file. Anywhere you see the following, replace the ‘?’ with ‘&’:
    ?playerID
    ?field
    ?gameID

    Hope this helps. Please send me your URL so I can take a look at what you’ve got.

    Thread Starter jonluciano

    (@jonluciano)

    ok…i installed cookie monster and i think the links are now going to the player stats page. However, the page is empty. Do there need to be player game stats for that to show up? I thought maybe player bio and other player info would show up even if there are no game stats.

    Which brings me to my next question…are player stats entered when I enter a game result? I don’t see an admin page for player stats

    thanks for all your help, i think you are on to something great here!

    My site is https://www.arvadacolts.com. I am adding to it every day, so please keep checking back!

    Plugin Author nick50119

    (@nick50119)

    Jon,
    I think you are on the right track here. If you have not already, you just need to add the shortcode [bbnuke_playerstats] to the playerstats/profile page.

    Just a tip, I use a plugin called “Exclude Pages” to hide the player profile page and game results pages from the menu. If they are displayed on the menu they aren’t very useful because they will just show the default.

    Thread Starter jonluciano

    (@jonluciano)

    cool, thanks! I think its starting to come together. A few more questions:

    1) when i go to edit a player, his height is always zeroed out. How do i keep it from doing that and keeping what i entered

    2) can i exclude pitching stats from a players stats?

    3) where do i enter players stats?

    4) should i just be using a URL for the picture location?

    I think thats it for now!

    thanks again!

    Plugin Author nick50119

    (@nick50119)

    I’ll try to answer these in order.

    1) I will take a look at that, will probably need to be fixed in the next release.

    2) I may need to look into making that an option through the admin console. In the mean time, you would have to edit the function in bbnuke-functions.php to remove the pitching stats. It would be all or nothing.

    3) Player stats are entered in the game results in the admin console, BaseballNuke > Game Results. When you enter in the game results the stats are calculated automagically.

    4) the picture location uses the plugin base url plus the filename/path you enter in that field. So, if you enter images/profiles/playername.jpg the picture should be located in https://www.arvadacolts.com/wp-content/plugins/baseballnuke/images/profiles/playername.jpg

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘[Plugin: baseballNuke] Display Options’ is closed to new replies.