This topic has 4 replies, 3 voices, and was last updated 6 years by Radu.

  • Author
  • #212770
     maxlevel
    Participant

    I got noticed by a member of my website that his email address is visible for everyone in the URL of his forum post.

    I found that it comes from a WP – Woocommerce setting where users are automatically created at checkout and the email address is used as username. As a result I now have lots of users with the email address as username.

    All attempts to change  that failed so far. Even if I change the username the slug in the URL doesn’t change. It’s the same if I use bbPress or Buddypress. I even tried some code snippets on the Buddypress website but could not get it working. In the meantime I had to reduce the visibility of user profiles as far as possible but that’s not a solution.

    I consider this a huge privacy/security risk that keeps me from implementing Buddypress/BBPress on my website.

    Do you know of any way to handle that? Unfortunately ideas to prevent the situation in the first place (as not using the email address as username) won’t help because I already have thousands of users with that setting.

    #212772
     Kieran_SQ
    Moderator

    Hi,

    There are plugins out there that will change a username, but this is a per user basis and wouldn’t be a viable option for hundreds of users, let alone thousands.

    You’re correct in the method to resolve the issue going forward, however, a solution to the current issue is going to be difficult. BuddyPress stores activity data in such a way that previous content is not going to be linked to the new username. This will mean you have content that will appear to be orphaned, it should link to the correct profile, but it will still show the users old username (email address) for the content of the activity.

    I can’t really think of any easy way to resolve this for you so I am going to refer this ticket to one of our developers for a review. Given your question is complex it may be a few days before you hear back from us as some research may need to be carried out.

    Thanks,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #212868
     Radu
    Moderator

    Hi,

    I see that, The checkout flow it’s handled by the woocommerce itself not sure if our theme interact in some way with that, i recommend you to ask the same on the woocommerce forums and/or buddypress.

    A temporary solution it’s to change the slug manually of that user with the email public : https://premium.wpmudev.org/forums/topic/change-buddy-press-user-profile-slug

    I recommend you to test that behaviour (try to reproduce the issue) while you are using default wp theme (twenty seventeen) to see if this issue comes directly from buddypress or from woocommerce(personally from woocommerce i think it comes since the woocommerce register the user.)

    Let me know

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #213074
     maxlevel
    Participant

    The problem comes from the fact that WooCommerce uses the first part of the email address to create the username when automatic account creation on checkout is ticked and from another plugin ActiveWoo that uses the whole email address for that reason.
    Both results in the email address in the username.

    The worst part now is that WordPress has the nicename as required field so it simply copies the username in the nicename fiel. Buddypress uses the nicename for creating the user slugs and therefore the email shows up in the url slug of the user.

    I could resolve the problem with a code snippet that changes the nicename in first and last name and the user slug changes respectively. It seems to work, the slug now consists of first and lastname and that is what I prefer.

    Here’s the link to that solution:
    Buddypress No Email Address In Slug Solution

    #213105
     Radu
    Moderator

    Hi,

    I’m glad that you had found a workaround for the issue and thanks you for providing a solution for the rest of the users if they had the same issue.
    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?