Info
- 6 posts
- 3 voices
- Started 4 years ago by jamwol
- Latest reply from Sam Bauers
- This topic is resolved
display user_nicename instead of user_login
-
- Posted 4 years ago #
long story short
I have integrated wordpress with my community. As my community uses the members EMAIL as the login, I have hacked wordpress to do the same. (when a member signs up on my custom user db table, a trigger updates the wordpress wp_users table, setting BOTH email and user_login to the email address of the new member)
now I have implemented bbpress. My bbpress uses the wp_users table as well, all is fine.
to my dissapointment, bbpress displays user_login values on the forum instead of user_nicename.
I do not want to dispay user_login (because it is the email address of my members). [ I have commented out the bbpress function which forces bbpress user_logins to not contain @, . and other chars.
Is there a way to easily display user_nicename instead of user_login. If not is there an easy way to tweak this?
So an obvious second question, have i comprimised security in any manner by commenting out the sanitize function and thereby allowing email adresses as bbpress (and wordpress) "user_login" values?
thanx
-
- Posted 4 years ago #
anybody? I want to only show the user_nicename field everywhere on bbpress not user_login.
-
- Posted 4 years ago #
silly me. just download the plugin ;)
-
- Posted 4 years ago #
Which plugin did you use?
-
- Posted 4 years ago #
display-name.php
-
- Posted 4 years ago #
user_nicename isn't what you are after. You want the display_name column. user_nicename in WordPress is a URL safe version of the username. Future versions of bbPress will utilise this field for that purpose too.
-
You must log in to post.