Search Results for 'profile fields'
-
AuthorSearch Results
-
October 7, 2018 at 11:15 pm #278299
In reply to: Hide profile fields from editing for specific users
Prashant Singh
Participantfunction ps_hide_profile_edit( $retval ) { // remove field from edit tab if( bp_is_user_profile_edit() && !current_user_can('edit_users')) { $retval['exclude_fields'] = 'field_id'; // ID's separated by comma } // allow field on register page if ( bp_is_register_page() ) { $retval['include_fields'] = 'field_id'; // ID's separated by comma } return $retval; } add_filter( 'bp_after_has_profile_parse_args', 'ps_hide_profile_edit' );Please try this snippet.
Thanks
October 4, 2018 at 8:25 am #277182In reply to: Hide profile fields from editing for specific users
Prashant Singh
ParticipantHi,
Please try this plugin https://wordpress.org/plugins/buddypress-admin-only-profile-fields/
The UI is changed now so you will find the option in visibility drop-down.
Thanks
October 4, 2018 at 3:49 am #277172olandir
ParticipantI have a corporate Intranet running on WordPress 4.9.8 and BuddyPress 3.1.0
I have specific xprofile fields that I’d like only editable to people who have the “Edit Users” capability.
I’ve seen snippets of code here or there that almost do what I’m looking for but everything I’ve found is old and out of date.
Could someone help me with this.
Basically I need the PHP equivalent of
If we’re on the edit BuddyPress profile page AND user does not have the “edit users” capability then hide profile fields with X id(s).
I’d also be happy with specifying a role instead of capability as long as I can specify multiple role ids.
Thank you in advance.
October 1, 2018 at 9:25 pm #276906In reply to: Creating members outside of theme
Scott Thomason
Participantbp_core_screen_signup() does several other things besides creating the user and saving xprofile fields…it does validation, optionally creates a user blog, provides several action hooks, etc. Are you saying it’s just not practical to use it?
October 1, 2018 at 8:57 pm #276902In reply to: Creating members outside of theme
Scott Thomason
ParticipantBut I also need to save some xprofile fields programmatically, too. Won’t I eventually have to run bp_core_screen_signup() in order to “fully create” a BP member profile?
October 1, 2018 at 3:13 pm #276890In reply to: Profile Info such as About
Prashant Singh
ParticipantHi,
You just need to create a profile field. Please go to your dashboard and find xprofile fields under ‘Users’ menu and there add a new field and name it About and in field type you can choose multiline text area.
As soon as it is created you will be able to see it on signup form(register form) and profile itself.
Thanks
September 26, 2018 at 3:25 pm #276816In reply to: Members Masonry – Element
Prashant Singh
ParticipantPlease check this thread once: https://buddypress.org/support/topic/line-breaks-in-profile-fields-descriptions-not-showing/
Thanks
September 25, 2018 at 8:45 pm #276781In reply to: Field for data processing
Prashant Singh
ParticipantYou can go with this plugin https://wordpress.org/plugins/buddypress-admin-only-profile-fields/ to set the visibility to hidden/admin only.
Thanks
September 25, 2018 at 8:08 am #276725Prashant Singh
ParticipantOk, got that.
Please check this thread: https://buddypress.org/support/topic/adding-xprofile-fields-to-members-directory-list-items/
Thanks
September 24, 2018 at 11:09 am #276683In reply to: Two membership directory
pavelmititel
ParticipantThanks, but isn’t enough..
Here is beta version for my website: http://beta.onemillionnights.com
To be more specific:
I need two members directory, one for free level and one for levels which requires payment with different settings and fields. For example Advisors are displayed on ADVISORS page and they are specific field & settings on profile and CLIENTS are displayed on another page with their’s specific field & settings on profileSeptember 22, 2018 at 10:45 am #276651In reply to: Active directory infos in the BP cover options
Prashant Singh
ParticipantHi,
Please try to use this plugin https://github.com/wbcomdesigns/bp-modify-member-directory-header
It says that it allows showing profile fields on members directory and profile’s header.
Thanks
September 21, 2018 at 6:01 pm #276635In reply to: recover accidentally deleted user profile field
r-a-y
KeymasterUnless you have a database backup from the previous day that you can revert to, then no, it is not recoverable.
It looks like you have a database backup, the DB tables you would want to revert and replace are “wp_bp_xprofile_fields” and “wp_bp_xprofile_groups”. You would have to contact your web host to figure out how to use your backup.
The delete confirmation sounds like a good idea though.
September 21, 2018 at 12:42 pm #276630aldorr
ParticipantYou can try placing this in the functions.php of your Child Theme. Though for buddypress you might want to use
bp_get_profile_field_datainstead ofxprofile_get_field_data.
I’m trying to do something similar, but the fields are not showing up in my email. I have a feeling the email is getting sent before the database is updated, but for the life of me, I can’t get them… Good luck!September 19, 2018 at 9:01 pm #276591In reply to: Members listing and sorting
Prashant Singh
ParticipantHi,
You can create xprofile fields to save there data and then can search them on the basis of those fields under members directory using this plugin https://wordpress.org/plugins/bp-profile-search/
Thanks
September 19, 2018 at 8:44 pm #276584In reply to: Active directory infos in the BP cover options
Prashant Singh
ParticipantHi,
If you are able to retrieve those fields then you can easily show them on members’s profile. You just have to override profile template from Buddypress in your child them then just fetch and echo out these values in proper HTML.
Thanks
September 18, 2018 at 8:26 am #276539ajuuls
ParticipantNicely done. You do still se an empty area but it’s only a second before redirect. I can live with that.
When people register they se their username as H1 under their “Profil” (Profile), is it possible to change so the H1 automatic picks the Full name instead? I’ve created one named Fulde Navn (Full name) in Users –> Profile Fields.
So this new user:
http://www.legit-check.dk/medlemmer/rasmus94/
Gets “Rasmus Hansen” as H1 and not his username.Like my user:
http://www.legit-check.dk/medlemmer/legit-check-dk/
(changed it from WP) but it will take long to change every new registred member -.-September 6, 2018 at 9:56 pm #276175In reply to: Registration with Contact Form 7
Prashant Singh
ParticipantHi,
If you want to go with the contact form plugin then there is no need to select a registration page in BuddyPress amd have to use shortcode on the page and then create a button on header(as you like) and link it to the register page.
Now, if you want to save data in xprofile fields then have to do custom coding for sure.
Thanks
September 5, 2018 at 3:30 am #276138In reply to: Creating a profile field that only admin can edit
groston
Participantshanebp,
Thanks for the prompt reply.
The fields that I see in wp-admin > users > edit are all xprofile fields and I do not know how to add usermeta fields. I did see several plugins that provide this functionality, but I am wondering if suchs plugin would play nice with BP.
It would be easy enough to directly edit the database in the manner your suggested, but that is not the right way to handle this. Would you please provide a little more guidance?
September 3, 2018 at 10:17 am #276106In reply to: WordPress profile files to bp
Prashant Singh
ParticipantYes, this is how it works.
It will need customization to map WordPress fields to BuddyPress xProfile fields.
You can check this plugin https://profilepress.net/downloads/wordpress-buddypress-extended-profile-sync/ as well.
Thanks
August 31, 2018 at 6:46 pm #276063In reply to: WordPress profile files to bp
matthewgrutledge
ParticipantIt won’t let me edit the post: I have fields in the WordPress profiles I’d like to be viewable and editable through the buddypress profile page, but the only way I can see is creating new profile fields which I can’t seem to link to the existing WordPress profile fields. Which means I’d have to manually copy date from the profile to the buddypress profile fields.
What am I missing?August 28, 2018 at 8:46 am #275966In reply to: Welcome Form on WP Page
rebeccadigitalsea
ParticipantHello, thank you very much for getting back to me – unfortunately I’m still unable to connect the upload to the action. The site is allowing me to upload an image and it’s registering the upload but then the image just seems to disappear and not update the profile.
Also, the profile fields redirects to /welcome/profile/edit/group/1 which therefore produces a 404 error.
August 27, 2018 at 6:30 am #275938Prashant Singh
ParticipantIt will be custom work. You can add this code snippet in your child theme’s functions.php to achieve this:
add_filter('bp_core_signup_send_validation_email_message','ps_user_data_to_email',10,2); function ps_user_data_to_email( $msg, $user_id ) { $user = get_user_by( 'id', $user_id ); if(!empty($user)) $data1 = xprofile_get_field_data('your_first_field_name',$user->ID); echo 'Your Profile Field Name'. ' : '.$data1; $data2 = xprofile_get_field_data('your_second_field_name',$user->ID); echo 'Your Profile Field Name'. ' : '.$data2; }You can do this for all the profile fields by just repeating the code to get data3 data4 like I did for data1 data2 and obviously you have to use your profile fields name in place of ‘your_first_field_name’, ‘your_second_field_name’ and ‘Your Profile Field Name’.
Thanks
August 26, 2018 at 9:13 pm #275917In reply to: Profile fields
Prashant Singh
ParticipantPlease check this plugin https://wordpress.org/plugins/bp-xprofile-custom-field-types/.
They are already adding profile fields with select2 js support, mentioned in the features as well.
Thanks
August 26, 2018 at 7:39 am #275906Lars Henriksen
ParticipantThanks for answering, but there are no tokens for custom xprofile fields?
August 21, 2018 at 8:23 am #275803In reply to: Some Base Titles don’t appear in profiles
Prashant Singh
ParticipantHi,
It’s just a style issue. Please paste the following CSS:
.profile .profile-fields td.label {
background: #f5f5f5;
color: #707070;
}Hopefully, it will fix your problem.
Thanks
-
AuthorSearch Results