Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 426 through 450 (of 3,585 total)
  • Author
    Search Results
  • Prashant Singh
    Participant

    Yes, it is valid for legacy template.

    Also in place of #input you have to use (.profile-edit #field_number).

    ‘field_number’ represents fields like field_1, field_2 so you have to just replace field_number with real field id. You can find it in inspection like this: https://prnt.sc/l61ajf

    #278546
    Prashant Singh
    Participant

    You can add profile fields for them and name them on social media accounts like Facebook Twitter and all then members will see them on their profile.

    Thanks

    Bit Boy
    Participant

    In that case, you can put it in your bp-custom.php or your theme/child theme’s functions.php

    
    /**
     * Start buffering the visibility template.
     */
    function bitboy_start_buffering_visibility_template() {
    	ob_start();
    }
    add_action( 'bp_custom_profile_edit_fields_pre_visibility', 'bitboy_start_buffering_visibility_template', -1 );
    
    /**
     * End buffer and discard.
     */
    function bitboy_end_buffering_visibility_template() {
    	ob_end_clean();
    }
    add_action( 'bp_custom_profile_edit_fields', 'bitboy_end_buffering_visibility_template', 1000 );
    
    

    It will remove the visibility options completely.

    Best Regards
    B

    #278414
    Prashant Singh
    Participant

    Hi,

    I found that those links are generated from the plugin Custom Profile Filters For BuddyPress and it only works on profile. So to get the same data with the link on members-loop.php we need to print fields like this:

    $data = bp_get_member_profile_data( 'field=Expertise' ); 
    echo '<a href="' . bp_get_members_directory_permalink() . '?s='.$data.'">'.$data.'</a>';

    Hopefully, this will help you.

    Thanks

    #278358
    israel4lincelot
    Participant

    Hi Prashant, I should have maybe started with listing following information:

    1. Which version of WordPress are you running?
    WordPress 4.9.8

    2. Did you install WordPress as a directory or subdomain install?
    Subdomain

    4. Did you upgrade from a previous version of WordPress? If so, from which version?
    I installed the latest.

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
    Yes

    6. Which version of BP are you running?
    Latest Version 3.2.0

    7. Did you upgraded from a previous version of BP? If so, from which version?
    No

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    BuddyDrive, Custom Profile Filters for BuddyPress, Gravity Forms, K Elements, Really Simple SSL, rtMedia for WordPress, BuddyPress and bbPress, Slider Revolution, What The File,
    WPBakery Page Builder

    9. Are you using the standard WordPress theme or customized theme?
    Customized.

    10. Which theme do you use ?
    Kleo Theme from seventhqueen

    11. Have you modified the core files in any way?
    Yes I have, but always in the child-theme.

    12. Do you have any custom functions in bp-custom.php?
    Yes
    <?php
    // hacks and mods will go here
    define( 'BP_DEFAULT_COMPONENT', 'profile' );

    ?>

    15. Which company provides your hosting?
    Compbell

    So to answer your other questions, I added a new Profile Field with checkboxes. Indeed you have to select it and that’s why I can’t just wrap it in an anchor tag because I need the fields to be clickable separately.

    In Profile fields the Expertises are individually links. In my Members page all the Expertises ar put in a Paragraph. But I’d like them to be individual links such as in Profile page.

    See Screencast here: https://screencast-o-matic.com/watch/cF6QiCYqw6

    Thx!

    #278352
    amkh
    Participant

    Additionally I want each “tab” to show “Save and Continue” button. So when the member finishes editing profile fields in Group 2 then once he clicks “Save and Continue” then he should be taken to profile group 3.

    #278299
    Prashant Singh
    Participant
    function 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

    #277182
    Prashant Singh
    Participant

    Hi,

    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

    olandir
    Participant

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

    #276906
    scott8035
    Participant

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

    #276902
    scott8035
    Participant

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

    #276890
    Prashant Singh
    Participant

    Hi,

    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

    #276816
    Prashant Singh
    Participant
    #276781
    Prashant Singh
    Participant

    You can go with this plugin https://wordpress.org/plugins/buddypress-admin-only-profile-fields/ to set the visibility to hidden/admin only.

    Thanks

    #276725
    Prashant Singh
    Participant
    #276683
    pavelmititel
    Participant

    Thanks, 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 profile

    #276651
    Prashant Singh
    Participant

    Hi,

    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

    #276635
    r-a-y
    Keymaster

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

    aldorr
    Participant

    You can try placing this in the functions.php of your Child Theme. Though for buddypress you might want to use bp_get_profile_field_data instead of xprofile_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!

    #276591
    Prashant Singh
    Participant

    Hi,

    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

    #276584
    Prashant Singh
    Participant

    Hi,

    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

    ajuuls
    Participant

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

    #276175
    Prashant Singh
    Participant

    Hi,

    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

    #276138
    groston
    Participant

    shanebp,

    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?

    #276106
    Prashant Singh
    Participant

    Yes, 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

Viewing 25 results - 426 through 450 (of 3,585 total)
Skip to toolbar