Search Results for 'profile fields'
-
AuthorSearch Results
-
November 3, 2017 at 4:26 pm #268799
In reply to: Profile Fields Date format-> Range not working.
amitrwt
ParticipantIf you want your users to be able to select start and end times, my best suggestion is to create two separate xprofile fields, and name them accordingly: ‘Start Date’, ‘End Date’ or something like that.
That is exactly what I did, that was only way around I found for time being. If you have any insight can you pls tell me if it is possible to have a field with JQ datepicker where I can select start and end date. I’m planning to create a filed like this just need something to start with.. that’s the hard part once I’ll have a slate to start with I can write what I want. I’ve no issues getting my hands in code I’d rather enjoy it.
November 3, 2017 at 2:48 pm #268792In reply to: Profile Fields Date format-> Range not working.
Boone Gorges
KeymasterHi @amitrwt – The ‘Start’ and ‘End’ fields in the BP admin settings define the start and end dates of a single datepicker. That is, if you want to have a datepicker, but you only want to show dates between the years 1970 and 1990, you’d use those dates as the Start and End.
If you want your users to be able to select start and end times, my best suggestion is to create two separate xprofile fields, and name them accordingly: ‘Start Date’, ‘End Date’ or something like that.
November 3, 2017 at 2:24 pm #268788Boone Gorges
KeymasterHi @redcompolitica – I’ve built multi-page registration processes for clients in the past, but unfortunately, it’s not very easy to do – BP’s registration system is not built in such a way as to make it easy.
If your main goal is to make registration less overwhelming, you might consider moving some or most of your registration fields out of the “Base” group. This will mean that they don’t show up during the registration process, and users will have to fill them in by editing their profile after signing in.
If your goal is to have *conditional* registration steps – where, for example, step 2 depends on a specific value provided in step 1 – then I’m afraid it’d have to be custom-built. Much of the work could be done with a custom theme template
members/register.phpand by modifying the way that registration data is saved and validated https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-members/bp-members-screens.php?marks=113#L72Some Trac tickets that are somewhat related that you might want to follow:
https://buddypress.trac.wordpress.org/ticket/1842
https://buddypress.trac.wordpress.org/ticket/4278Good luck with your project!
November 1, 2017 at 10:44 pm #268762In reply to: get age from date
psnation
ParticipantBuddyPress Xprofile Custom Fields Type plugin is what I use to do this.
It shows up on the profile as age. If you want it on the members page that takes some code editing. I saw a tutorial on BPDev site.
November 1, 2017 at 12:15 pm #268754amitrwt
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?
-
AuthorSearch Results