Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Support: Creating & Extending

Existing and new plugins/components and themes.

Better log in / username system. Need to have 1 unique username per person. (4 posts)

Started 4 months ago by: Craiglovelock

  • Profile picture of Craiglovelock Craiglovelock said 4 months ago:

    Hello, the last thing i need to sort out is how users have their usernames etc.

    So im making a buddypress site for users of an online game… ideally i would like it to be like this:

    You register:

    You set an email address for logging in with, then you also set a display name.

    But just 1 display name, there is no profile name field etc.

    The problem i have atm is that users cant use their ingame names as usernames because wp doesnt allow spaces or uppercase letters in the username.

    But also, i cant allow them to set their profile name as their in game name because it isnt unique.

    I could have loads of people changing their names to the same thing.

    soo….

    Is it possible to have a log in with email, and then im guessing buddypress would have to set a unique id to the user so that their profile name http://www.name.com/idforthatuser

    hope someone understands! :)

  • Profile picture of josemv josemv said 4 months ago:

    Maybe this helps ? http://buddydev.com/buddypress/creating-a-buddypress-wordpress-username-availability-checker-for-your-site/

  • Profile picture of Paul Gibbs Paul Gibbs said 4 months ago:

    BP uses either the user_nicename or user_login fields from the wp_user table to build those member URLs. Your best bet is to figure out/find a WordPress plugin that does what you want, and then test it against BuddyPress.

  • Profile picture of Craiglovelock Craiglovelock said 4 months ago:

    Hmm, i have applied the check username and it has smartened things up.

    Just had a thought, WP allows the use of caps etc in its registration when you first install,

    Thats how my acc is AdminCraig…

    Anyway to allow the user to register like this, surely it will still work with buddypress…

    not sure if theres a different link for wp registration etc?