PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Force unique display name

s2Member Plugin. A Membership plugin for WordPress®.

Force unique display name

Postby TheresaBug » January 21st, 2012, 12:43 am

Is there a way to force users to choose a display name that is unique? I know username and email both have to be unique, but we want to do this with display name as well.

We are using the s2member profile shortcode, to allow members to change their display name. However it doesn't force uniqueness.

Which hooks could I call to in order to accomplish this? Any help or ideas are GREATLY appreciated.
User avatar
TheresaBug
Registered User
Registered User
 
Posts: 8
Joined: November 3, 2011

Re: Force unique display name

Postby TheresaBug » January 21st, 2012, 11:32 pm

We paid for s2member pro, if that makes any difference. Is there some way to integrate this functionality?

I have figured out how to echo values to the profile form, and even getting an alert box to popup when the form is loaded, if the user has a displayname matching any other user.

Just having a hard time know exactly how to trigger the alert when the displayname is edited, or to popup and prevent saving if it's a duplicate displayname.

We are using an embedded chatroom, so this unique display name is crucial to our architecture.
User avatar
TheresaBug
Registered User
Registered User
 
Posts: 8
Joined: November 3, 2011

Re: Force unique display name

Postby Cristián Lávaque » January 22nd, 2012, 6:46 pm

Well, the only things checked for uniqueness are the username and the email address. You could use the username as the display name. Would that work for you?

Otherwise, you'll need to customize your installation. You could fine a freelance developer in websites like oDesk.com or eLance.com.

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron