cschaub
Forum Replies Created
-
Forum: Plugins
In reply to: [LeagueManager] Players and user teamsSo I ended up doing a few things to get around this for now.
1. Created custom field that shows up when editing profile as admin. This field maps wp users to players/teams.
2. When a user is promoted to role “Player” I create a player/team and set the field from #1 to keep mapping.
3. I created a shortcode called submit_scores that shows a form of matches that the current logged in user is a part of. I allow them to submit a score for a match. I assign winner / loser by comparing scores. So, once both scores are in, the winner loser should be correct.This allows us to use wpmu and sell role memberships of Player. The admin can setup leagues, divisions and matches. I look forward to your solution, it sounds like it will be more elegant.
Forum: Plugins
In reply to: [LeagueManager] Players and user teamsThanks for the nice plugin. We need a way to tie teams (players) to user accounts to sell membership. And then allow players to login and submit their scores (tennis league). I was thinking I could hack for now by adding a custom field to a team to tie to a player. And if the matches are pre-setup with players, then I could create a gravity form to allow a user to submit their score for matches they are a part of. I was wondering if the development you mentioned two comments ago applied to any of this. Our biggest hurdle right now is pairing players with user accounts.
Forum: Plugins
In reply to: [Query Wrangler] Preview in admin screen breaks JSOne simple solution would be to have an admin setting to not automatically preview the view, leave it unchecked by default if an admin setting says so.
editors/views/query-edit-views.inc
Right now, it’s checked by default which causes the blowup. A user could just turn off the auto-preview and then preview in another tab as a non-admin user, for problematic content types.