Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 501 through 525 (of 4,122 total)
  • Author
    Search Results
  • #303494
    pandraka
    Participant

    Good Morning,

    Thank you for your reply, but hiring someone else isn’t a possibility. I’ve been digging in the BuddyPress codex and around the internet. There was a suggestion to turn off the fancy permalinks and using the plain links before exporting the databases when using BuddyPress. That worked for the most part. I think I’m 93% of the way to a solution. The only thing that didn’t work was the user’s profiles. All the users are present and displayed, but the user’s @user_nicename, title, and image are incorrect, the rest of the profile and user’s fields are correct. I also noticed instead of 30 users I now have 31. It looks like the super admin user’s information wasn’t incorporated into the new profile, but a second profile was established. I also imported the data into the topmost site instead of a subdirectory. I’m currently working to address these issues any insight would be appreciated.

    Sincerely

    Patricia

    #303428
    zaino
    Participant

    I have tried this from the codex and it works great for xprofile fields, however I do not know how to modify it for ACF fields. There is a whole block of code in there specific to xprofile fields and I have tried various modifications, none working. Would love to get some concrete guidance. Thanks.

    function my_custom_ids( $field_name, $field_value = '' ) {
      
      if ( empty( $field_name ) )
        return '';
      
      global $wpdb;
      
      $field_id = xprofile_get_field_id_from_name( $field_name ); 
     
      if ( !empty( $field_id ) ) 
        $query = "SELECT user_id FROM " . $wpdb->prefix . "bp_xprofile_data WHERE field_id = " . $field_id;
      else
       return '';
      
      if ( $field_value != '' ) 
        $query .= " AND value LIKE '%" . $field_value . "%'";
          /* 
          LIKE is slow. If you're sure the value has not been serialized, you can do this:
          $query .= " AND value = '" . $field_value . "'";
          */
      
      $custom_ids = $wpdb->get_col( $query );
      
      if ( !empty( $custom_ids ) ) {
        // convert the array to a csv string
        $custom_ids_str = 'include=' . implode(",", $custom_ids);
        return $custom_ids_str;
      }
      else
       return '';
       
    }
    #303388
    pandraka
    Participant

    Wordpress version 5.1
    BuddyPress version 4.2

    Good Morning,
    I tried putting this up yesterday in the troubleshooting forum and it disappeared. I’m guessing that was the wrong forum. Please let me know if this should be posted elsewhere.

    I have a large standalone BuddyPress site that needs to be migrated to a multisite. The multisite needs to be able to support multiple sites including other BuddyPress sites. I’ve been trying to migrate the existing site via the “All in one WP Migration” & “Multisite extension” Plugins with no success. All non-BuddyPress elements transfer correctly, there seems to be an issue though with BuddyPress Groups Profile images and Xprofile fields. None are correct once migrated. In the dashboard, I can see all the topics, and forums, but no groups. When I look at the profile fields under users there are none. Profile images are there but assigned to the wrong users. I can, however, see the groups and profile fields in the databases. I’ve been in contact with ServMask and they have suggested I reach out to the BuddyPress community. All the users should have access across the network to any of the sub-sites the desire to visit. They may have to request access to some sub-sites and other sites would just be open. The main site will act as a gateway to the sub-sites. I’ve been through the forums, it seems the plugin that would allow what I want to do is no longer supported and the other recommended plugin “BuddyPress Multi Network” hasn’t been updated since 2014. I’m I missing something? My priority is to get the site up with all the data correctly display and then build other sites out. Any help would be appreciated.

    The site uses the latest versions of all these plugins:
    Activity Log
    AddToAny Share Buttons
    Admin Bar & Dashboard Control
    bbPress Version 2.5.14
    bbPress Move Topics
    bbPress Notify Admins
    Black Studio TinyMCE
    BP Profile Search
    BuddyExtender
    BuddyPress Version
    BuddyPress Docs Version
    BuddyPress Global Search
    BuddyPress Members only
    BuddyPress Xprofile Custom Field Types
    Custom Contact Forms
    Follow My Blog Post
    GD bbPress Attachments
    Intuitive Custom Post Order
    Max Mega Menu
    Max Mega Menu – Pro Addon
    New User Approve
    Popup Maker Version
    Search & Filter Pro
    Shortcodes by Angie Makes
    The Events Calendar
    The Events Calendar: Community EventsVersion
    WP Clone by WP Academy
    WTI Like Post PRO

    #303360
    shanebp
    Moderator

    Please use the code button when posting code.

    …it’s not printing anything

    That hook is found in a function that has a redirect after the hook, so you cannot dump to the screen.
    Trying writing to a debug log or actually changing something with your function.

    But more importantly – the settings code is not the same as the profile fields code.
    I apologize for not noticing that you said general settings and not profile fields in your OP.

    Try using this hook for Settings > General: bp_core_general_settings_after_save
    Found in bp-settings/actions/general.php
    Note that it does not pass any data – so you’ll need to get the data from $_POST.
    And the hook is followed by a redirect, so you cannot print to screen.

    #303329
    rakhisystematix
    Participant

    Hello Team,

    I need help with profile update code. When the user is updating general settings (password) before submitting to the database I want all posted fields and password as plain text with the username so that I can hit third-party API and send username and password as a parameter.

    #303193
    john vivian
    Participant

    Hi.

    i have a user with some profile fields set to be viewable by “Only Me”.

    However, other users (including anonymous) can search for the field contents and the user will show in the results.

    Is this a known bug?

    Is there a setting or code i can use to fix this behaviour?

    Thanks,

    john

    #303187
    cammac1
    Participant

    Hi,
    I’m using BuddyPress and the result that I’d like to reach is modifying a field in the user profile page (http://yourSite/members/userName). So far I’ve found bp_after_profile_content and bp_before_profile_content but what I want is affecting one field inside the profile_fields_content. I’m not using any custom field and I can’t find a solution. Does any of you have any idea? I’m in function.php of a child theme and my function so far is this one:

    function get_member_field_test($data){
    $data = bp_get_member_profile_data( ‘field=lname’ );
    if ( strlen($data) > 3){
    $data = substr($data,0, 3).’…’;
    return $data;
    }
    }add_action(‘bp_before_profile_content’,’get_member_field_test’);

    thanks in advance

    #303173
    restarthumanity
    Participant

    I need a plugin that users can search multiple profile fields at the same time like in a dating site. I have only found one plugin but I can only search one field at a time.
    Thanks

    MorgunovVit
    Participant

    Hi!
    There’s an error on BuddyPress profile page:
    content.js:3 E_NOTICE Undefined index: Полное имя – /wp-content/plugins/buddypress/bp-core/classes/class-bp-core-user.php:159
    #44 /wp-content/plugins/buddypress/bp-core/classes/class-bp-core-user.php:139 – BP_Core_User->populate()

    As I can gues – it related to xprofile fields. It seems that I removed the field ‘Полное имя’ that was created before on the Users Profile Fields page.
    And now php string:
    $this->fullname = esc_attr( $this->profile_data[$full_name_field_name][‘field_data’] );
    in plugins/buddypress/bp-core/classes/class-bp-core-user.php
    causes an error.

    Could you help me?

    WordPress version 5.1
    BuddyPress Version: 4.2.0
    Site URL: https://test.mc21academy.ru/

    #303081
    Mansemat
    Participant

    Hello,
    I’m currently making a site using the SweetDate theme to bring tabletopgamers together. I’ve been trying for quite a while now to get the extended profile fields into the registration forms WITHOUT having to put them all in the Base Field Group (the theme creates a tablike structure making it very easy to distinguish the different Field Groups).

    The problem is people don’t understand they have to complete their profile and I can’t redirect them directly to their profile page to force them to fill it in. Doing this during registration would be much more logical but I can’t seem to get it done.

    I have tried the following:
    – Gravity Forms with Registration Addon : many (if not all, I tried so many things I can’t fully remember what’s the cause of what error) of the extra fields for some reason do not show up in the “tabs” of a profile. It also doesn’t “see” some extra fields for some strange reason so I can’t select them nor does it allow me to put the role as Participant.

    – I found a custom code from a person and it works BUT I’m using the GEO-wp plugin allowing people to search by their location using the location-field of GEOwp inside the Extended profile Fields. This locationfield however (named “city”) does NOT appear in the form created by the php this person wrote.

    – I attempted adding code to the original code <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> changing the profile_group ID each time with the 6 extra I require. Unfortunately due to my basic php skills I run into a lot of white screens and the one that is working and sending data only puts the last id in the database; not even showing the base fields in their profile page (which they always do).

    Regardless… There must be a way where I can use the extended profile fields IN the registration page without having to get rid of the “tabbed” nature of the theme. OR, at least… be able to insert the “geowp/extended profile location field” into the custom code so people don’t need to take another step to complete a registration (besides extra profile stuff).

    The normal registration page –> https://www.fitzsimmonsweb.be/test/mijn-account/register/
    The tabbed profile –> https://www.fitzsimmonsweb.be/test/gamers/admin/ (all fields except base need to be inserted during registration imo depending on what kind of gamer they are)
    Can’t add the custom code a person made cuz it screws this topic up.

    Anyways, I know this is a loooooooooooooooooooooooong read but I haven’t been able to find anything useful to help solve this. I can’t fathom that this isn’t possible… but it’s sure weird this stuff was never incorporated as far as I have seen during the 7 days Ive been banging my head (and fists) over this.

    Any help would be appreciated as long as the solution allows me to have the person registering completing his or her profile in a smooth way.

    Thanks in advance

    leile
    Participant

    Hi!

    I am using BuddyPress with “SuitePlugins – Advanced XProfile Fields for BuddyPress”, and I created some custom fields. On the registration page I want to check if ex. “idofcertificate” custom field data exist in the database. If exist then throw an error, to only one account to be created with this “idofcertificate”. There is any resolution to do this?

    Thank you very much!

    #302961
    elrico13
    Participant

    A general question, not related to a live site at this point, just something I’m playing with.

    With a fresh WordPress + BuddyPress install, under Users > Profile Fields, I’ve created a new field called Last Name.

    New registrations are capturing the data correctly and it is stored in wp_bp_xprofile_data.

    Is there any easy way of also getting that value into wp_usermeta.last_name as well?

    Thanks in advance.

    sitesfromash
    Participant

    Hi. I hope someone can please help me. I have set up a group of two questions which I am requiring users to enter when registering for my site. I would like to be able to see the values entered by each user on the backend admin Users panel in the form of columns. However, I am unsure of how to accomplish this. I appreciate any assistance which anyone can provide me in regards to this matter.

    #302801
    der_velli
    Participant

    Hello Shane

    “BP Profile Search will search as many profile fields as you want for each search input.”

    Yes, but i want only ONE searchfield to search in name, surname, city and jobs, not for each profile field a searchfield

    best regards
    velli

    #302800
    shanebp
    Moderator

    BP Profile Search will search as many profile fields as you want for each search input.
    Just follow the directions for that plugin.
    If you have additional questions, please ask them on the support forum for BP Profile Search.

    #302795
    der_velli
    Participant

    Hi. I’m looking for one search field (widget) which searchs in couple of profile fields. like name, surname, city, job (and other custom made profile fields) but i don’t want to search all fields (some fields have to be hidden for other users).
    BP Member Search would be fine, but i can only search one profile field for each search input.

    Best Regards

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

Viewing 25 results - 501 through 525 (of 4,122 total)
Skip to toolbar