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.
Yeyo!
works perfectly! thanks Burt
your title should be changed from “moderator” to “Master of the Universe”
I used to think I was General Manager of the Universe. That just got me into trouble. Glad it works.
Does this mod work in 1.0.1? Thanks.
This works on 1.0.1 …just what I was looking for!!!
Can anyone turn this into a plugin?
I want to implement this mod today, has anybody tried it with 1.2?
The ‘is_public’ column got removed a while back, so no. bp_field_has_public_data() looks like it now returns if the particular profile field has any data set… it isn’t actually used anywhere in the core, so I guess it’s an old function.
@enlightenmental1
15 years, 8 months ago
Needed:
filter for the bp-xprofile to hide and disabled profile fields if the profile field name is given? (hide so only level 10/admin can see, disable so it cannot be changed)
i.e.
if xprofile field = referred by, last name
remove filter… add filter…
then I can hide the profile fields on the member page after a user has registered…
(dont want to show the world last names or referred by #)
this probably easy enough for one of you gurus… let me know what you think