Skip to:
Content
Pages
Categories
Search
Top
Bottom

Obfuscating User’s Real Name


  • virtuallymarj
    Member

    @virtuallymarj

    This afternoon, an 8,000 membership site launched after development was completed. The site is using WishList member to manage user membership and BuddyPress to promote interaction.

    The site’s membership wants their real names obfuscated but the site owner needs their real names for billing.

    So, here is my conundrum. When I activated the BuddyPress member widget prior to launch, we noticed that real names were showing up so I ran a SQL query to set the username equal to the display name. That will be running as a cron job every couple of hours as new members are registering all day long.

    After launch, one member noticed that his real name was visible on his public profile. What database tables govern that profile and what would this community recommend as an ongoing solution to ensure that privacy is automated?

    I’m good with WordPress but BuddyPress is becoming a bit of an adventure. Still, since I’ve been developing WordPress websites for more than 5 years, I’m not intimidated by having to do a little code if there is adequate documentation.

    Thanks in advance for your recommendations/suggestions. If there are specific links to documentation that will help me, pointing me in that direction would be useful too.

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

  • modemlooper
    Moderator

    @modemlooper

    If i’m reading you right all you need to do is replace bp_displayed_user_fullname() with bp_displayed_user_username() in the member-header.php file.

    There’s also the function bp_member_name() that shows on the members directory loop. And then in the activity stream there is code that spits out the who when and where of each activity bp_activity_action()

    These functions are mostly in each folder corresponding to that BP component so activity would be in activity/bp-activity-templatetags.php


    virtuallymarj
    Member

    @virtuallymarj

    Thanks Modemlooper (smiling as I consider your handle, btw)

    I’ll have a look at the pieces of code you’ve referenced and come back with my questions and/or results.


    modemlooper
    Moderator

    @modemlooper

    bp_activity_action() is a piece of work as the code is split up all over in the file.

    `function bp_activity_user_link() {
    echo bp_get_activity_user_link();
    }
    function bp_get_activity_user_link() {
    global $activities_template;

    if ( empty( $activities_template->activity->user_id ) )
    $link = $activities_template->activity->primary_link;
    else
    $link = bp_core_get_user_domain( $activities_template->activity->user_id, $activities_template->activity->user_nicename, $activities_template->activity->user_login );

    return apply_filters( ‘bp_get_activity_user_link’, $link );
    }`

    Not sure if this is what’s calling the username in the activity stream


    virtuallymarj
    Member

    @virtuallymarj

    Thanks once again, modemlooper.

    We’ve been buried in issues surrounding resource utilization in a shared server environment. I’m also grappling with WishList member folks on some errors related to their plugin that are in the php_errorlog. Life marches on…

    I’ll have a look at the code snippet you’ve offered and the scripts where you previously suggested that I review.

    I do have a question though. Is the BuddyPress database schema available online anywhere?

    As “Aahnold” said in The Terminator: “I’ll be back…”


    virtuallymarj
    Member

    @virtuallymarj

    @modemlooper

    Am I understanding that there is no single place in the database where user profile information is stored? In other words, do I have to alter core buddypress code to remedy the display of the name on the PUBLIC user profile?

    I can’t think of one social network where the user does not have access to the part of their profile where the display name is chosen…


    modemlooper
    Moderator

    @modemlooper


    virtuallymarj
    Member

    @virtuallymarj

    Is that a reply to me @modemlooper or are you gathering others to this topic?


    modemlooper
    Moderator

    @modemlooper

    Core devs. See what they have to say about the database schema and any other suggestions. I still do not really under stand what you are trying to accomplish. BP displays a username, the name you use to sign in and then a name you specify for your profile. If you just want the profile name hidden or switched to username seems like it would be easier to just change out the function code that creates these instances of it.


    Paul Wong-Gibbs
    Keymaster

    @djpaul

    Please clarify exact where the name appears that you want to change — as modemlooper says, there’s a few possibilities and it’s not clear from your first posts. Any chance of a screenshot with arrows? :)

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Obfuscating User’s Real Name’ is closed to new replies.
Skip to toolbar