Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to hide profile fields from displaying publicly? Like ’birthdate’?!

  • @tux-kapono

    Participant

    I just realized our site was displaying birthdate on members’ profile fields publicly! Arrrgh! How do I hide certain fields? We do need that info, but only at registration, not displaying on people’s profiles! Help would be greatly appreciated. No luck finding solutions with Google.

Viewing 12 replies - 1 through 12 (of 12 total)
  • @hnla

    Participant

    You’ll need to do something like wrap the custom xprofile loop section in a check for a specific field name ‘birthdate’ and do something like ‘if not’ ‘birthdate’ go ahead and display field item or display if is_admin if you want to be able to see users data as a site admin.

    To remove a field you could do:
    `

    <tr>

    `
    in the profile loop; equally if you wanted to remove a complete field group you can copy the approach seen in the file for ensuring that the base group is not shown `if ( 1 != bp_get_the_profile_group_id() ) ` adding an OR followed by a check on the group id to hide.

    @tux-kapono

    Participant

    Thanks Hugo, I’ll have to pass this one on to our programmer :)

    @hnla

    Participant

    😆 oh if you had a programmer you should have thrown it his way first- anyway it’s an easy enough problem to deal with one way or another.

    @tux-kapono

    Participant

    Actually, I did. She was wondering if there were more obvious solutions than what she could think of. Though she mentioned that the listed solution only works if you don’t ever have a different field name.

    Attached is a screenshot of what I really was hoping BuddyPress would have, a standard Ning feature, which allows you to select ‘private’, so the answer will only be visible to you and other administrators: http://csplacemaking.com/images/profile-questions.png. This is the ideal solution.

    @hnla

    Participant

    No such thing sadly; you could ensure the fields are in a specific group of their own and then wrap that in a if is_admin check so only admins can read, if you are creating a theme for general use and wouldn’t know the field names then you may need to write a function of some description with dashboard option settings to manage things or check what BP plugins are available in the ‘privacy’ genre and see if they offer any greater control.

    @djpaul

    Keymaster

    In BP 1.6, we’ve added profile field visibility (privacy); ‘anyone’, ‘logged in users’, ‘my friends’. Try it out on testbp.org when you edit your profile. Not quite what you’ve asked for, but it should open up a new range of possibilities for plugin authors to filter things further.

    @aces

    Participant

    @mysmallbizu

    Participant

    Is there a way to isolate the notifications from the other profile settings?

    I’m using amember V4 to manage registration and subscriptions everything is working correctly except for 1 thing… The “settings” menu in the subscribers user profile goes to a blank white page “404” is the error I get.
    for example…

    http://www.mysmallbizu.com/directory/subscribersusername/settings/

    The other issue is that because amember is handling the login and registration/ username and password etc. I’d only like the user to be able to edit their notifications from this menu… Not their U and P: is there a way to do this?

    @aces

    Participant

    @mysmallbizu
    Please don’t hijack another thread with a different problem. It would be better start a new topic!

    @mysmallbizu

    Participant

    My apologies :-)

    @tux-kapono

    Participant

    Here’s what my developer came up with, though I sure would prefer this solution in the long term: http://csplacemaking.com/images/profile-questions.png. I can’t understand why anyone would be OK with their birthdate publicly displayed. Anyway it’s a hack, but it works…

    She put it in the CSS file, and you have to know the numeric field IDs. Scroll to the end of the themes/[your theme, in my case, Tachyon from Rocketthemes]/css/template.css file and adjust the following code:

    .controlwidget {display: inline-block; float: left;margin-left: 1px;}
    html body table.profile-fields tr.field_3, html body table.profile-fields tr.field_3 * { display: none !important; }
    html body table.profile-fields tr.field_2, html body table.profile-fields tr.field_2 * { display: none !important; }
    html body table.profile-fields tr.field_15, html body table.profile-fields tr.field_15 * { display: none !important; }

    @tux-kapono

    Participant

    aces, that’s a good option, but many simply don’t even want to have to adjust their settings to hide what they view as very private data, and many won’t even check until they get someone telling them, “Hey, did you know a lot of your private data is showing on your profile?” By then, trust is lost, often permanently.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How to hide profile fields from displaying publicly? Like ’birthdate’?!’ is closed to new replies.
Skip to toolbar