Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter M. Dost

    (@m-dost)

    Or is there some who could develop something like this that works with Sportspress?

    Roch

    (@rochesterj)

    Hi Mark!

    This is possible with a combination of SportsPress and a plugin to add more fields to the user registration. The setup itself is like this: https://www.themeboy.com/blog/how-to-allow-wordpress-user-registration-and-assign-sportspress-roles/

    Kind Regards,
    -Roch

    Thread Starter M. Dost

    (@m-dost)

    Hey Roch,

    Thank you for your replay. I think I’ve found a plugin that’ll do just that.
    But my other concern is that when you register your account does not automatically creates a Player. I have set new registrations to the Players role but it doesn’t create one already. Is this only in the Pro version?

    Greetings,
    Mark

    Roch

    (@rochesterj)

    Hi Mark!

    That is actually available for the free version as well. Just make sure your users have the “Player” role, for example, instead of the regular “subcriber” that WP adds

    Kind Regards,
    -Roch

    Thread Starter M. Dost

    (@m-dost)

    Hey Roch,

    Thank you for your replay, but I have done as you said. Still, when I test and register a new user, SportsPress is not creating a new player for that account.

    Greetings,
    Mark

    Thread Starter M. Dost

    (@m-dost)

    Here’s an image because that says more than words https://imgur.com/8Mad4SF

    Not sure what Roch is talking about. SportsPress, even the pro version, does not have the ability to create a player for the user during registration out of the box. Not sure if that is a lack of foresight, or an extremely complicated task, it has been addressed many times over.

    Either way, I don’t feel SportsPress is capable of doing this, even with an extension. I have the League license and their support was not able to help me achieve this and honestly seemed quite uninterested. I see it being mentioned as a feature request, and have seen replies over a year old saying this feature is coming, alas…

    Hopefully they figure something out, it is currently a very powerful front-end tool, yet lacks the backend functionality to actually “run” a league through the site without standing on your head gargling peanut butter.

    sgny20

    (@sallygraef)

    M. Dost did you ever find a solution to this. My registration for creates a new user in the USers table with a role=Player but it does not show up under players?

    sgny20

    (@sallygraef)

    M. Dost did you ever find a solution to this. My registration for creates a new user in the USers table with a role=Player but it does not show up under players?

    Thread Starter M. Dost

    (@m-dost)

    Yes I did found a solution. You can contact me by clicking on my profile and look for my website.

    Haoz

    (@haozera)

    I wasn’t able to contact you @m-dost, what was your solution for this? It would help us a lot

    jayront

    (@jayront)

    Hi, It depends if you’re using Buddypress plugin or not.

    if you’re using buddypress plugin then add this to Buddypress->bp-members-bp-members-function.php

    search for this –> do_action( ‘bp_core_signup_user’, $user_id, $user_login, $user_password, $user_email, $usermeta ); (and add the following below it)

    wp_insert_post(array('post_title'=>$user_login, 'post_type'=>'sp_player', 'post_name'=>$user_login, 'post_status'=>'publish' ));

    If you’re using just wordpress to get new user accounts then search for this –> in your wordpress directory –>wp_includes->user.php

    search for $user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email ); (and add this below it)

    $player = wp_insert_post(array('post_title'=>$sanitized_user_login, 'post_type'=>'sp_player', 'post_name'=>$sanitized_user_login, 'post_status'=>'publish' ));

    Hopes this helps.

    • This reply was modified 8 years ago by jayront.
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Registration form for players?’ is closed to new replies.