Removing/changing stats/attributes
-
Excellent plugin – works exactly like I want and need it to, BUT (always a but) is it possible to remove/change/add attributes to players (without hacking of code)? For example I do not want the hight and weight columns in my table and on the bios to show up, but I may want to add a player “fun fact” or something like that or to change previous school to Hometown?
Thanks in advance.
-
OK – so never mind the first question – I found your answer to Fraglord that answered this question (hack the code).
The other issue I have is I get a 404 on the link from table to player and the url it passes is formed with a:
?format=pro
on the end – if I remove this the root link works fine. I have updated the permalinks (multiple times) and still no love. Thoughts?
Hi charroid,
Thanks. Glad you like the plugin. Sorry it’s not more flexible, but you read my comment on that to Fraglord. [I may in fact put in an option to remove some columns, especially the weight column, since girls teams are generally not interested in advertising that like football teams are. We’ll see.]Did you move both templates single-player.php and content-single-player.php into your theme’s directory? That and resetting the permalinks should do it. If not, please send me a link to your site’s roster table page and I’ll poke around and see what I can see.
Thanks.
-MarkI think the ability to customize the fields would be good since it would give you a broader appeal for non-mainstream sports teams. I do not mind hacking the code, but it is certainly easier and cleaner to do it through the plug in if possible.
As for my remaining question, I moved the templates and reset the permalinks and still the page throws a 404 on clicking on the link from the player roster table. Here is the link to the page with a roster on it (site is still in development so I have some time to fix the issues)
https://rockymountainrollergirls.com/newsite/?page_id=161
That has a roster on it and the links are there to the player profile page. Also something I noticed, if I put any text in the text field on the player definition page, the hex code for the text color shows up in the text – only way to see this right now is if you remove the:
?format=pro
from the end of the link out of the roster.
Thanks for taking a look!
I appreciate the input and I hear you. The challenge is the balance between sports team rosters and general tables. I picked three formats – high-school, college, and pro – that seem to be very common on websites worldwide. (And I really looked worldwide because the plugin is used worldwide in several languages.) There are a couple of good general plugins. I have found that they are very flexible, very powerful, and therefore a lot of work to build and maintain. More work to build and maintain that ‘volunteers’ who aren’t WP experts, or even computer-savvy, can take on.
As for the rosters, your links should look something like:
https://rockymountainrollergirls.com/newsite/suri-brawl/?format=pro
and right now, they look something like:
https://rockymountainrollergirls.com/newsite/?true=suri-brawl?format=pro
That’s weird. You might try setting your permalinks to post name, which is what I use on https://shoalsummitsolutions.com/dev/ (a site which may help you debug if you haven’t looked at it already). Your permalinks with the “?true=” make me think something weird is going on there. I certainly never coded something like that, but WP can have a mind of it’s own sometimes. (You can turn those links off in the admin panel.)
Finally, I’m not sure what you mean by “the text field on the player definition page”?? I think all the fields are field on the dev site above and that I use all the formats, but if you can be a bit more specific I will certainly double check. (Could be the first bug ever! LOL)
Thanks.
-MarkYep – post name fixed it. Odd-ball behavior, but all good.
So what I was referring to is easier to see now. If you click on the player name in the roster it will open the single player display. If I have input text into the post editor (the big text field above the player details) then when you open the player details link right above that text is the HEX code for one of the color options (I do not know which one). Just odd – you see a #FF0000 in that color there above the text.
If you use the same link you used in your post you’ll see it – I added some dummy text so it would show up.
I looked at your previous link and your site and I cannot see the hex value you are talking about. I don’t see it on my dev site either or in the source code. I’m probably looking in the wrong place. Could you give me another link that will for sure show me what you are seeing?
Thanks.
-Markhttps://rockymountainrollergirls.com/newsite/players/suri-brawl/?format=pro
it is immediately below the picture that you can see the hex code (I am using Chrome if that makes a difference)
Are you sure you didn’t put #ff000 in the
Player content title (defaults to “Player Bio”):
field?
This field is for changing the title TEXT from the default “Player Bio” to something else like “Career Highlights” or whatever.
Hi charroid,
Just checked your site. Looks like that was it?? If so, please let me know and I’ll close this tread.
Thanks.
-MarkSorry, Mark. I have been super busy with some other projects.
So it is still showing the odd color text.
https://rockymountainrollergirls.com/newsite/players/suri-brawl/?format=pro
THis will take you there and you can see it right below the picture placeholder.
Also, I have read the documentation, and I cannot for the life of me figure out how to get the player images in there. It says to add the picture through the “add player” post type, but there is not image options on that page?
Thanks again.
First, the color. Please double and triple check the Setting for
Player content title (defaults to “Player Bio”):
Are you SURE that it’s not set to #ff0000? Is it blank? If so, please set it to “Hello World” or whatever? Does anything change? If that’s not it then what version of the plugin are you using? If it’s not 1.1, please upgrade to 1.1. If it is 1.1, please e-mail the content-single-player.php file to me at [email protected].
Now for the photos. Edit the player and add a photo as the Featured Image. You add featured images just like any other media/image. If you don’t see the Featured Image box on your player edit page, your theme may have deactivated it. I believe the support forum contains a couple of threads on this issue, but if the Featured Image box is not there, start by checking the Screen Options pulldown at the top right of the Edit Player screen. (In the next version, I’ll make sure this box is active.)
-Mark
OK so I wasn’t being clear. I am emailing you a highlighted screenshot so you can see what I mean – it isn’t that the color of the text is wrong, it is that the actual HEX code for the color is being printed into the PHP output itself.
I tried the screen options for the picture and it isn’t there. I will look around and see if I can find it.
Thanks!
Changed the HEX color representation to “Hello World” and now it outputs “Hello World” to the page. I am emailing you the PHP page as requested. It is version 1.1
So that’s great, it works! The field we’ve been talking about
Player content title
is the TEXT for the “player bio” title, not the color. The color comes from the main box text color setting. That one’s hex.
Sorry for not being more clear.
-Mark
Thanks again, Mark, for all your help. The picture thing is not working, but I suspect a theme conflict. If it is possible to override that behavior and force the option in the plugin then I wholeheartedly request that feature!
Otherwise we are in good shape so far – Sorry about the player text confusion ??
One other small thing I have noticed – the first player I put in the DB seems to “disappear” occasionally. Not sure the correlation yet (like if I add a new player or change something else it happens), but thought I would mention it. It ONLY affects the very first player added and the behavior is that there is still a row in the player roster table, but the info is all “missing” from the display.
Other than that, all is well and when I move the site to production I have to start over with everything, so it hopefully will sort itself out when I reinstall the plugin.
- The topic ‘Removing/changing stats/attributes’ is closed to new replies.