Search Results for 'profile fields'
-
AuthorSearch Results
-
November 1, 2017 at 12:15 pm #268754
amitrwt
ParticipantI want to set a profile field where a user will list his experience in a particular organization. From and To.. I tried Date -> Range but it just renders single dropdown. The best possible scenario would be having a datepicker with range.?
I’ve installed BuddyPress Xprofile Custom Fields Type but even this doesn’t have a range date picker.
Anyone has any suggestion/solution would be appreciated.October 30, 2017 at 3:47 pm #268725In reply to: Paid Membership Pro and Buuddypress – Registration
willallen83
ParticipantI struggled with this for weeks. It never worked out well for me.
I used the Register Helper add-on plugin to add custom fields to the PMPro registration. I tried the above mentioned fixes, but nothing I tried let the PMPro registration process communicate with the BuddyPress (basically, I wanted one registration page to fill out the BuddyPress profile AND the necissary PMPro info).
Whichever way I tried it, they remained seperate. Of course, the PMPro registration process did add the user to BuddyPress, but with an empty profile, regardless of the custom fields that I added.FINALLY, after MANY hours of working with this, I tried s2Member. This plugin is much more involved to configure, BUT it works perfectly AND integrates well with MailChimp. So now, I not only have integration with BuddyPress (specifically the profile, although the display is a bit off), but also with Mailchimp. And, this means that I can have different mail-lists or mail-list groups within Mailchimp! Perfect 🙂
Basically, what I am saying is that if you want a better integration, go with s2Member.
Note: I did not pay the $300 / year for paid membership pro support (too expensive for me), maybe they would have been able to help me resolve this issue. I did scour the forum and glean every bit of info I could to solve this without paying, but to no avail. BUT, with s2Member, it is free AND only $80 one time for the Pro version of the plugin.
Good luck!
And, if anyone sees this and has a solution, please add. As people (I assume because I was) are still looking for a solution.
October 30, 2017 at 3:25 pm #268723michaeltcarlson
ParticipantThanks so much for the solution above. How can I modify the code to apply only to a specific page:
.field-visibility-settings-toggle {
display: none !important;
}
.field-visibility-settings-notoggle {
display: none !important;
}In my case, I’d like “This field can be seen by Anyone” removed from the registration page (#371), but still be visible on a users profile, thus giving users some control over the privacy levels of their fields.
Thanks in advance for the assistance.
October 25, 2017 at 7:34 pm #268667David Cavins
KeymasterYou can save extra things manually on the
bp_core_signup_userhook:
https://buddypress.trac.wordpress.org/browser/tags/2.9.1/src/bp-members/bp-members-functions.php#L1900But I imagine that the simpler answer would be to use Profile Fields. If you add profile fields to the base group, then they appear on the registration form and are saved at signup. https://codex.buddypress.org/administrator-guide/extended-profiles/
Best,
-David
October 24, 2017 at 9:10 am #268643In reply to: Profile fields to appear in directory
sostenibles
Participant@shanebp Thank you very much for your reply.
I got the correct file and issue is solved.
Problem was because fields indicated in the code have to be exact to the field name, and that includes both spaces and accents.
I am displaying more than one field now, and code looks like this (see the accents and spaces!):<?php bp_member_profile_data( ‘field=Área de negocio’ ); ?>
<br>
<?php bp_member_profile_data( ‘field=Comunidad Autónoma’); ?>
<br>
<?php bp_member_profile_data( ‘field=La empresa’); ?>October 10, 2017 at 6:25 am #268427In reply to: BP sign up page in two rows
metalhead
ParticipantPut it all in one column:
/* Aligns Registration Profile Details fields to the left */ #buddypress .standard-form #basic-details-section, #buddypress .standard-form #blog-details-section, #buddypress .standard-form #profile-details-section { width: 100%; } #profile-details-section { margin-top: 20px; }And the finish button too (recommended):
#buddypress .standard-form#signup_form div.submit { float: left!important; margin: -12px 3px 3px 3px!important; }That should line it all up in 1 row. Congrats on not paying someone $1000 for that info 🙂
September 28, 2017 at 9:26 am #268249In reply to: Custom profile properties
theredeclipse
ParticipantI come up with this piece of code, it just add class for fields but its enough for me
function bp_add_class($elements){ $elements['class'] = 'field'; return $elements; } add_action('bp_xprofile_field_edit_html_elements','bp_add_class');September 21, 2017 at 12:10 am #268147In reply to: Contact user
xmginc
Participant@flashvilla, hope this helps:
I’m using Gravity Forms to display a contact form on each member profile page and dynamically populating a hidden field with the member’s email address.
Here’s info on dynamically populating a field in GF
Their example:
add_filter( 'gform_field_value_your_parameter', 'my_custom_population_function' ); function my_custom_population_function( $value ) { return 'boom!'; }I have changed this to:
add_filter('gform_field_value_bp_member_email', 'bp_member_email'); function bp_member_email($value){ return bp_get_displayed_user_email(); }In Gravityforms, I have then created a hidden field and in the advanced tab of that field, checked “Allow field to be populated dynamically” and entered the “Parameter Name:” as “bp_member_email”
Then, in the notifications, the “Send to Email” should be changed from a standard email to a Gravityform tag. You can get that by clicking the little arrow key beside many fields such as “From Name” box. Find the name of your hidden field and click that. It should give you something like this: {BP Member Email:7} where “BP Member Email” is the name I gave the hidden field – yours will be whatever you named it.
You’ll also need to embed the form to your child theme: /themes/yourchildtheme/buddypress/members/single/home.php
Details on how to embed into your theme can be found here. Example: (where 1 is the ID of your form and 12 is the starting tabindex)
<?php gravity_form(1, false, false, false, '', true, 12); ?>If this worked, you can view the source code of the member page and you’ll see the member’s email as an input value in the hidden field.
Hope this helps!
Please note: if you can’t have the person’s email displayed publicly in the source code for privacy (even though it’s not visible on the site), you will need an alternative method. Members on my site all have their emails visible so it’s not an issue for me.
September 16, 2017 at 6:48 pm #268087In reply to: How to Edit Register Page?
xmginc
ParticipantNote some steps could be missing here but hope this helps with the general direction 🙂
1. Look for “Users” in left sidebar of WordPress wp-admin area
2. Click “Profile Fields” and there should be a box which you might have named “Terms of Use” – NOTE: if you changed the “Name (Primary) (Required)” to your terms of use field, you should change this back as it syncs with the person’s name
3. Click the blue button “Add New Field” and name it “By registering to ThoseCrazyVegans.net, you agree to the <a href="/terms-of-use/">Terms of Use</a>” (the title accepts HTML at least for now)
4. Then, choose “Checkboxes” for the “Type” below it and type “Yes, I agree to the terms of use” and don’t check Default Value
5. You can also choose “requirement” as required
6. Choose “enforce field visibility”
7. Then click updateI use a different method for registering but hope this helps.
(Sorry having difficulties posting to the forum. Apologies for duplicate replies… Wish there was a way to delete)
September 15, 2017 at 6:00 pm #268075In reply to: Multisite issue with profile syncing
xmginc
ParticipantUPDATE: found possible solution (?) by going into profile fields section in both dashboards and clicking “edit” and “update” for the required name section. This then appears to have reset things. Now the name updates in both Extended Profile tab and the WordPress default Profile tab when making an edit in the member profile page.
FYI: I have found several times now that there are strange quirks but I’m sure it is 99% user error (mine) but not everything is straightforward such as this above. To find this method took quite some time trying every standard option and the last was clicking every option over again…
September 8, 2017 at 2:34 pm #267962Peter Hardy-vanDoorn
ParticipantActually, ‘Admin’, ‘Everyone (Admin Editable)’ and ‘Only Me (Admin Editable)’ are not part of BuddyPress and are added by the plugin.
If you use the plugin and set the field visibility to ‘Only Me (Admin Editable)’ then the field will only be visible to the user and the Admin. You could also use the ‘Admin’ settings to, for example, add notes about the user that the user can’t see.
The plugin initially sets the admin to be the main admin account, but it gives this code snippet in its FAQs to enable you to set the capability required, so editors can also see the field:
function custom_profile_fields_visibility() { return ‘edit_others_posts’; // Editors } add_filter( ‘bp_admin_only_profile_fields_cap’, ‘custom_profile_fields_visibility’ );September 6, 2017 at 1:46 pm #267900In reply to: registration page styling
zo1234
ParticipantI use the #1 selling wordpress theme Newspaper by tagdiv, and it’s mainly the User Profile & Registration page that can use some tweaking. Also I wish there was a way or easy way to add more user fields to the Member Directory – like a responsive and sortable table format.
I appreciate the work that is put in to Buddy Press, the versatility of it, and that it’s a free plugin, but I think it is being short-changed by not having a premium version that can make it look ‘prettier’. Not sure who’s in charge of the business operations, but should consider a premium add-on for UI/UX. People really would pay for it. Look at Ultimate Member. Buddy Press has a leg-up on them because you have more scale-ability with all the 3rd party add-ons, better performance, and larger user base.
I have had to paid a php guy to customize it, but I need more customizations. This is the only plugin stopping my site from blowing up. Do any of you BPers do custom work? I’ll pay for any custom work to get the layout moved around on User Profile (https://ibb.co/gNat1v) + sortable table Member Directory.
I’d go with Ultimate Member for looks alone, but it slows the crap out of my site and it doesn’t have some of the BP add-ons I want. If Buddy Press looked like UM or BuddyBoss, but kept the drop down menu user section (like Twitter), I’d be your first paying customer.
August 31, 2017 at 9:21 am #267803In reply to: Hide a group of Profile Fields
artempr
ParticipantHi. If it still an issue , I d recommend you to look at bp-xprofile-settings.php
function bp_xprofile_get_settings_fields( $args = '' ) { //if u have ome custom user roles you can simply filter here which groups to hide if(!current_user_can("owner")){ $query='5,6,4'; }else{ $query='1,3,4,5'; } // Parse the possible arguments. $r = bp_parse_args( $args, array( 'user_id' => bp_displayed_user_id(), 'profile_group_id' => false, 'hide_empty_groups' => false, 'hide_empty_fields' => false, 'fetch_fields' => true, 'fetch_field_data' => false, 'fetch_visibility_level' => true, 'exclude_groups' => $query, 'exclude_fields' => false ), 'xprofile_get_settings_fields' ); return bp_has_profile( $r ); }August 29, 2017 at 11:47 am #267760In reply to: bp-custom.php in folder?
Carsten Lund
ParticipantI am looking at the thread “Adding profile fields to members directory”
https://buddypress.org/support/topic/adding-profile-fields-to-members-directory/You wrote:
There’s 2 ways of doing this.
1. You could modify the members-loop template (see the BuddyPress Template Hierarchy for details on how that’s done). See here. You would just add bp_member_profile_data( ‘field=the field name here’ ); to the template.
2. Add this to your theme’s functions.php file:
function add_info_to_members_loop() {
echo bp_get_member_profile_data( ‘field=the field name here’ );
}
add_action( ‘bp_directory_members_item’, ‘add_info_to_members_loop’ );Which template are you referring to in 1.?
can both code snippets be placed either in functions.php or bp-custom.php?August 22, 2017 at 9:36 am #267655Peter Hardy-vanDoorn
ParticipantTry this plugin. It hasn’t been updated for 2 years, but it works perfectly for me.
Adds these options to the visibility options: ‘Admin’, ‘Everyone (Admin Editable)’ and ‘Only Me (Admin Editable)’
Hope that helps
August 20, 2017 at 11:23 am #267623In reply to: Custom Code
Abdullah Al Mamun
Participant@peter-hamilton Im using BuddyPress Xprofile Custom Fields Type plugin too.
August 9, 2017 at 4:20 pm #267455In reply to: City, State, Country Location Plugin
udarmo
ParticipantDo you know if in DB all these fields are one long string?
I’m looking for same thing, but I want to search by several fields (BP profile search) and I don’t see how it works with it.August 3, 2017 at 4:20 pm #267371In reply to: Edit Profile Visibility Problems
r-a-y
KeymasterThis only takes effect for other created profile fields, not the “Name” field.
Try creating a new profile field and then you should be able to access the options you are looking for.
July 24, 2017 at 7:01 pm #267192In reply to: Remove Base
Aslan Guseinov
ParticipantHi, you can rename it.
Go to Users=>Profile Fields=>Edit Group.June 28, 2017 at 7:01 am #266722In reply to: How to add profile fields
wbcomdesigns
ParticipantJune 8, 2017 at 10:39 pm #266376coolhunt
Participant<table class="profile-fields"> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <?php if ( bp_field_has_data() ) : ?> <tr<?php bp_field_css_class(); ?>> <td class="label"><?php bp_the_profile_field_name(); ?></td> <td class="data"><?php bp_the_profile_field_value(); ?></td> </tr>I found this at bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.php
I have no idea about HTML.. any tips?
May 29, 2017 at 1:54 pm #266175Topic: Change xprofile fields based on user role
in forum How-to & Troubleshootinggebkn
ParticipantHi
My site has different user types/roles that each have different profile fields they need to fill out when registering. I have handled this by hiding/showing fields on the registration page with jQuery based on the chosen user type. The problem being that this solution is hard to maintain when adding/removing fields, so I am looking for a better solution.
I want to use the different xprofile groups and connect each group to each of the user types, which I have managed. The problem is I could not show more than the default group on the registration page (I have searched and tried a bunch of solutions for this to no avail).
I think I will have to make users only fill in username+password+email and then redirect them to a form where they fill out the user type, followed by the profile fields in the group that corresponds to the chosen type.
Any tips on how to do this? I couldn’t find any plugins that handles this unfortunately.I hope I explained my problem properly
May 20, 2017 at 1:26 am #266063In reply to: How can I change the image path?
metalhead
ParticipantRead this conversation in its entirety.
The plugin author was kind enough to guide me through the process of making that work. If you follow those instructions, your users will be able to upload their profile photo during registration.
Although this method works, it causes a slight problem: The users won’t be able to update their photo in the future, because the default Buddypress “Change avatar” function refers to a different file, or location, than the xprofile custom fields type location.
If you find a way to fix that problem, please let me know.
May 15, 2017 at 10:59 am #265989In reply to: Extended profile field’s value meta_key would be?
Henry Wright
ModeratorYou can get the value of an xProfile field in BuddyPress quite easily but you will need to use code. Take a look at this article to get started:
May 12, 2017 at 3:11 am #265938In reply to: required Username twice at Registration
manm0untain
ParticipantExtended Buddypress profile fields demands an additional name / username field. This is the case whether you are using Buddypress Usernames Only plugin or not.
This is only relevant if you require extended profile fields. If you don’t, then go into Buddypress settings and turn off extended profiles. That will remove the requirement for a second name on the registration / profile area.
If you want to use extended profile fields on BP, but you don’t want the second username / name field uglying up your registration flow, you can do the following.
You have to be careful with this, because if you hack it, remove the second required name / username field, or any of a dozen other solutions I’ve found – the registration will break down. You will get 500 errors, missing confirmation emails etc.
The solution I used for this is as follows.
1. Assuming you just want to use a singular Username for your site – install the Buddypress Usernames Only plugin. It says the plugin is old but it is still working as of WP version 4.7.4 (for me at least). This deals with the display / access of various username / name / fullname / nickname issues throughout the WP / Buddypress install.
2. Next you’ll need to hide the extra name / username field on the registration area, and the BP profile area. Stick this CSS into your theme custom CSS under Appearance > Customize:
#profile-edit-form .field_1 { display: none;} #signup_form .field_1 { display: none;}(I have seen a 3rd line of CSS on other solutions – #register-page p { display: none;} – all this did for me was to hide the confirmation message after the user registers. You probably want that so I’d leave that line out).
3. The fields should now be hidden, but the system still requires that information to process properly. So next create a file in notepad and save it as name_remove.js
In that file put the following javascript:
document.getElementById("signup_username").onchange = function() {myFunction()}; function myFunction() { var x = document.getElementById("signup_username"); document.getElementById("field_1") .value = x.value }Save that file and upload it to your theme folder (same folder as functions.php etc). This javascript automatically populates the hidden field with the username, so the system does not complain or fall over.
4. Finally you need WordPress to pick this javascript file up. You can do that with a function, using file enqueing. Copy and paste this function into your themes functions.php file Appearance > Editor
function wpb_adding_scripts() { wp_register_script('name_field_remove', get_stylesheet_directory_uri() . '/name_remove.js', array('jquery'),'1.1', true); wp_enqueue_script('name_field_remove'); } add_action( 'wp_enqueue_scripts', 'wpb_adding_scripts' );You have to be careful about the path. If it’s not working at this point, you can view the page source of your register page, and search for “name_remove.js” – look at the path on that script line. If the path is wrong, tweak it in the function above (you might need to change the get_stylesheet_directory_uri() part, or the path part after it. You can check if the path is correct by clicking the link to the .js file in the page source. If the path is wrong, you will get a 404 error. If the path is right, you should see the script code contained in the js file. Fiddle around with the path until it’s correct.
At that point, you have hidden the fields with CSS, and populated the second hidden username / name field automatically with javascript. Test your registration / confirmation email etc to make sure everything is working. But you should be good to go.
Hope that helps someone. Thanks to the folks I cobbled this solution together from.
-
AuthorSearch Results