Skip to:
Content
Pages
Categories
Search
Top
Bottom

WP + BuddyPress Private Profile Fields

  • @freebee1989

    Member

    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)
  • @r-a-y

    Keymaster

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

    @freebee1989

    Member

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

    @e_mcpartlin

    Participant

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

    @pedromiguel

    Participant

    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.
Skip to toolbar