Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 401 through 425 (of 3,589 total)
  • Author
    Search Results
  • #302738
    easybwpacc
    Participant

    Solved go to users > profile fields > add fields as needed

    #302546
    josh.grisdale
    Participant

    Hi,

    I’m not really a programmer and just hacked together some stuff I found…

    but,

    First of all I assume that xprofile_get_field_data only gets feilds in the Extended Profile tab of the user, so you would either need to add those fields to the Extended Profile, or you would need another wordpress function to get it from the regular profile likely

    $current_user->user_firstname (https://codex.wordpress.org/Function_Reference/wp_get_current_user)

    $newname = $current_user->user_firstname . $current_user->user_lastname;

    I would guess…

    #302495
    egamestudio
    Participant

    Hello,

    This is my problem, I use ACF PRO to create my own fields on my WordPress theme, for the member profiles part everything works with this code:

    <?php
    /**
     * BuddyPress - Members Settings ( General )
     *
     * @since 3.0.0
     * @version 3.1.0
     */
    acf_form_head ();
    $author_id = bp_displayed_user_id();
    ?>
        <div class="col-lg-6">
            <?php
            acf_form(array(
    
                'id' => 'acf-formA',    
    
                /* Groupe de champs ID utilisé */
                'field_groups' => array('663'), //CHANGE ID IN LIVE
    
                /* Quelle est la function meta utiliser en $ sur ID auteur ? */    
                'post_id' => 'user_'.$author_id,
    
                /* Quel est le nom sur le bouton du button de sauvegarde */    
                'submit_value' => __("SAUVEGARDER", 'acf'),
    
                /* Le message que je retourne en cas de réussite sur l'infobox bootstrap */
                'updated_message' => __("Mise à jour réalisée", 'acf'),   
    
                /* Button de submit de formulaire */
                'html_submit_button'	=> '<div class="text-center"><input name="updateuser1" type="submit" id="updateuser1" class="btn-style1" value="%s" /></div>',
    
                /* Le spinner de chargement */
                'html_submit_spinner'	=> '<span class="acf-spinner"></span>',
                'form' => true,
                'return' => ''
            ));
            add_action('acf/save_post', 'my_acf_save_post', 20);
            ?> 
        </div>
    

    So far no problem to display then on the member’s profile page the information of the ACF field.

    My Problem:
    On the other hand, on the Groups part I can’t find how to attach the field to the ID group, that’s what I tried.

    In my edit-details.php (in group),My field works, I enter test in my acf form
    it comes out in the echo “test” but on all the groups, I can’t associate this field with the group id.

    <?php
    /**
     * BP Nouveau Group's edit details template.
     *
     * @since 3.0.0
     * @version 3.1.0
     * @version 4.0.0 Removed 'Notify group members' checkbox in favor of hooked callback.
     */
    acf_form_head ();
            
    $group_id = bp_displayed_user_id();
    $group = new BP_Groups_Group( $group_id );
    
    ?>
    <?php echo get_field('test_group', 'group_'. $group_id); ?>
    
         <?php
                acf_form(array(
    
                    'id' => 'acf-formA',    
    
                    /* Groupe de champs ID utilisé */
                    'field_groups' => array('714'), //CHANGE ID IN LIVE
    
                    /* Quelle est la function meta utiliser en $ sur ID auteur ? */    
                    'post_id' => 'group_'.$group_id,
    
                    /* Quel est le nom sur le bouton du button de sauvegarde */    
                    'submit_value' => __("SAUVEGARDER", 'acf'),
    
                    /* Le message que je retourne en cas de réussite sur l'infobox bootstrap */
                    'updated_message' => __("Mise à jour réalisée", 'acf'),   
    
                    /* Button de submit de formulaire */
                    'html_submit_button'	=> '<div class="text-center"><input name="updateuser1" type="submit" id="updateuser1" class="btn-style1" value="%s" /></div>',
    
                    /* Le spinner de chargement */
                    'html_submit_spinner'	=> '<span class="acf-spinner"></span>',
                    'form' => true,
                    'return' => ''
                ));
                add_action('acf/save_post', 'my_acf_save_post', 20);
                ?> 

    Thanks for your help !
    demo : https://cryodev.fr/branch/build/alpha/groupes/le-groupe-a-demo/

    #302488
    MorgunovVit
    Participant

    Hi, Josh!
    I am trying to solve a similar problem, but only I need to make the display_name = First_Name + Last_Name fields of the BuddyPress xprofile.

    I have been tormenting for a long time and can’t find a suitable hook that firing when the xprofile fields First_Name and Last_Name have already been written in the database.

    #302483
    mbamutuelle
    Participant

    Hello,

    Can you help me for hiding the “Modify” button on a member page.
    I Don’t want that my members can change their profile by themself because all fields are automaticly feed by an LDAP authentication.
    Before updating my Woffice theme, i just have to comment some lines of this file :
    /home/wordpress/wp-content/themes/woffice/buddypress/members/single/profile.php

    // Edit
    //case ‘edit’ :
    // bp_get_template_part( ‘members/single/profile/edit’ );
    // break;

    But now i Don’t find where i can hide this button for my suscribers.

    Can you try to help me please ?
    Thx

    #302466
    Number_6
    Participant

    Hello,
    I’m looking to create widgets specifically for profile pages. For that I need a way to get the ID/display name of the current profile being viewed.
    In plain English: User 1 views their own profile and sees data in widgets relative to their own profile.
    User 2 views User 1’s profile and sees data in widgets relative to User 1’s profile.
    Example: Custom post types they’ve authored or data from their custom profile fields.

    For that I need to fetch the ID/Display Name of the currently viewed profile page.

    Thanks

    #302465
    shanebp
    Moderator

    The easiest approach, imo, would be to remove the current member search input from the members directory.
    For example, create an overload of this file and delete the code re member search:
    buddypress\bp-templates\bp-legacy\buddypress\members\index.php

    Then get this plugin: BP Profile Search
    And configure a custom member search that only includes the fields you want.

    bitroger
    Participant

    I have many custom profile and need hide some from VIEW option profile, can you help me please???

    I have a field called “user available”
    How do I hide the other fields when I select the option “NO” in the user’s data view?

    #302438
    msteimann
    Participant

    Thanks for your quick reply, Venutius!

    I have tried the WP 2015 Theme and got the same results. So I switched back to KLEO and noticed, that the xProfile fields do change to the desired visibility settings, AFTER the user clicks the SAVE SETTINGS button. So I guess I was confused by the fact that BEFORE you hit the save button there is a misleading visual feedback (the visibility term does not alter to the according setting the user has just changed it to, it still displays the same value as before).

    Could this be changed in the next release?

    My first problem still remains: the „change display name visibility option“ is displayed beneath the name field on the user Registration page. This doesn’t make sense, if the name’s visibility throughout BuddyPress network is mandatory. How can I get rid of this line? Does this line and it’s user changeable visibility options really not appear on a default install?

    In the WP Dashboard I cannot change the options for the primary Name field. Only the fields under the details tab can be altered by admin and set to be visibility-changeable by the user. (Hope you understand what I try to say 😉

    Regards,
    Martin

    Hide visibility option on registration page?

    #302434
    Venutius
    Moderator

    On a default install there is no option to change the visibility of the Name field, it is always visible to all. Other profile fields can have this setting changed and it works. I suggest you try switching to a default theme such as 2015 and see if you still have the issue.

    #302382
    mrbluesea
    Participant

    you can edit the fields of custom registration in profile fields. Does this help at all?

    shanebp
    Moderator

    – Responsive on all devices
    Yes.

    – Users to be able to pay for messaging and/or subscription
    No, requires a membership plugin.

    – User should be able to register, to have public and private profile also public and private photos.
    Register, yes. Profiles are public unless you add custom code. Photos gallery requires custom code or there may be a third-party plugin.

    – Users to be able to edit and add custom fields on their profile page
    Yes.

    – Admin should also be able to edit those fields/profile pages
    Yes.

    – Users to be able to filter search results, based on those fields
    Yes, by using the BP Profile Search plugin

    – IP Geo detection function? Showing users in your area?
    No. Requires custom coding or perhaps a third-party plugin.

    – Multilanguage support.
    Yes.

    – Are gifts or badges also available/active, which are to be given on a subscription or user rank basis?
    No, maybe a third-party plugin.

    – Any performance issues? Browsing experience should be smooth.
    Depends on your hosting resources and the number of active users.

    #302171
    sedmikraska
    Participant

    I want all profile fields to be visible on my site. So I want to remove the subnav Settings > Profile Visibility.

    I have added below command into bp-custom.php but it does not work.

    function bpfr_hide_visibility_tab() {
    if( bp_is_active( ‘xprofile’ ) )

    bp_core_remove_subnav_item( ‘settings’, ‘profile’ );

    }
    add_action( ‘bp_ready’, ‘bpfr_hide_visibility_tab’ );

    Something has changed probably because the conversation I found about this issue is two years old.

    Could you please let me know updated command that I have to use ?

    WordPress: 5.0.3–sk_SK
    BuddyPress: 4.1.0
    mamatwist.com

    Thank you,
    Dana

    #302113
    Wushan TCM
    Participant

    No, that didnt worked.
    Ok like this: I added next to the primary, a new field called Profile fields: You can find it here: https://wushantcm.com/members/timvukan/profile/
    In the backend I added to the field group:
    -My Name:
    -Profession
    -Working Experience
    but, only the field
    -Profession is visuable in the frontend on the profile page

    #302110
    Wushan TCM
    Participant

    Hi there,
    thank you for getting back to my request. I am following this issue. I just tried again to add new fields to a profile group but they are not showing. It is correct that they show below the other profiel fields, but they wont appear, just a part of it, but not complete as I have it in my backend dashboard.

    #302032
    Venutius
    Moderator

    I’ve just looked at a test server and I’m getting the same issue. If I edit the profile I can see the extra tab and edit the profile fields it contains, but when I view the profile it only shows the Base profile group.

    Would you mind rasing this as a bug on trac?

    #302025
    Wushan TCM
    Participant

    I am seeing different tabs I can add as other profile fields in the backend but they dont appear on my profile page. I am using the Boss Theme of Buddy Boss. All other functions are working fine.

    #283003
    Melanie Jimenez
    Participant

    Mean you don’t know how 🙂
    members/bps-form-home – located in: /buddypress/ Should I ask then support from OpenCart Or Magento if this is not an issue of BuddyPress
    And maybe Extended Profiles (Customize your community with fully editable profile fields that allow your users to describe themselves.) is not a part of BuddyPress too? Because only the gender got wrong search results – and this is BuddyPress Profile Field

    shanebp
    Moderator

    afaik, when that hook runs, the user is not logged in yet. Try using a login hook, like login_redirect.
    btw – try to use BP functions, especially if you plan to distribute your code.
    wp_redirect( bp_loggedin_user_domain() . '/profile/edit/group/1/' );

    The default component constant applies to all visitors. Visitors and other members cannot edit the profile fields of another user.

    #282214
    lookingahead
    Participant

    OMG…THE LINK DID NOT POST LOOOOOL…..

    Because I’m like a ‘spammer’ or something right? Hahaa…

    DEAR GOD.

    MAN I HOPE THIS ONE WORKS LOOOOOL:

    https://buddydev.com/using-different-default-avatar-buddypress-users-based-profile-fields-member-type/

    #282213
    lookingahead
    Participant

    Screw it. I tried to post the code in various ways, but I don’t have time to spend trying to post A SIMPLE COMMENT FFS.

    Go to this link and use the code specified in the file.

    I hope it’s still available years later when someone stumbles across this comment thread.

    BuddyPress forums need some sort of fix for this crap. What an incredible waste of time and energy, just to post a helpful comment that contained code. I’m not a freaking spammer. I mean, if your forum software is needing to be THAT sensitive to fight spam, make us do captchas or some crap to verify we’re ‘human.’

    Ya know, I get why spam filters exist, but when they make a site UNUSABLE FOR ACTUAL USERS then your technology is worthless.

    Anyhow…lol, end of rant. Here is the link:

    I hope this solution helps others as much as it’s helped me. <3

    #282205
    lookingahead
    Participant

    OH guess what…? 😀 Figured it out.

    I have a solution that so, sooo…..SSOOOOOOO many other people have been looking for, and I’m elated to say I’ve found it.

    Been cruising Stack Exchange, various WordPress plugin support threads, installing plugin after plugin, reading blogposts made by developers, comments made by disillusioned masses….I mean, it’s endless.

    But THANK GOD I found a solution!

    So it turns out that the code that BuddyDev mentioned was not to blame for the 500 error I mentioned in my intro. It was actually due to one of the two plugins that is recommended in BuddyDev’s tutorial (and they are now fixing that bug). 🙂

    I figured this out as I tried to reproduce the error while activating plugins in a different sequence.

    The first time I did this, I’d had BuddyPress disabled when I’d installed both plugins. I’d also already put the code mentioned in their tutorial into my bp-custom file. I then activated BuddyPress, and the site failed.

    This time, I had BuddyPress already activated, then installed and activated one of the two plugins BuddyDev recommended to use in the tutorial…and all was well. THEN…I installed the second plugin. And upon clicking ‘Activate’ the site failed again. NOTE: on the second attempt to reproduce the 500 error, I hadn’t put the code from the tutorial into my bp-custom file….

    And according to BuddyDev, even before I tried to reproduce the error, the bp-custom code I was using was sound.

    So when the site failed upon my attempt to reproduce the error, I knew: that plugin was to blame.

    Then, I found out more about that plugin…it is designed to be used for users to have extra fields to fill out upon signup, fields that would show in their Member Profile. And I have Member Profiles disabled. Wa-la!

    I then asked BuddyDev if I needed the plugin that failed…and THANKFULLY they said, ‘no — not needed for what you want to do.’

    WHEW!! 😀

    So, a summary:
    – Use custom code in bp-custom (pasted below)
    – Use one plugin in particular from BuddyDev
    – Do not use another plugin recommended by BuddyDev

    The plugin to DEFINITELY use, that was listed in their tutorial: ‘BuddyPress Member Type Generator’…that affects the ability for Webmasters to set custom member types AND an avatar specific to every custom type created! 😀

    The other plugin that was recommended in that tutorial, that is NOT needed to change user avatars for custom member types…not ever, as it has nothing to do with avatars — it was merely recommended in their tutorial so people could manage user profiles: ‘BP XProfile Member Type Field’

    SO. If you want to have a different default avatar for different member types, then you will need to use the ‘BuddyPress Member Type Generator’ plugin. Not the other one.

    Steps to take:
    1.] Download the ‘BuddyPress Member Type Generator’ plugin from BudyDev

    2.] Read their tutorial (I’ll paste a link below in follow-up comments to this comment)…do everything EXCEPT install the ‘BP XProfile Member Type Field’ plugin — it’s not needed for assigning an avatar via custom member type; it just is recommended in their tutorial to use so you can manage user fields 🙂

    3.] Use the code I’ll also paste below (in the follow-up comments) — modify it to your site’s name but insert your site name where I typed ‘sitenameprivate’…etc.

    4.] For creating more avatars with custom member types in the future, you’ll always have to update that same code in the bp-custom file…via FTP/SFTP; tbh that process is easy as pie once you realize how to do it

    5.] For making your life easier with switching out avatar images for member types without having to re-do the bp-custom file: just save over the image in your media library that is used for that particular member type…so the path is the same and your code won’t need to be changed

    Simple, yet difficult to find.

    Thank GOD FOR BUDDYDEV!!! <3

    #282003
    giannisff
    Participant

    Hello all, i’m happy to be back after a lot of years. The project is… i have 10 xprofiles fields “places i love”. Place1, Place2…. and so on. Is there a way to transfer all of the places to a google map? Then i try a new tab to the user profile named “Places i love” to show the map.
    I have check some plugins with no luck.
    Thank a lot.

    #280876
    Prashant Singh
    Participant

    Hi,

    That is a default profile field and you can not change the visibility of that. But if you will create other profile fields then you will be able to change their visibility easily.

    Thanks

    #279677
    3diuk
    Participant

    Thanks, with your advice I was able to add the fields to the users edit profile page, but I dont see a way of getting the information to appear on their profile page when others view it.

    Can you advise?

Viewing 25 results - 401 through 425 (of 3,589 total)
Skip to toolbar