Skip to:
Content
Pages
Categories
Search
Top
Bottom

Edit Profile link redirects to homepage when user has @ symbol in username

  • Profile photo of sawyerh
    SawyerH
    Participant

    @sawyerh

    I’m running BP 1.2.1 with WP 1.9.2

    When a user has an @ symbol in their username, they are redirected back to the homepage when they try to click the Edit Profile link. My member’s need to have their email address as their username due to membership settings.

    The problem is known and someone has said:

    This problem is caused by a wp_sanitize_redirect. You’ll probably want to override this function in bp-core (if they have the username compatibility constant enabled)

    Any idea how to fix this?

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Profile photo of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    Have you reported this as a bug on https://trac.buddypress.org/ (regarding the fact links get broken with compat enabled and @ in the username)

    Profile photo of sawyerh
    SawyerH
    Participant

    @sawyerh

    @DJPaul – Yup, it has been known for about 3 months: https://trac.buddypress.org/ticket/1356

    I found a solution here: http://danpolant.com/how-to-use-email-addresses-as-usernames-in-buddypress/

    You have to edit wp-includes/pluggable.php

    Profile photo of intimez
    intimez
    Participant

    @intimez

    Correct me if I’m wrong, but I thought wp+bp did away with using special characters for username.

    Profile photo of sawyerh
    SawyerH
    Participant

    @sawyerh

    @intimez, I don’t believe so. I am still able to create a user with a username as an email address. Also, I am using a plugin that manages my membership which automatically creates the username and sets it as the user’s email address, so I have no control over that unfortunately

    Profile photo of rich! @ etiviti
    rich! @ etiviti
    Participant

    @nuprn1

    i submitted a trac ticket (don’t have the url on hand) but i also outlined how to force the switch over to user_nicename – i had the same issue with email address as user_login and periods.

    http://blog.etiviti.com/2010/02/forcing-buddypress-to-use-user_nicename-for-member-urls-and-mentions/ (but that is for 1.2 and haven’t looked at it for 1.2.1)

    Profile photo of Peterverkooijen
    peterverkooijen
    Participant

    @peterverkooijen

    Why would a user have a @ in their username?!

    I’m very much in favor of using the email address as username, but there are better ways to deal with the member slug.

    Profile photo of rich! @ etiviti
    rich! @ etiviti
    Participant

    @nuprn1

    Why would a user have a @ in their username?!

    on my site – it is very common to use the myname @ mycompanyname syntax (not even an email address just as a reference to whom they work for or affiliated with).

    Profile photo of sawyerh
    SawyerH
    Participant

    @sawyerh

    Why would a user have a @ in their username?!

    Wasn’t my decision to do it that way and I had actually not planned on it, hence the urgent need to have had it fixed.

    The website is using a plugin that manages paid memberships. When the memberships sign up to have access to the website, the plugin automatically assigns the username as the person’s email address.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Edit Profile link redirects to homepage when user has @ symbol in username’ is closed to new replies.