Search Results for 'hide fields'
-
AuthorSearch Results
-
December 10, 2010 at 3:54 am #100192
In reply to: Hide some profile fields
vorkun
MemberYeah I am trying to do this also. Any one found out a way to do it yet?
November 18, 2010 at 8:56 pm #98625In reply to: Hide profile fields?
eljustino
MemberThanks for the response, @nahummadrid.
I’m actually thinking about some data that the users wouldn’t input, but rather that would be generated by another process and linked to their account. I thought the profile would be an idea place to include that info.
November 18, 2010 at 8:52 pm #98623In reply to: Hide profile fields?
Nahum
Participantyou could try this https://buddypress.org/community/groups/bp-profile-privacy/ and set those two fields for just user view. I mean if you really don’t want user themselves to see something they’ve inputted I guess you could use CSS to display:none for that field.(thats not the best way) but I would want to know where information I input went to,
so in those 2 fields description you can say this is only visible to them from the profile page.November 15, 2010 at 1:56 pm #98304In reply to: New Group creation fields
David
Participant@boonebgorges My plan has hit a snag. I am having trouble using what you gave me above to include more then one set of form markups. Let me explain…if I include something like
function bbg_extra_group_fields_markup() {
?>October 14, 2010 at 1:21 pm #95153In reply to: Multiple registration pages
Hugo Ashmore
ParticipantLook at your bp admin section, you will see the custom profile link you use that to create new groups and fields, as long as a new group is created under the ‘Base’ level then it will appear on the registration page.
@dorothysulzmann
As a workaround I would move the three type selections labeled ‘Fan off’? to just after the primary details and use the tree types as just that to confer a user type to each member but also run a simple jQuery show/hide on the further groups so all are hidden and then a check is performed to catch the radio selection and the appropriate group revealed with perhaps a ‘none’ control selection default.The proper approach would be to complete a section and then pass the form control fields in a session or buffer to the next view to complete further sections but with BP that will likely start to get complicated, as techguy says there is no quick easy way to do this but with client side scripting it wouldn’t be that difficult.
October 12, 2010 at 2:40 am #94899paulhastings0
ParticipantDOB should never be displayed. In fact that’s not even a default BuddyPress registration option. Did you add in some registration fields of your own or did the Thesis theme?
August 15, 2010 at 7:21 pm #89206In reply to: Need to check if bp_profile_field_data() has data
Roger Coathup
ParticipantI’m not really sure what you are trying to do with your code. Whereabouts are you trying to hide fields with no data? In the default theme profile-loop.php, fields without values are already not displayed.
As for quick fixes: You’ll need to replace ‘your-field-id’ with a variable that’s got the field id in it. You’ll also need to write valid PHP e.g. closing the PHP code before beginning your html. I’d steer clear of inline style definitions as well; the default BuddyPress theme comes with a comprehensive set of CSS files, and you’d be better augmenting these with style definitions.
Unfortunately, this forum isn’t really the appropriate place for PHP coding tutorials – You might be better reading up on PHP before attempting to modify the theme templates in any depth.
August 15, 2010 at 2:45 pm #89176In reply to: Need to check if bp_profile_field_data() has data
Roger Coathup
Participantin your child theme, wherever you want to hide fields that have no data, you can put a simple if statement, something like:
if (bp_get_profile_field_data(‘field=your-field-id’) === “”) :
// don’t display code
else:
// display code
endif;Which file to edit, all depends where it is you are wanting to display / hide the profile field. The most likely file for displaying profile fields is profile-loop.php in members/single/profile, but that already skips blank fields (using a call to bp_field_has_data(); that function has to be used inside the profile field loop).
August 13, 2010 at 6:24 pm #89001In reply to: Hide profile field
nickmy
ParticipantAugust 13, 2010 at 6:08 pm #88998In reply to: Hide profile field
r-a-y
KeymasterTested just now, works for me.
You need to use the profile id #.Go to your profile field setup and check the ID by putting your mouse over the “Edit” field. The ID # is field_id.
For example, “Name” is 1.Either that or go to your DB and manually look up the profile field id in the wp_bp_xprofile_fields table.
You can also use any profile template tag and do your conditional.
If you wanted to use the profile name, use bp_get_the_profile_field_name() instead.
August 12, 2010 at 6:31 pm #88868In reply to: Hide profile field
r-a-y
KeymasterYou have to ask 1000 and 1 times!

You have to modify the profile loop (/members/single/profile/profile-loop.php)
Change this line:
while ( bp_profile_fields() ) : bp_the_profile_field();to:
while ( bp_profile_fields() ) : bp_the_profile_field(); if ( bp_get_the_profile_field_id() != 'ID # YOU WANT TO SKIP' ) :then change the corresponding endwhile; line to:
endif; endwhile;—
That’s one way of doing it.
August 12, 2010 at 3:10 pm #88840In reply to: Hide profile field
nickmy
ParticipantJuly 26, 2010 at 3:51 pm #87069In reply to: Hide some profile fields
nickmy
Participantno I just need a little hack… It must be visible when I use this:
/***
* If you’d like to show specific profile fields here use:
* bp_profile_field_data( ‘field=About Me’ ); — Pass the name of the field
*/May 27, 2010 at 7:02 pm #79920In reply to: Buddypress Classifieds?
justbishop
MemberThanks

I was actually coming to post that I didn’t really need it any more, but it’d still be useful info I suppose.
In my case, the actual “blog” part of the main blog wasn’t being used for anything, so I’m just using that as the classifieds post system. I have custom fields set up (custom field template plugin) for users to call their remotely hosted photos, and am using a combo of the Members and Adminimize plugins to hide admin panel stuff that they don’t need to see. I also had to do some editing of the core wp-admin/edit-users.php to get rid of unnecessary profile fields in the backend, but nothing too bad that it can’t be redone after an update.
May 25, 2010 at 2:54 am #79548In reply to: Hide some profile fields
mrjarbenne
ParticipantHere’s that plugin I was referring to: https://buddypress.org/community/groups/bp-profile-privacy/
May 23, 2010 at 3:18 pm #79336peterverkooijen
Participant@thelandman, in my solution I use javascript to generate the username from the weird semi-optional xprofile fullname field, hide the username field on the form, use the email login plugin so members don’t need the username to log in, add more custom code to synchronize the fullname and the fullname-derived username to all the various similar fields in the database, etc. It’s messy, but somewhat workable.
The point is that it should not be that hard. Using full names, Firstname Lastname, should be part of the core. Seeing that none of this is fixed in 1.2+ and probably will never be fixed, I have no plans to upgrade to newer versions of Buddypress and will continue developing my version as a fork, more suited for professional and business use. If anyone is interested in working with me on that, please contact me directly.
May 23, 2010 at 2:49 am #79263In reply to: Hide some profile fields
mrjarbenne
ParticipantI use a Profile Privacy plugin created by http://www.jfarthing.com/. Sadly, the link to the plugin in my dashboard comes up 404 in the wp repositorty, and I can’t seem to find reference to it on his site. That said, the plugin allows for you to manage who can see certain fields in the profile (everyone, friends, user). When profile fields are set to “user” only the user and the site admin can view the info. Perhaps an attempt to contact jfarthing will met results. Good luck.
May 22, 2010 at 4:52 pm #79208In reply to: Hide some profile fields
nickmy
Participantplease its important
May 18, 2010 at 9:55 pm #78776Paul Wong-Gibbs
Keymaster@bofw Ah, there you are. Was wondering when I’d find your username on here.
Sarah – are you trying to hide particular fields, or field groups, on the ‘edit profile’ page?
May 12, 2010 at 5:25 pm #77819In reply to: Hide some profile fields
nickmy
Participantno ideas?
I thought I could maybe solve it with a little php snippet but my knowledge isnt very good
May 9, 2010 at 4:52 pm #77344rossagrant
ParticipantGreat idea,
Yeah it would be good to somehow hide the first and last name fields and have them filled with copies of the username somehow.
Let me know how you get on!April 23, 2010 at 3:26 pm #74886In reply to: Badge Maker
gregfielding
ParticipantI’m playing with 1.3 and it’s working great…
2 suggestions:
1. Create an option in the admin menu to hide the names of the profile fields. Most of the fields are pretty self explanatory anyway and the extra words just clutter things up.
2. Create an extra field for users to type in a short message or description, giving them some other way to personalize their badge.
It looks great warut!
April 16, 2010 at 12:26 am #73740Gene53
ParticipantDone, thanks again.
Gene
April 16, 2010 at 12:03 am #73736jivany
ParticipantSo it works? Tag the topic as resolved.
April 15, 2010 at 2:50 am #73585Gene53
ParticipantBelieve it or not, it didn’t work when I changed Username for 1 but it did when I added ,3 (still don’t know what the 3 is for, LOL).
Does that mean I don’t really need the funky function and simply change the <input type=”hidden” … > in edit.php or should I just leave things as they are now that it seems to work?
EDIT: when I added ,3, I couldn’t change the value of the next field and “1” still gives me the error…
EDIT 2: ROFLOL, it didn’t work because I omitted the , (colon) after the 1. Now everything seems to work.
Thanks again, I really appreciate your help.
Gene
-
AuthorSearch Results
no answer