Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 576 through 600 (of 3,585 total)
  • Author
    Search Results
  • #268799
    amitrwt
    Participant

    @boonebgorges

    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.

    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.

    #268792
    Boone Gorges
    Keymaster

    Hi @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.

    #268788
    Boone Gorges
    Keymaster

    Hi @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.php and 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#L72

    Some 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/4278

    Good luck with your project!

    #268762

    In reply to: get age from date

    psnation
    Participant

    BuddyPress 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.

    amitrwt
    Participant

    I 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.

    #268725
    willallen83
    Participant

    I 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.

    michaeltcarlson
    Participant

    Thanks 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.

    David Cavins
    Keymaster

    You can save extra things manually on the bp_core_signup_user hook:
    https://buddypress.trac.wordpress.org/browser/tags/2.9.1/src/bp-members/bp-members-functions.php#L1900

    But 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

    #268643
    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’); ?>

    #268427
    metalhead
    Participant

    Put 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 🙂

    #268249
    theredeclipse
    Participant

    I 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');
    #268147

    In 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.

    #268087
    xmginc
    Participant

    Note 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 update

    I 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)

    #268075
    xmginc
    Participant

    UPDATE: 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…

    #267962

    Actually, ‘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’ );
    #267900
    zo1234
    Participant

    I 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.

    #267803
    artempr
    Participant

    Hi. 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 );
    }
    #267760
    Carsten Lund
    Participant

    I 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?

    Try this plugin. It hasn’t been updated for 2 years, but it works perfectly for me.

    BuddyPress Admin Only Profile Fields

    Adds these options to the visibility options: ‘Admin’, ‘Everyone (Admin Editable)’ and ‘Only Me (Admin Editable)’

    Hope that helps

    #267623

    In reply to: Custom Code

    Abdullah Al Mamun
    Participant

    @peter-hamilton Im using BuddyPress Xprofile Custom Fields Type plugin too.

    #267455
    udarmo
    Participant

    Do 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.

    #267371
    r-a-y
    Keymaster

    This 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.

    #267192

    In reply to: Remove Base

    Aslan Guseinov
    Participant

    Hi, you can rename it.
    Go to Users=>Profile Fields=>Edit Group.

    #266722
    wbcomdesigns
    Participant

    Hi @dave8528

    Please, you can use this plugin…

    Buddypress Xprofile Custom Fields Type

    Hope this will help.

    Thanks.

    coolhunt
    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?

Viewing 25 results - 576 through 600 (of 3,585 total)
Skip to toolbar