Skip to:
Content
Pages
Categories
Search
Top
Bottom

Replace user_login in Member's Area URL with user_id

  • Avatar of artifex223
    artifex223
    Participant

    @artifex223

    I’m currently migrating from another platform, and due to the circumstances, we are using the user’s email address as their user_login. Unfortunately, this means that when visiting any member’s Member Area, their email address is exposed in the URL.

    Is there any way to cause the Member’s Area URL to use their user_id instead of their user_login? I fear this may not be possible without hacking the core. Even so, it needs to be done, so if anyone has any clues to where I might be able to change this, it would be greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of mysmallbizu
    mysmallbizu
    Participant

    @mysmallbizu

    Me too! Really need some help with this one..

    Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    I’m not sure this is doable without making several hacks to core code, which I do not recommend. Start by looking at bp_core_set_uri_globals() near the comment “If members component, do more work to find the actual component”.

    Avatar of artifex223
    artifex223
    Participant

    @artifex223

    Thanks for the response Paul! Although, I think we’ve just figured out an alternative solution.

    In my original post, I wrote that the member area URL uses user_login, which in our case is the user’s email. But that isn’t entirely true; the URL uses the user’s nicename.

    So our new workaround will be to simply reconfigure the user’s nicename, which will then be used in the member area URL without any further changes, and without any modifications to core files. In order to avoid exposing database information like user_id, we are actually planning on using a hashed version, but the concept remains the same.

    Do you foresee any complications in this plan of action?

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.