Search Results for 'profile fields'
-
Search Results
-
Topic: delete user profile fields
Hi there.
I installed the Sweet Date theme and all the plugins, eg BuddyPress, and wanted to edit the profile fields and add new ones.
Then something happendes, and suddanly I had 2 of everything – one in Danish and one in English – and now I cant delete any of them?!
So when u go to the webpage, under the profile, you see 2 of everything, even though they’re not even active in the settings – how do I delete them?!?!?Thank you 🙂
I am trying to show the field/fields that are required, but do not have any data.
The following works when they are not set (during the members first visit to the site)
//Check For Mandatory Profile fields - $has_profile_pic = get_user_meta(bp_loggedin_user_id(), 'has_avatar', true); $has_cph_maxtopay = xprofile_get_field_data('Cost Per Hour'); $has_age_ranges = xprofile_get_field_data('Age Ranges Of Children Able To Sit'); $has_age = xprofile_get_field_data('Age'); $has_suburb = xprofile_get_field_data('Suburb'); $has_mobile = xprofile_get_field_data('Mobile Phone Number'); $has_gender = xprofile_get_field_data('Gender'); $member_type = xprofile_get_field_data('Member Type'); //Check to see if profile items are set //If not get error on screen to display if (empty($member_type)) { $error = $error + 1; $error_text = $error_text .'<li>Member Type</li>'; } else { if (empty($has_cph_maxtopay)) { $error = $error + 1; $error_text = $error_text .'<li>Cost Per Hour/Max To Pay</li>'; } if (empty($has_age_ranges)) { $error = $error + 1; $error_text = $error_text .'<li>Age Ranges Of Children Able To Sit/Age Ranges of Kids</li>'; } if (empty($has_age )) { $error = $error + 1; $error_text = $error_text .'<li>Age</li>'; } if (empty($has_suburb )) { $error = $error + 1; $error_text = $error_text .'<li>Suburb</li>'; } if (empty($has_mobile )) { $error = $error + 1; $error_text = $error_text .'<li>Mobile</li>'; } if (empty($has_gender )) { $error = $error + 1; $error_text = $error_text .'<li>Gender</li>'; }I know I’m probably using the wrong function, but the xprofile_get_field_data will return the currently saved item for a user. Hence the reason why it works so well on a new user, the fields are emtpy. I want to check on the unsaved data when they click on save as well, so that I can show them what field is in error, and also highlight the field as well, so they can be guided visually to fill it in.
IE They clear their cost per hour value, and I want to tell them it’s empty, and not just the generic Please make sure you fill in all required fields in this profile field group before saving.
Let me know where I am going wrong with this.Hi Guys,
Google and the search function here weren’t helping me, so hopefully this hasn’t been covered here a million time before.
In the profile loop is it possible to exclude showing one field based on the value of another?
I’m aware of plugins to change visibility of fields, and I am using one, but in this particular instance I would like an admin to be able to check a radio button when editing a profile to prevent a single field from showing for some users some of the time.
For an example – I have an extended profile field called “Twitter” – and I’d like to have an extended profile field called “Show Twitter” with options of Yes or No. If the admin selects No, then the Twitter field doesn’t show up on the profile page.
Hopefully I’ve explained this correctly.
Is there a way to do this within profile-loop.php?
Hi,
I would like to add xprofile fields to each member in a group’s list of members. I have been able to add fields to the members directory, like this:
function my_diretory() { if ( $member_type = xprofile_get_field_data( 'Type', bp_get_member_user_id() ) ) : echo '<br/><div class="type">'; echo "Member type: "; echo $member_type; echo '</div>'; endif; } add_filter ( 'bp_directory_members_item', 'my_directory' );But, how do i add this info to list of members of a group?
If anyone can help, i will be eternally grateful!!!!
Thanks in advance!
Hi,
I am interested in adding xprofile fields on the list of members of a group. Some examples include: gender, age, interests, etc.
Any help is sincerely appreciated!
Thanks in advance!
I added the following code (from this post) to enable email addresses in user profiles – which works but only when a user is logged in.
How can I change it to show the email address regardless of whether one is logged in or not?
function tiquality_add_custom_field() { if ( bp_is_active( 'xprofile' ) ) : if ( is_user_logged_in() ) { ?> <div class="bp-widget <?php bp_the_profile_group_slug(); ?>"> <table class="profile-fields"> <tr class="my_mail"> <td class="label">Contact me</td> <td class="data"><a href="mailto:<?php bp_displayed_user_email(); ?>"><?php bp_displayed_user_email(); ?></a></td> </tr> </table> </div> <?php } endif; } add_action('bp_profile_field_buttons', 'tiquality_add_custom_field');I tried deleting the line…
if ( is_user_logged_in() ) {but it took down the whole site.
WP v 4.7.1
Topic: Sorting members list by job
Hello,
I am using BP 2.7.4 and the most recent WordPress version (4.7.1).
The registered members all need to fill out the profile field “Tätigkeit”, which is basically “job” in english. I added the job information to each profile in the members-loop now.
People are supposed to search for job-names and find every member, that has the keyword in any of their profile-fields (I did all that with BP Members Search already).
Now for a better overview, I want all the people with the same job listed underneath each other, e.g. at first everybody with party-location-rentals as their job, then everybody with party-catering as their job, etc.
This would be easy to archieve, if I was able to just sort the members by their job and in a alphabetical order. At the moment, the are ordered alphabetically, but by their name.How can I just switch the attribute they are sorted by from username to the field Tätigkeit? I have been digging through a bunch of php files lately, but couldn’t find the responsible one yet.
I will appreciate every reply that gets me a little closer to solve my problem.
Thanks in advance and have a good time!Hello everyone! I guess this is not a common issue, I haven’t found anything to solve this. I got 3 sites in a multisite wordpress system. some of the main site users will access the other ones. They need to have their profile in all of the sites. so far I managed to get the custom fields data but can’t get the avatar. Any hint?
Thanks
I have a BuddyPress profile form that currently has fields being shared between different member types, so they can be forced to be mandatory.
I would like field A (highlighted) to be able to change the labels/legends highlighted with B, so that once a user selects a value I can show the relevant text (which needs to change for each drop down value)

I already have PHP code to control these labels AFTER the user has selected a member type, I just need to know what to before hand, before they save these values.
The first field is field_6.
The second is field_19 The third is field_505 The fourth is field_56
I believe a javascript piece of code would make this work appropriately, but is not my strong suit programming language wise.
I set up a secondary set of ‘hobbies/interests’ to select multiple via checkbox. When a user checks a dozen of them.. they get displayed on the profile page as a Comma Separated Paragraph.
using 2104 theme..
so i get:
Base
profile f 1 – name
profile f 2 – state
Interests/Hobbies
blah blah,blah, blah blah,
blah, blah blah, blahhow do I tell the member profiles page to display these as a ul / li I guess?
Interests/Hobbies
blah blah
blah
blah blah
blahAny info appreciated,
Steve
Topic: Registration page issues
Wordpress 4.6
Buddypress latest version
http://www.ankspon.co.uk/register1. I would like to hide this text that appears on the profile details section of my registration page. “This field can be seen by: Everyone” – It makes the registration form messy. How do I hide it?
2. Where can I edit the text that appears at the top of this page, supplied by the buddy press plugin? “Registering for this site is easy. Just fill in the fields below, and we’ll get a new account set up for you in no time.” – I can’t see it in the plugin or page.
Thanks
FreddyHello, im using woffice and i want the user to change his password and profile picture only from the front end .
i dont want him to :
– change his name
– edit anything in (Editing ‘Base’ Profile Group)
– change his email .
– change anything in (Send an email notice when: )
i have this link :
https://buddypress.org/support/topic/dont-allow-users-to-change-some-fields-after-sign-up-hide-those-fields/
but i don`t know if it will be like my customization
thanks so much.—————————-
1. Which version of WordPress are you running?
WordPress 4.7 running Woffice Child theme.6. Which version of BP are you running?
2.7.410. Which theme do you use ?
woffice11. Have you modified the core files in any way?
yes12. Do you have any custom functions in bp-custom.php?
i dont think so13. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
bult in15. Which company provides your hosting?
sitegroundTopic: Profile is not working
I clicked on the Extended Profiles to Customize my community with fully editable profile fields that allow my users to describe themselves, but it is not working. The profile menu link does not work when you click on it. How can I fix this error.
Hi all,
I am just wondering how I can have different extended profiles for different member levels? I am using Paid Memberships Pro and have 2 different membership levels, a free “Clients” level and a paid “Artists” level. I need the clients to have different profile fields than the artists. The clients just need some basic information about them where the artists will have much more to fill in. Things like different types of art they do or what studio they currently work at etc. Obviously the free clients don’t need these types of fields in their profiles.Hope this makes sense.
Thanks,
JohnnyI am trying to get around different fields being required in different member types, by trying to change the label of the field for a specific member type
When using the following code, it changes the name of the field, and not just the label!
Any Tips, please.
I have it visible to all users, and will display in the backend as Cost Per Hour when it is edited (shows the other name when not edited).function filter_bp_get_the_profile_field_name( $field_name ) { // make filter magic happen here... $user_id = bp_loggedin_user_id(); $bp_user_member_type = bp_get_member_type($user_id); // field name (case sensitive) // if ($bp_user_member_type == 'parent' ) { if( $field_name == 'Cost Per Hour') { $field_name = 'Maximum Amount To Pay For Sitting'; //var_dump($field_name ); //die("filter_bp_get_the_profile_field_name"); } // } return $field_name; }; // add the filter add_filter( 'bp_get_the_profile_field_name', 'filter_bp_get_the_profile_field_name', 10, 1 );