Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 176 through 200 (of 3,608 total)
  • Author
    Search Results
  • lilipilon
    Participant

    Hello,

    I try since 2 days to customize informations on the members pages ==> lilisoumise.fr/membrs

    I find a topic said that I must go on members-loop.php

    I add a custom field on the extended profile : Statut. I try to display on the member pages to add where the file said to me. but it doesn’t work. Do you know why ?

    <?php
    
    				/**
    				 * Fires inside the display of a directory member item.
    				 *
    				 * @since 1.1.0
    				 */
    				do_action( 'bp_directory_members_item' ); ?>
    
    				<?php
    				 /***
    				  * If you want to show specific profile fields here you can,
    				  * but it'll add an extra query for each member in the loop
    				  * (only one regardless of the number of fields you show):
    				* bp_member_profile_data( 'Custom field name' );
    				  */
    
    bp_member_profile_data( 'Statut' );
    
    				?>
    petertucker
    Participant

    Here is the solution for anyone who is going to see this post in the future.

    1. Install the username change plugin:
    https://buddydev.com/plugins/bp-username-changer/
    2. Add to the plugins code (bp-change-username.php) on line 163;

    
    xprofile_set_field_data(1, $user_id,  $new_user_name);
    

    3. In your theme function.php file add the follow code to hide XProfile editing:

    
    function bpfr_hide_profile_field_group( $retval ) {
            if ( bp_is_active( 'xprofile' ) ) :     
    
            // hide profile group/field to all except admin 
            if ( !is_super_admin() ) {
                    //exlude fields, separated by comma
                    $retval['exclude_fields'] = '1';  
                    //exlude groups, separated by comma
                    //$retval['exclude_groups'] = '1';
            } 
            return $retval;         
    
            endif;
    }
    add_filter( 'bp_after_has_profile_parse_args', 'bpfr_hide_profile_field_group' );
    

    I hope this helps anyone who finds it.

    #316451
    tonygao
    Participant

    Is there a hook or filter that I can use when edit xprofile fields, so I can remove all short code when edit xprofile fields?

    tonygao
    Participant

    I want to add shortcode to xprofile fields, but when I edit the field, the shortcode in it will be rendered. How to see the original shortcode when edit it, how to solve that problem? Thanks!

    #316420

    In reply to: Mega menu for members

    clickallco
    Participant

    Sure it’s possible – but you’d have to code it yourself… 🙂 But to help you a bit:

    Make the profile fields you want to have checked first, on where your members are located.

    Otherwise, I think Buddypress has the possibility to loop through the xprofile fields – so something like this to gather your names for the mega menu (This is untested, so test it first before putting it on a production site)

    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
        <?php if ( bp_field_has_data() ) : ?>
            <?php if (bp_the_profile_field_name() == 'YOURFIELDNAME') && bp_the_profile_field_value() == 'checked'){
    	//do something
        	}?>
         <?php endif; ?>
    <?php endwhile; ?>

    Gl

    #316166
    trapsen
    Participant

    Hi there,

    Is there a description for the Member Types function somewhere?
    Is it possible to create this as a profile field so that a user can select the member type when registering?

    Thank you & best regards
    Adrian

    Mathieu Viet
    Moderator

    Hi,

    You just need to create a group of profile fields from the WP Admin > Users > Profile Fields screen and attach your profile fields to it. Here’s the reply I gave you when you pinged me on Twitter 😉

    Thanks for using BuddyPress <3

    #315620
    ireallyneedhelp
    Participant

    I have a site, and one of my custom profile fields is a checkbox list. There are at least 30 options, so how can I make those options in columns on the register page, otherwise it just goes on forever. Thanks!

    #315406

    In reply to: Member area

    iamthewebb
    Participant

    You may find it easier to search for each of the things you are attempting to do individually, if you are referring to profile fields that the user fills in these are under the user settings.
    For things like showing a rank you are probably looking for a gamification or similar plugin which will add features like this.

    Hope this helps.

    vsapountzis
    Participant

    Hi,

    I am experiencing an issue with the default “Profile Fields” of BP. Specifically, I noticed that the table containing these details is not responsive on mobile devices. The theme I am using is storefront.

    For example, check the link below:
    https://1businessworld.com/pro/stelios-hatzakis/profile/

    The Professional Profile table is not responsive on mobile.

    Any ideas?

    Thanks!

    #315209
    peacefulwarri0r
    Participant

    Hi,

    im a bit lost. I try to display all Profile Fields when the visibility level is public.
    The best would be to just display all of the social media group which are marked as public.

    But, I found no solution for receiving the name by id. So my solution at the moment works, but seems to be a bit static and complicated.

     $user_visibility_levels = bp_xprofile_get_fields_by_visibility_levels($post->post_author, 'public');
      $soc_instagram = xprofile_get_field_data('Instagram', $post->post_author);
      $id_instagram = xprofile_get_field_id_from_name('Instagram');
      $soc_website = xprofile_get_field_data('Webseite', $post->post_author); 
      $id_website = xprofile_get_field_id_from_name('Webseite');
    
       if(in_array($id_instagram, $user_visibility_levels)){
             echo "<td>Instagram</td><td>$soc_instagram</td>";
       }
       if(in_array($id_website, $user_visibility_levels)){
             echo "<td>Webseite</td><td>$soc_website</td>";
       }
    

    It would be a dream to receiving fieldname, fieldvalue of a user filtered by the level. Is there any way? Or how I can improve the code above?

    Thanks!

    #314927
    ma3ry
    Participant

    Can anyone tell me how to convert DOB to Age without using the bp xprofile fields plugin.

    I have found several snippets to add to functions.php but none work for me.

    Thank you.

    #313862
    Rajyaseva Academy
    Participant

    my Website : http://www.rajyaseva.com

    i have registration link in menu which leads to http://www.rajyaseva.com/register/

    the page opens very properly but afte user fills up the form and clicks on register butten.

    the massage popps up saying there has been critical error on your website.

    buddypress version 6.3.0

    Note that user gets registered on website but the extendend profile fields that he filled up while registering are not recorded and they apear blank upon login.

    #313828
    VibeThemes
    Participant

    It is possible but not recommended. BuddyPress already has member profile fields. You should use that and it is internally supporpted by buddypress, just make sure you enable the “auto-link” in the profile field while editing the profile field.

    If you are open on exploring, the WPLMS theme has members directories built on react and they are well connected with BuddyPress profile fields, example : https://demos.wplms.io/members-directory/

    #313801
    judymacmahon
    Participant

    Hi this all started when I couldn’t upload a member profile image – the upload link wouldn’t open.
    I contacted the 3rd party developer -I’ve deleted a plugin that was no longer supported and replaced it with a Buddy Press replacement: https://wordpress.org/plugins/bp-xprofile-custom-field-types/

    This is the error I’m getting and it’s causing an ERROR RENDERING FILE.
    Pagely my server have reinstated access to the dashboard and deactivated the plugin.

    ***here is the error info from them:
    —–
    “Hey Judy,

    The buddypress-xprofile-custom-fields-type plugin was reporting the following php error:

    [14-Sep-2020 07:42:15 UTC] PHP Fatal error: Uncaught Error: [] operator not supported for strings in /dom6056/wp-content/plugins/buddypress-xprofile-custom-fields-type/bp-xprofile-custom-fields-type.php:155
    Stack trace:
    #0 /wordpress-5.5.1/wp-includes/class-wp-hook.php(287): Bxcft_Plugin->admin_init(”)
    #1 /wordpress-5.5.1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #2 /wordpress-5.5.1/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /wordpress-5.5.1/wp-admin/admin.php(175): do_action(‘admin_init’)
    #4 /wordpress-5.5.1/wp-admin/index.php(10): require_once(‘/wordpress-5.5….’)
    #5 {main}
    thrown in /dom6056/wp-content/plugins/buddypress-xprofile-custom-fields-type/bp-xprofile-custom-fields-type.php on line 155

    I went ahead and commented out line 155 of the plugin file wp-content/plugins/buddypress-xprofile-custom-fields-type/bp-xprofile-custom-fields-type.php

    //$notices[] = __(‘BuddyPress Xprofile Custom Fields Type plugin needs <b>BuddyPress 2.5</b>, please install or upgrade BuddyPress.’, ‘bxcft’);
    This seems to allow the dashboard to load but you will want to get in touch with the plugin developer for any additional information or consider looking into replacing the plugin.”

    ——

    I’d like to attach a screenshot of the relevant plugins but can’t see how to do that???

    Thanks
    Judy

    #313736
    amtenbrink
    Participant

    Hi,

    i’m trying to display the extra profile fields data (i created) in my profile page to my friends profiles overview.
    i already displayed it on the members page overview (with a snippet of code from the support forum).

    here are two pictures to make it more clear:

    Profile data on members page:
    https://intranet.cabeje.han-solo.net/all-members-page.jpg

    Missing Data on friends members page in my profile:
    https://intranet.cabeje.han-solo.net/my-freinds.jpg

    This is the code i used for displaying it on members page (stored in bp-custom.php):

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

    if ( $membertel = xprofile_get_field_data( ‘telefon’, bp_get_member_user_id() ) ) :
    echo ‘<div class=”telefon”>’;
    echo “Telefon: ” . $membertel;
    echo ‘</div>’;
    endif;

    if ( $membermobil = xprofile_get_field_data( ‘mobil’, bp_get_member_user_id() ) ) :
    echo ‘<div class=”mobil”>’;
    echo “Mobil: ” . $membertel;
    echo ‘</div>’;
    endif;

    if ( $memberfb = xprofile_get_field_data( ‘fachbereich’, bp_get_member_user_id() ) ) :
    echo ‘<div class=”fachbereich”>’;
    echo “Fachbereich: ” . $membermobil;
    echo ‘</div>’;
    endif;

    if ( $membereinrichtung = xprofile_get_field_data( ‘einrichtung’, bp_get_member_user_id() ) ) :
    echo ‘<div class=”einrichtung”>’;
    echo “Einrichtung: ” . $membereinrichtung;
    echo ‘</div>’;
    endif;

    if ( $memberbegleitende_dienste = xprofile_get_field_data( ‘begleitende_dienste’, bp_get_member_user_id() ) ) :
    echo ‘<div class=”begleitende_dienste”>’;
    echo “Begleitende Dienste: ” . $memberbegleitende_dienste;
    echo ‘</div>’;
    endif;

    }
    add_filter ( ‘bp_directory_members_item’, ‘my_directory’ );

    Any Help would be great…
    Thanks!

    #313681
    amtenbrink
    Participant

    Hi!

    i’m wondering why there isn’t shown any content of a member profiel on the members page?

    https://intranet.cabeje.han-solo.net/member-profile-info.jpg

    There is a div with the class .item-extra-content, but it is empty.

    I created several individual profile fields (e.g. departments and phone numbers) which i would like to be seen in the overview of the members page.

    Is this possible?

    Thanks!

    #313616
    Engine44
    Participant

    I have forgotten where a particular page is in Buddypress. When you first register, you fill out the required and optional profile fields. You also get to choose a visibility to assign to each profile field. Where do I go to edit the visibility choices that were originally made? Thanks.

    #313474
    iamthewebb
    Participant

    I’m assuming you’ve tried the basic troubleshooting in https://buddypress.org/support/topic/when-asking-for-support-2/

    It really depends how your database skills are, you can have a look in the YOURTABLENAME_bp_xprofile_fields table to see if these fields are duplicated there.

    You could then search the YOURTABLENAME_bp_xprofile_data table to find which of these isn’t in use and delete.

    You’ll want to backup everything first obviously before making any changes.

    astromaz
    Participant

    In my BuddyPress Members page, under each Member’s name, there is a line like:

    active 8 seconds ago

    I want to disable it.
    Also I want to disable the green tick on the profile picture (which shows the online status)
    Also I want to show the profile fields under each name in members page, it is just showing Name by default, I want it ti show other profile fields.

    #313243
    werny
    Participant

    In my Buddypress Profile Fields there is the field “Name”.
    It is mandatory and I cannot change the settings of it.
    How can I change the privacy settings to “optional” and change the privacy settings like
    “visible only to my friends”, “public” or “only for me”?

    #313221
    kjcarleo
    Participant

    That doesn’t appear to address the issue. I want to be able to assign them to a particular role (User Role Editor), in this case, I created one called “Community Outreach Coordinator” and I simply want them to have permissions to edit user and extended profile fields.

    Kevin

    eduardof
    Participant

    I need to add a default value in some extended profile fields in buddypress registration form so this data is not repeated.

    I have seen that I have to use the variable xprofile_set_field_data() but I don’t know exactly in which .php file to implement it and what code to put

    #313190
    shanebp
    Moderator

    In that section, any fields under Base (Primary) will appear on the reg form.
    Click Add New Field Group and put your profile fields in that Group and they will not appear on the reg form.

    #313089
    astromaz
    Participant

    I want to create a simple Marriage Bureau Site in which people (who want to find partner) will fill a registration form to submit heir profile (the form will have extended fields). These profiles will then will searchable using the filters of the fields in the form. And I want to use more filters to search like Color, Education, Age, City, etc…

    Now Please help how can I achieve this in buddypress, which themes? which plugins? etc

Viewing 25 results - 176 through 200 (of 3,608 total)
Skip to toolbar