• Resolved fanman1948

    (@fanman1948)


    Hi,
    Now I have 2 league (pay and free) in MySQL I have 3 (default, pay, free).

    How can I set the default league ranking for all users? Now if a user is in the league it automatically displays this ranking. I wants a default list of all users without division by the league.

    But I also want the user can choose ranking.

    • This topic was modified 2 years ago by fanman1948.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter fanman1948

    (@fanman1948)

    Plugin Author AntoineH

    (@antoineh)

    You can use this plugin to override the default behavior.

    Thread Starter fanman1948

    (@fanman1948)

    Perfect! You are the best! Thanks!

    Thread Starter fanman1948

    (@fanman1948)

    Hmm it’s possible to inactive choose league on registration form?IMG-20221109-092715

    • This reply was modified 2 years ago by fanman1948.
    • This reply was modified 2 years ago by fanman1948.
    • This reply was modified 2 years ago by fanman1948.
    • This reply was modified 2 years ago by fanman1948.
    Plugin Author AntoineH

    (@antoineh)

    You don’t want your players to choose one of the available leagues? I think you can use a plugin for this that allows you to overwrite the default registration form. At least, that is what I hear from other users that use e.g. Ultimate Member plugin. They have the exact opposite problem: their form does not have a dropdown and they want to add it.

    If the dropdown is not there, then users will be placed in the default league upon registration.

    A really dirty way to remove it, is by editing the football-pool.php file in the root of the plugin dir. But you’ll have to remember that you will need to re-do the change everytime the plugin is updated via WP. Remove or comment out the following 2 lines:

    add_action( 'register_form', ['Football_Pool', 'registration_form_extra_fields'] );

    add_filter( 'registration_errors', ['Football_Pool', 'registration_check_fields'], null, 3 );

    Thread Starter fanman1948

    (@fanman1948)

    Yes. I don’t want to user can choose the league. I want all new user goes to “free” league, and went I have information about paid I can change league for this users.

    Now I think it’s working fine. Thanks one more time for your help. Have a good WC tournament:-)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Default league ranking’ is closed to new replies.