Forums

Join
bbPress Support ForumsTroubleshootingdisplay user_nicename instead of user_login

Info

display user_nicename instead of user_login

  1. 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

  2. anybody? I want to only show the user_nicename field everywhere on bbpress not user_login.

  3. silly me. just download the plugin ;)

  4. Which plugin did you use?

  5. display-name.php

  6. 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.

  7. You must log in to post.