Title: User created groups
Last modified: September 28, 2020

---

# User created groups

 *  [cardosonash](https://wordpress.org/support/users/cardosonash/)
 * (@cardosonash)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/user-created-groups/)
 * How can I set up a way that the users, who are already playing in leagues, can
   invite friends into a group, and then see how they rank against them, like: User
   A creates a group (or ranking) that shows who`s winning out of user A, D, X, 
   Y.
 * I know its not included in the pluggin but any pointers onto what functions hooks
   or steps to do would be great

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [AntoineH](https://wordpress.org/support/users/antoineh/)
 * (@antoineh)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/user-created-groups/#post-13465667)
 * I don’t think you’ll need to hook into a lot of hooks. I once thought about it
   and made some notes, but never started development. What I came up with was the
   following plan:
    1. Remove the league selector from the standard registration form. Or, even simpler,
       use a different one with one of the available plugins that offer custom registration.
    2. Make sure that users that register are removed from any league in the database,
       because the plugin will always save with a default league (action: footballpool_new_user).
    3. Redirect users to a page after registration (standard functionality in the plugin
       or in the plugin that changes the registration form).
    4. Create a shortcode for the league administration and show this on beforementioned
       page.
 * The shortcode can then hold all logic:
    - If a user is not part of a league, allow them to create one or to join one
      e.g. via an invite code or by selecting from a list (depends on what you want).
    - If they are part of a league allow them to leave (if not an admin) or to makes
      changes to the league (e.g. removing users or inviting users).
 * This is all custom code, but it makes use of the leagues table (and this makes
   sure that the rest of the plugin can use the default functionality). Depending
   on how the invite system works, you may also need a custom table to store the
   invite codes.
 * This is a simplified flow and no guarantees that I didn’t forget something. It
   was just an idea 😉
    And you can make it as complex as you want, of course.
 *  Thread Starter [cardosonash](https://wordpress.org/support/users/cardosonash/)
 * (@cardosonash)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/user-created-groups/#post-13468906)
 * yes that exactly the kind of walktrough I was hoping, thanx a lot, the problem
   is I want them to also be part of the league, since they are playing for a price.
   But in a long season like the NFL once the top guys of the league start to separate
   from the rest, the “lower seeds” loose interest in the page, so if they can also
   be competing against his friends that would still keep them coming back and placing
   his predictions every week..
 *  Thread Starter [cardosonash](https://wordpress.org/support/users/cardosonash/)
 * (@cardosonash)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/user-created-groups/#post-13470353)
 * Woulndt this shortcode help? Shortcode [fp-scores]
 * it says it shows a collection of user id and matches..
 *  Plugin Author [AntoineH](https://wordpress.org/support/users/antoineh/)
 * (@antoineh)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/user-created-groups/#post-13470685)
 * It will not show totals or order the users by rank. It is just an overview of
   matches and the individual scores.
 * e.g.
 *     ```
              | team A - team B | team C - team D | team A - team D |
       ---------------------------------------------------------------
       user X |        5        |        2        |        0        |
       user Y |        2        |        2        |        0        |
       user Z |        0        |        0        |        5        |
       ```
   

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘User created groups’ is closed to new replies.

 * ![](https://ps.w.org/football-pool/assets/icon-256x256.png?rev=983880)
 * [Football Pool](https://wordpress.org/plugins/football-pool/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/football-pool/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/football-pool/)
 * [Active Topics](https://wordpress.org/support/plugin/football-pool/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/football-pool/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/football-pool/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [AntoineH](https://wordpress.org/support/users/antoineh/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/user-created-groups/#post-13470685)
 * Status: not a support question