Frequently Asked Questions

Why do I get the message “Cheatin’ huh?” when I try to access some admin screens after installing version 4.0?
This problem is related to the WP Roles & Capabilities system and the MSTW roles & capabilities that control access to the admin screens. The appropriate MSTW Capabilities are assigned to the Administrator role only when the plugin is activated. So assuming you are logged in as an administrator, de-activating and re-activating the plugin usually does the trick.

Why do I get the following message on some front-end displays, e.g., Player Galleries?

Warning: array_key_exists() expects parameter 2 to be array, string given in /home/mdorum/public_html/wordpress/wp-content/plugins/team-rosters/includes/mstw-tr-utility-functions.php on line 755

I believe this only occurs when viewing the front end displays BEFORE accessing the back end Team Roster admin screens AND MSTW Schedules & Scoreboards is active. I believe simply visiting the Team Roster admin pages (any page) fixes this problem. (Please let me know if it doesn’t.)

I have patched this issue. If you pull the includes/mstw-tr-utility-functions.php file from the development tree, this problem is corrected there.

Finally, these messages were WARNINGS, not ERRORS (which “white screen” the site). While I work hard to eliminate such messages, they should not harm your site, because they should be disabled completely or directed to the debug.log file on a live site. Information on managing these messages is readily available on the web, including on shoalsummitsolutions.com.

What’s the difference between the Player Gallery shortcode and the Player Gallery page (template)? When should I use one versus the other?
They are two different ways to accomplish the same thing. They generate the same front end displays. The method you choose, is totally dependent on how your site is designed, and what method works best with your site and theme. One major difference is that the shortcode supports the full set of arguments described in the Player Profiles and Galleries man page, while the template relies on the Display Settings from the Settings admin screen.

Can I set up separate rosters for different teams?
Yes. You enter the players and control what roster(s) they are on through Teams category.

Can a player be on more than one team?
Yes. You can assign two Team categories to one player, in which case both teams will be listed in the title on his or her bio page. OR, you can duplicate a player and assign the copies to different Team categories, in which case only one team will be listed on the bio page.

How do I change the look (text colors, background colors, etc.) of the team roster table and/or the player bio page?
See the information on the Display Settings page and on the Styling the Plugin page.

How do I add team logos?
See the Customizing the Team Rosters Plugin man page.

Can I display more than one roster on a single page by using multiple shortcodes?
Yes.

The link from the players’ names to their bio pages appears to be broken or at least the bio page does not display properly. What did I do wrong?
Maybe nothing. First, please review the installation instructions. You must copy the plugin’s template files into your theme’s main directory. These templates, and the associated stylesheets and settings, were tested with the WordPress Twenty Eleven theme. Your theme may be overriding some of the styles, defining display areas that are too small for various elements of the plugin, or any number of other things. This can all be fixed, but it has to be done on a theme-by-theme basis.

I’m positive I installed everything correctly, but the links to the single player pages (player bios) still don’t work. What’s wrong?
You probably need to reset your permalinks. Go to your admin dashboard -> Settings -> Permalinks. Change the permalink setting and save. Then change it back. (FWIW, you probably want to use the Post-name setting, but you must change it to reset the permalinks.)

I don’t want to display weights for a women’s team? How can I do that?
As of version 3.0, there are two ways to accomplish this. First, you can hide the Show Weight column/field in the admin settings screen. This will remove the weight column from ALL roster tables on your site by default. You can override the admin setting with the ‘show_weight’ argument in the [shortcode]. `show_weight=0|1` will hide or show the weight column regardless of the admin setting.

I don’t want to use the player-teams column created by MSTW CSV Exporter assign my players to teams. I want to use the team I select in the Select Team to Import dropdown for ALL imported players. Can I do that?
[v4.0] Sure, just edit your CSV file (in Excel, say) and delete the player-teams column. Be sure to save your file as CSV, and if you are using a Mac, be sure it’s PC CSV format, which is different than Mac/Unix CSV format.

I installed version 4.0 (without reading the fine manual) and all my data is gone! @*?*$^&#!! Please tell me I did not lose 3 years of data!
No, you did not lose your data, you just can’t see it via version 4.0 of the plugin. Deactivate version 4.0 (I don’t believe you have to uninstall it.) and reinstall version 3.1.2, which is available on wordpress.org. You will have to download the zip file and install it as a zip file. Then follow the upgrade instructions in the users manual.

Is this plugin ready for translation?
Yes. The domain is ‘mstw-team-rosters‘. The default .pot file, mstw-team-rosters-en_US.pot, is in the plugin’s /lang directory.