Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,076 through 1,100 (of 5,755 total)
  • Author
    Search Results
  • #261105
    dev grl
    Participant

    Is there a way to require a profile pic upon registration? I cannot see the option to set up a field for that in the form fields, but would like to do this.

    dev grl
    Participant

    I used this plugin to achieve a personal and business version of my user registration based on conditional settings: https://buddydev.com/plugins/conditional-profile-fields-for-buddypress/ but now when I’m logged in as the user and want to go into my account and edit the profile fields..I cannot get see all of the fields that I want to edit.

    matt2006
    Participant

    Hi @danbp
    thanks for your Tipp.

    he problem is, that BP Auto Group Join lets me add users to groups only by “Member Types” not by vustom xProfile fields.

    Is there anyone here, who could customize the plugin for us?

    The intended data flow would be:
    Input via Gravity Forms -> Gravity Forms User Registration Add-On adds a new user with certain xProfile information -> Modified “BP Auto Group Join” adds new user to certain BP groups.

    Thanks for helping!
    Matt

    For your information:
    I manage this project for a Non-Profit-Organsation called “Economy for the common good”, which stives for a new economic system. He have associations all over Europe which are recognised as charitable.
    Please see here for more Info:
    https://en.wikipedia.org/wiki/Economy_for_the_Common_Good
    https://old.ecogood.org/en

    #260970
    davehakkens
    Participant

    OK, we got it to work in a different way. Special thanks to @coffeywebdev for the help.
    For those interested:

    This snippet is used in the functions.php to get the locations from the profile fields and show the flag image.

    function dh_get_flag_by_location($country){
      if($country <> '' && !empty($country)){
      $country_filename = get_stylesheet_directory_uri() . '/img/flags/' . sanitize_file_name($country) . '.png';
      $country_path = get_stylesheet_directory() . '/img/flags/' . sanitize_file_name($country). '.png';    
         if(file_exists($country_path)){
           $html = '<img src="' . $country_filename . '"/>';
         } else {
           $html = $country;
           echo '<!--' . get_stylesheet_directory_uri() . '/img/flags/' . sanitize_file_name($country) . '-->';
        }
      echo $html;
      }
    }

    Then we needed to change 2 templates to show this flag image in
    the Bbpress forum replies and on the buddypress members page. So we added the code necessary to show the flag
    bbpress/loop-single-reply.php
    <div id="country" style="float:left;margin-right:.5em;"> <?php $user = get_userdata( bbp_get_reply_author_id() ); $country = xprofile_get_field_data( 42, $user->ID ); dh_get_flag_by_location($country); ?></div>

    buddypress/members/members-loop.php
    <div class="member-location"> <?php $country = bp_get_member_profile_data('field=Location'); dh_get_flag_by_location($country); ?></div>

    #260963
    shubhambenara
    Participant

    Hi,

    On members loop page- only username , Marital status and city is shown . I want to add more profile details below gravatar.

    Please help..

    Shubham

    #260949
    matt2006
    Participant

    Hi guys,
    I need a solution to add people that signed up via gravity forms “User Registration Add-On” to a specific buddypress group.

    Group-o-Matic Plugin looks like a very good solution:
    https://wefoster.co/buddypress-group-o-matic-adding-members-to-groups-based-on-profile-fields/
    https://wordpress.org/plugins/buddypress-groupomatic/

    But it is very outdated. Or does it still run on an up-to-date Buddypress and WordPress installation?

    Do you know an alternative? Or another solution for my problem?

    Thankyou for your support!
    Cheers,
    Matt

    #260895
    michel4534
    Participant

    Hello everyone,

    I need your help because:

    My member profile page is located at : localhost/répertoires-des-membres/members/%name% and I want to change it for localhost/profile

    Before request your help I tried :

    – Every solutions written in older posts of support and I read all documentation
    – I tried to change my template profile page of my theme lovestory to front.php and function.php

    – I tried to use widgets and drop it in profile part

    But I can’t success. Maybe I missed a information ??

    In fact I can find a profile page when I’m looking at : localhost/repertoires-des-membres/members/%name%

    Bu I don’t know how I can change the link to localhost/profile.

    I past my night and my day on but nop 🙁

    And this is what I’m looking for I want when my members connects they will be redirect to there own profile page.

    I installed Buddypress with BP extended profiles and custom fields.

    I’m using lovestory theme maybe the template profile page of it brings problems ??

    Please , brings me your helps to resolve it 🙂

    I posted a message before but I haven’t answers. Might be because my request was wrong.

    #260851
    michel4534
    Participant

    Hello everyone 

    I’m a beginner and I request your help for finish my project. 

    Thanks to Buddypress + BP custom fields + BP profile search I can make a wonderfull system but I miss one thing : 

       A simple profile page with my custom fields made by BP custom fields + avatar for member. And If possible with a button to edit and delete profile

    I’m not able to do that. I haven’t find a plugin for or tips for code.

    In fact my theme lovestory have a profile page but she’s not working like I want and my customs fields can’t appear on 

    Please could you tell me how to solde my problem  because i’m working for since two days and I’m dreaming about that at night XD ! 

    Thank’s you

    #260847
    metalhead
    Participant

    Hello Buddypress buds!

    A lot of people have been talking over the past couple of years about “how to require a profile photo upon registration. And I know it’s a risky thing to do, but many of us are willing to take that risk.

    There are a handful of plugins that try to assist with this procedure, but some fail, and some are only partially successful. The best solution that I’ve found is Xprofile Custom Fields. With this plugin, and a lot of help from the author, I’ve managed to get profile photos to be required in the registration process. However, the issue I’m having is that the users are unable to effectively change their profile photo by using the options in the Buddypress “Profile” section/menu. The user can still click “Change Profile Photo,” and it will accept their upload, but the old photo remains in the member directory & in the user’s profile itself.

    I think there must be a miscommunication occurring due to this new way of gathering the user’s original profile photo. It seems like some code, pertaining to the Buddypress “Change Profile Photo” function needs to be tweaked, but I can not pinpoint the function, which would be the first step towards fixing this issue.

    To demonstrate how I’m requiring the profile photo upload in the registration, here is the function I’ve added to my theme’s functions.php file:

    add_filter( 'bp_core_fetch_avatar', 'my_custom_avatar', 10, 2 );
    function my_custom_avatar( $avatar, $params ) {
        if ( 'user' === $params['object'] ) {
            // Get the src of the original avatar.
            $array = array();
            preg_match( '/src="([^\"]*)"/i', $avatar, $array );
            if ( count( $array ) > 1 ) {
                $old_url_avatar = $array[1];
                // Get the new url of image.
                $uploads = wp_upload_dir();
                $img = maybe_unserialize( BP_XProfile_ProfileData::get_value_byid( 5218, $params['item_id'] ) );
                if ( ! empty( $img ) ) {
                    $new_url_avatar = $uploads['baseurl'] . $img;
    
                    // Replace the old src with the new url.
                    $avatar = str_replace( $old_url_avatar, $new_url_avatar, $avatar );
                }
            }
        }
    
        // Return the avatar.
        return $avatar;
    }

    I’d like to mention that I have asked the plugin author about this, but my message on that plugin’s support forum has been deleted twice, making me think I should give the man a break.

    Here are some specifications of my site:

    The site can be reached here.

    It’s running on WordPress v4.6.1, Buddypress v2.7.0, & using BuddyPress Xprofile Custom Fields Type v2.6

    “5218” is the field ID for the “Upload Image” field.

    Thanks and sorry if I posted in an inappropriate forum, I think I chose the right one.

    buckyb
    Participant

    Hi, I’m using the plugin BuddyPress Admin Only Profile Fields to hide certain xprofile fields, I have quite a few, when viewing the admin EDIT (front view) page, it shows a blank white screen. I cannot figure out whats wrong with the site, if anyone can help I’d greatly appreciate it.

    radair2002
    Participant

    Hi Buddypress and Members,

    Is there a way to display a “xProfile Field Group Name” by slug for example, with the fieldnames as links below the group name, on the groups overview page. The link would show the searchresult for the members having selected this field value in their profile. So actually it would just need to get the Keyword for the fieldname.

    That is to make an overview page with more details on how the members are sorted.

    Obviously the field is not related to a user ID.

    Example:
    – Group “Sports”
    – Profile Field Group “Display: Disciplins”
    – Profile group fields “Links: Tennis, Football, Rugby” (By clicking on the link you get to see all members that have selected the link search item)
    – Group “Hobbies”
    – Profile Field Group “Display: Disciplins”
    – Profile group fields “Links: Dance, Drawing, Programming” (By clicking on the link you get to see all members that have selected the link search item)
    …

    In my mind the logik would be something like “get all fieldnames from field group “ID” and make a link to search page”.
    Example:
    <a href="/members/member_?search=###fieldname###">###fieldname###</a>

    Kind regards

    Rolf Service – Onlineplaner

    #260823
    buckyb
    Participant

    Wondering whether or not having over a thousands xprofile fields will slow down wp site. My site seems to be rather slow, and I think this might be an issue, can anyway confirm this?

    #260810
    Venutius
    Moderator

    It could be, difficult to answer since you have not given a great deal of detail on what features you want. You can create multiple extra profile fields which are searchable, you can use a plugin like BP Profile Search to enable all sections of the profile to be searchable, and of course BP supports public and private forums.

    #260730
    jowaltham
    Participant

    Hi

    I’m just dipping my toe into BuddyPress and my client needs to moderate profile changes but I haven’t been able to find any solution yet. To that end I’m having a go at developing something myself but I’m a bit stuck.

    My approach so far has been to create a new visibility level of ‘moderated’ and make it hidden unless you are admin.

    To stop people from changing the visibility level themselves I’ve set the the visibility to ‘Enforce field visibility’ but this stops admin from being able to change it on the user’s profile too.

    So is there a way I can introduce a third option of ‘Enforce field visibility except for admin’?

    Just for context, my next steps (not yet attempted) are to on save of profile to email admin and set all the users fields to moderated. Then on admin view of a profile to have a button that changes fields with moderated visibility back to their defaults. Does this sound like I’m on the right track?

    Thanks for your help!
    Jo

    MatrixMedia
    Participant

    Hello
    I would exclude automatically, some categories of the blog post, in the activity stream. It’s possible?

    I saw that the same problem was seen here: https://buddypress.org/support/topic/possible-to-exclude-post-categories-in-activity-stream-and-make-a-user-profile-private-like-with-pri/

    But applying the same function with the latest version of BuddyPress, it does not work. is possilibe?

    I also tried to customize the Post Types default ‘post’, following this guide: https://codex.buddypress.org/plugindev/post-types-activities/

    changing fields as well:

    add_post_type_support( 'post', 'buddypress-activity' );
    function customize_page_tracking_args() {
        // Check if the Activity component is active before using it.
        if ( ! bp_is_active( 'activity' ) ) {
            return;
        }
        bp_activity_set_post_type_tracking_args( 'post', array(
            'component_id'             => buddypress()->blogs->id,
            'action_id'                => 'new_blog_post', // or 'new_post'
            'bp_activity_admin_filter' => __( 'Published a new post', 'emt-buddypress' ),
            'bp_activity_front_filter' => __( 'Posts', 'emt-buddypress' ),
            'contexts'                 => array( 'activity', 'member' ),
            'activity_comment'         => true,
            'bp_activity_new_post'     => __( '%1$s shared a new <a href="%2$s">post</a>', 'emt-textbuddypress' ),
            'bp_activity_new_post_ms'  => __( '%1$s sahred a new <a href="%2$s">post</a>, on the site %3$s', 'emt-textbuddypress' ),
            'position'                 => 100,
        ) );
    }
    add_action( 'bp_init', 'customize_page_tracking_args' );

    Finally I tried to customize the content of the post, in activity stream, as always suggested in this post:
    guide:https://codex.buddypress.org/plugindev/post-types-activities/
    or this:
    https://buddypress.org/support/topic/custom-activity-new-post-content-not-broken-after-update-the-post/

    This is my function:

    function record_cpt_activity_content( $cpt ) {		
        if ( 'new_post' === $cpt['type'] ) {
            $cpt['content'] = '<a href="' . get_permalink( $post->ID ) . '" class="activity-content-title" >' $post->ID). '</span><br />' 
    		. get_the_post_thumbnail( $post->ID, '') . '<br /> <br />'
    		. get_post_field('post_content', $post->ID);
        }
        return $cpt;	
    }
    add_filter('bp_before_activity_add_parse_args', 'record_cpt_activity_content');

    The problem is that the added HTML

    <a href="' . get_permalink( $post->ID ) . '" class="activity-content-title" >' $post->ID). '</span><br />

    tags are not preserved when the post is published. Solutions?

    Thanks for your attention and assistance

    #260708
    attercop
    Participant

    Hello ! I’ve been looking everywhere for a solution, but since I haven’t found anything that is a real solution, I’m posting a new topic.

    My problem is : the emails sent by BuddyPress are in plain text and not in html. I’ve looked into the plugins we have installed, but none are SMTP. We’re using WordPress 4.6.1, BuddyPress 2.7.1 and the following plugins :
    Advanced Custom Fields
    AMP
    Appfull
    BbPress
    Bottom Admin Bar
    BP Emails for BBP
    BuddyPress Votes
    BuddyPress Xprofile Custom Fields Type
    Duplicate Post
    Glue for Yoast SEO & AMP
    Gravity Forms
    Gravity Forms CSS Ready Class Selector
    Hero Slider
    Loco Translate
    Meta Box
    Multiple Post Thumbnails
    Page Builder par SiteOrigin
    Redirection
    Reveal IDs
    rtMedia for WordPress, BuddyPress and bbPress
    SiteOrigin CSS
    SiteOrigin Widgets Bundle
    TinyMCE Advanced
    Ultimate Addons for SiteOrigin
    WordPress Social Login
    WP Viral Quiz
    Yoast SEO

    I’ve seen someone suggest modifying the bp core functions, which is a really bad idea and not a viable solution for my problem.

    Anyway, thanks in advance !

    #260682
    elgroyconboy
    Participant

    Hello,

    I’m developing a website for my company and we’re trying to sync the assigned group data in buddy press with the user so when we go into mailchimp we can sort/partition our lists in mailchimp by the corresponding group.

    The code we’re using to sync all the other data in extended profile is here, but my concern is that we can’t pull the group the same way because it’s not something that gets added in the extended profile. I’m almost certain that I can’t pull the group with these parameters because when i look in the database, there’s no user-ID tied to any group. However, when i go into buddypress groups there’s users assigned to them.

    This is the function we’re using to sync:

    add_filter( ‘mailchimp_sync_user_data’, ‘mailchimp_buddypress’, 10, 2 );
    //Write the function
    function mailchimp_buddypress( $data, $user ) {

    //Get user ID
    $user_id = $user->ID;

    // Store Xprofile fields in the $data variable
    $data[‘JOBTITLE’] = xprofile_get_field_data( 11 , $user_id );
    $data[‘ORG’] = xprofile_get_field_data( 12 , $user_id );
    $data[‘CITY’] = xprofile_get_field_data( 36 , $user_id );
    $data[‘STATE’] = xprofile_get_field_data( 16 , $user_id );
    $data[‘COUNTRY’] = xprofile_get_field_data( 18 , $user_id );
    $data[‘PHONE’] = xprofile_get_field_data( 19 , $user_id );
    $data[‘SALUTATION’] = xprofile_get_field_data( 3 , $user_id );
    $data[‘GROUP’] = bp_get_current_group_id( 1 , $user_id );
    //Return the data
    return $data;

    }

    Right now the last line “$data[‘GROUP’] = bp_get_current_group_id( 1 , $user_id );” outputs a “0”.

    Thank you for reading! Hoping someone on here can help me.

    #260676
    Martijn
    Participant

    Hi,

    I’m using :
    echo bp_member_profile_data('field=geboortedatum')

    To display date of birth (geboortedatum in Dutch) of a member, This is a extra profile set as date selector, where the date format is set to d-m-Y.
    But with this code it is displaying it as Y-m-d on the members loop.

    How can I change the date format for the display? I don’t care how it is saved really, I just want to show it in like d-m-Y. (Normal for dates in Dutch)

    Kind regards,

    Martijn

    #260598
    davehakkens
    Participant

    What do you mean with standalone version @danbp? I use a bbpress and buddypress plugin. I figured this is more for Buddypress since it has to do with buddpress profile fields.

    Anyway thanks for the code, looks good! But it doesn’t seem to work after adding it into the functions.php. I haven’t got experience using filters so can’t seem to find the problem..

    #260577
    davehakkens
    Participant

    Hello.

    I would like to show country information from users in our forums next to their name.
    The country information is taken from the profile fields.

    Option 1
    Is to show the country name directly from the profile field data.
    I’ve almost got this done by putting this snippet in the loop-single-reply.php
    <div id="country"> <?php echo bp_member_profile_data('field=country'); ?></div>
    However this displays the country of the user that started the topic, not who made the reply.

    Option 2
    This would be a bit more difficult but preferred. And that is showing a country flag. flag

    I’m stuck on how to continue. Other topics about this are super outdated and don’t provide an answer. Any suggestions?

    Hi,

    I’ve created two drop-down fields in xprofile and added one option each just to save them. In the registration page, their options are dynamically populated through jquery. Registration is always successful but when the option populated by jquery is selected, it is not being saved. While the option added when creating the fields is selected, it is being saved.

    Is it really required to add all the options in the drop-down fields to be able to save it to the user’s extended profile?

    Wordpress Version: 4.6.1
    Buddypress Version: 2.7.0

    #260489
    gatelli
    Participant

    Hi, since last BP 2.7 there is a new date picker for profile fields, with absolute and relative range.

    Since, my custom code below doesn’t work anymore.

    $custom_date=(bp_get_profile_field_data(array ('field'=>22,'user_id'=>$user_id)));

    it doesn’t return anything.

    How can I get this date field please ?

    #260429
    danbp
    Participant

    Hi @davidself1001,

    i think BP Profile Tabs is a plugin to create “nice looking tabs using the jQuery UI”, it is not the xprofile component !

    xprofile fileds and field groups (the tabs) management is located at
    dashboard > users > profile fields. What you see on that screen is normally what you have in the DB.
    Once you created fields and field groups in xprofile, you will see the group tabs in the plugin.

    #260397
    danbp
    Participant

    Hi,

    xprofile use 4 tables: _xprofile_data, _wprofile_fields, _xprofile_groups and _xprofile_meta

    But your description is unclear. Which settings are you talking about ? The one on dashboard or the one on profile, on front-end ?

    Can you give an example of your profile settings and tell what do you think is missing in regard of the DB content.

    chkavada
    Participant

    It seems like BuddyPress hides profile fields without data in profile view. How can I change this functionality? So that all fields gets displayed, even if they haven’t been filled up?

Viewing 25 results - 1,076 through 1,100 (of 5,755 total)
Skip to toolbar