Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jmandrille

    (@jmandrille)

    What I did was create a form with JetFormBuilder and create the hidden field “footballpool_registeredforleague” by manually entering the id of the league to which I want to associate that user. You can go through their documentation and just add the field, then you can create 1 form page for each league you have and the problem is solved.
    Additionally with the Members and LoginWP plugins create different user profiles for each league and redirects so each user can only see their league without mixing with the rest of users from other leagues.

    https://jetformbuilder.com/features/register-user/

    Thread Starter jmandrille

    (@jmandrille)

    Thank you! it worked perfect for me

    Thread Starter jmandrille

    (@jmandrille)

    For the case mentioned, I have decided to create forms for the registration of users where I define the league and in this way the user does not see or choose the league, which was the point that interested me and I was able to solve.
    Now when users register I can see in the plugin that the value “footballpool_registeredforleague” is working fine although I can’t get it to activate in the league and it requires admin approval.

    I used the following snippets shared by you in the help section but it only works if they use the native wordpress registration and not with the form that I created.

    <?php
    // don't use admin approval for league registration of new users
    // just put them in the league they chose
    add_filter( 'footballpool_new_user', function( $user_id, $league_id ) {
        Football_Pool::update_user_custom_tables( $user_id, $league_id );
    }, null, 2 );
    ?>

    I tried changing the second parameter ($league_id) to $user_footballpool_registeredforleague, but it doesn’t work for me either… could you help me just assign this parameter and avoid having to manually approve league registrations?

    Thank you very much!

    I have the same problem, I also use Astra and the only way to fix it is by turning off the plugin. please we need you to fix this problem. Thank you!

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