Skip to:
Content
Pages
Categories
Search
Top
Bottom

WP + BuddyPress Private Profile Fields

  • Profile photo of freebee1989
    freebee1989
    Member

    @freebee1989

    Hi, am trying to follow the following directions as supplied here:

    http://buddypress.org/forums/topic/faq-how-to-code-snippets-and-solutions

    The theme and the profile back end don’t support this right now but there is a mod you can try.

    Change line 11 which reads:

    <?php if ( bp_field_has_data()) : ?>

    To read:

    <?php if ( bp_field_has_data() && bp_field_has_public_data()) : ?>

    In /bp-themes/buddypress-member/profile/profile-loop.php

    Then you will manually have to use phpmyadmin and go into the table bp_xprofile_fields and change all the profile field records that are parent fields and have ‘0’ in the column ‘is_public’ to ‘1’ for the fields you want to show on the profile and ‘0’ for the fields you don’t want to show.

    Parent fields are the ones that have a ‘0’ in the ‘parent_id’ column.

    However, there is no ‘is_public’ field in my latest copy of WordPress + BuddyPress…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Profile photo of r-a-y
    r-a-y
    Moderator

    @r-a-y

    That code snippet probably applied to an older version of BP.

    Profile photo of freebee1989
    freebee1989
    Member

    @freebee1989

    Okay, thanks! Anyone have any idea o how this can be done now?

    Profile photo of e_mcpartlin
    e_mcpartlin
    Participant

    @e_mcpartlin

    Was this ever solved? I am trying to accomplish the same thing – make some profile fields private. Thanks!

    Profile photo of Pedro Miguel
    Pedro Miguel
    Participant

    @pedromiguel

    theres already a plugin who does that, ,you can use the plugin or check the source and adapt to your needs.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP + BuddyPress Private Profile Fields’ is closed to new replies.