Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,851 through 1,875 (of 5,755 total)
  • Author
    Search Results
  • #230046
    Cartographer
    Participant

    Hi there,

    I added some custom (simple text) fields for the members profiles but I noticed that visiting in the frontend a member’s profile these fields are links (e.g. http://example.com/members/?s=music.

    All these fields direct to a searching result page based on the custom field’s text.

    I think these fields should be simple text, not link, right?

    sr_blasco
    Participant

    Hi,
    It would be great if we could assign a value/label pair for each option in dropdown lists and all “Multi option” fields. Thus we could change labels whitout change stored values.

    In my case I have a dropdown list of states, and my users select their state. I need to correct a spelling mistake, but if I change the option value, the users with this state assigned are losing their choice.

    If we could achieve this, it would be much more flexible. Is there any way to do customize BP like this? Is possible to get this in future BP updates?

    Regards,
    Fernando

    #229864
    nimagh
    Participant

    Hi,
    As I want to categorize user’s profile types and extend BuddyPress abilities to multi user profile types (Like: Student, Teacher, Staff & … with separate registration fields) also enable each of them to choose between various subscription plans, there is needed to have following facilities:

    1- Enable users to choose between various profiles types (different registration fields)
    2- Enable them to choose between various subscription plans (FREE, BRONZE and GOLD)
    3- Sending/Receiving Message, Creating Groups & Inviting other users to add to the group

    Furthermore you may find a schematic (PDF format) of what I am looking for at:

    http://www.mediafire.com/download/45x1bw071f93sr5/Registration+Process.pdf

    nimagh
    Participant

    Hi,
    As I want to categorize user’s profile types and extend BuddyPress abilities to multi user profile types (Like: Student, Teacher, Staff & … with separate registration fields) also enable each of them to choose between various subscription plans, there is needed to have following facilities:

    1- Enable users to choose between various profiles types (different registration fields)
    2- Enable them to choose between various subscription plans (FREE, BRONZE and GOLD)
    3- Sending/Receiving Message, Creating Groups & Inviting other users to add to the group

    Furthermore you may find a schematic (PDF format) of what I am looking for at:

    http://www.mediafire.com/download/45x1bw071f93sr5/Registration+Process.pdf

    #229862
    Brent Havill
    Participant

    Hi Henry

    I went to ‘plugins’/buddypress/settings, and found the following (I note that “account settings” is not ticked – could this be it?)
    I have bolded the ones that are ticked currently.

    Settings:

    Component Description
    Component Description
    Extended Profiles Customize your community with fully editable profile fields that allow your users to describe themselves.
    Account Settings Allow your users to modify their account and notification settings directly from within their profiles.
    Friend Connections Let your users make connections so they can track the activity of others and focus on the people they care about the most.
    Private Messaging Allow your users to talk to each other directly and in private. Not just limited to one-on-one discussions, messages can be sent between any number of members.
    Activity Streams Global, personal, and group activity streams with threaded commenting, direct posting, favoriting, and @mentions, all with full RSS feed and email notification support.
    Notifications Notify members of relevant activity with a toolbar bubble and/or via email, and allow them to customize their notification settings.
    User Groups Groups allow your users to organize themselves into specific public, private or hidden sections with separate activity streams and member listings.
    Site Tracking Record activity for new posts and comments from your site.
    BuddyPress Core It‘s what makes time travel BuddyPress possible!
    Community Members Everything in a BuddyPress community revolves around its members.

    danbp
    Participant

    hi franklinkevin321,

    I have disabled all of my xprofile plugins

    For our understanding, can you tell which plugins you’re speaking about ?
    The snippet is intended for BP, so if you use another source to generate your profile fields, it maybe possible that it screws your template.

    phos flip
    Participant

    Hello – I am using woocommerce fields for registration and would like to use the ‘company_name’ field from woocommerce as the main display name in Buddypress (on profile and members list etc.)

    Rather than hack different template files I was hoping to create a function that would replace the existing ‘bp_displayed_user_fullname’ with the woocommerce ‘shipping_company’

    I’ve tried various ways but ultimately failed so am hoping somebody might be able to point me in the right direction? please!! 🙂

    Niels Pilon
    Participant

    Nope, it returns an error that there are no members to display. I guess that I could replace ‘Robin van Persie’ with something blank like this

    substr( strstr( ' ', ' ' ), 1 )

    Just to clarify, this is the full code in my functions.php to sort the members:

     function alphabetize_by_last_name( $bp_user_query ) {
        if ( 'alphabetical' == $bp_user_query->query_vars['type'] )
            $bp_user_query->uid_clauses['orderby'] = "ORDER BY substring_index(u.display_name, ' ', -1)";
    }
    add_action ( 'bp_pre_user_query', 'alphabetize_by_last_name' );
     
    // To reflect the alphabetical sorting of the member directory, you
    // could also format the names to show the last name first. Here is
    // a helper function to format names as follows: Last, First Middle
    // Etc.
    //
    // To use this function every time a user's name is shown or queried,
    // simply add it as a filter:
    //
    // <code>add_filter ('bp_get_member_name', 'format_last_name_first' );</code>
    //
    // To only reformat the name in the member directory, change your
    // members/members-loop.php file in your (child)theme. Look for
    // <code>bp_member_name()</code>
    // and replace it with
    // <code>echo format_last_name_first ( bp_get_member_name() );</code>
     
    /**
     * Helper function for formatting a name: Last, First Middle Etc.
     *
     * @param string $name
     * @return string Formatted name
    **/
    
    function format_last_name_first( $name ) {
        if ( $first_space = strrpos( $name, " ") )
            $name = substr( $name, $first_space + 1 ) . ", " . substr( $name, 0, $first_space );
        return $name;
    }
     
    // BONUS: To make alphabetical sorting the default sorting, use the
    // function below. 
    //
    // In order for this to work properly, <code><option value=&quot;alphabetical&quot;></code>
    // must be the first option for the members-order-select in
    // members/index.php.
     
    function sort_members_alphabetically( $qs = '', $object = false ) {
        if( $object != 'members' ) //for members only
            return $qs;
     
        if ( empty( $qs ) || ! strpos( $qs, "type=" ) ) {
            $args = wp_parse_args($qs);
            $args['type'] = 'alphabetical';
            $args['action'] = 'alphabetical';
     
            $qs = build_query( $args );
        }
     
        return $qs;
    }
    add_action( 'bp_ajax_querystring', 'sort_members_alphabetically', 11, 2 );

    I guess that members are sorted by the default WordPress first and last name fields right? Just because we’ve added some custom fields to the member profile pages to split their names in first name, ‘surname prefix (it’s for words like ‘van’ ‘de’) and last name. Not all members have a surname prefix though.

    franklinkevin321
    Participant

    Recent install of wordpress/buddypress and all of my profile fields of my members are returning in the format of a hyperlink. I need them to return in plain text. I believe there’s a PHP file somewhere I just need to make a small edit too to accomplish this. Any ideas?

    Deterjan
    Participant

    Hi,

    I use Wpml with BPML. I achieved to translate every part of my website but the problem is i cant translate even if with string translation to profile fieldd value. On register, search and profile edit page is okey. All fine. But my profile page is not okey. When i edit my profile staff i see all of them is Turkish but when i updated settings all fields turn English.

    It’s just because that fields come from xprofile_date_value and i cant translate data value.

    I tried everything, even if i imported values to string translation by editing xprofile_template.php but my problem still goes.

    Anybody have idea ? how can i fix this ?

    #229232
    wrify
    Participant

    Has anyone found a solution to this?

    Basically is as follows:

    Profile fields > Base (Primary) > Category

    Then, field type is a drop down with options

    I just need to list those options in a frontend page, click on it and get the members for that option.

    #229207
    shanebp
    Moderator

    Re: 2. Importing s2member custom fields to buddypress fields
    Instead of, for now, editing the codex page, please note the args parameter for add_action.

    So the ‘2’ here is the arguments parameter. add_action('wp_login','s2_profile_field_update',10,2);
    So the hook provides 2 arguments – very handy & useful.
    But your example doesn’t use them in the function s2_profile_field_update.
    You can use the $user arg instead of $current_user and thereby get rid of that global.
    Use this to see the data in $user:

    function hook_arg_display( $user_login, $user ) { 
       var_dump( $user ); 
    }
    add_action('wp_login','hook_arg_display',10,2);

    imo: There is no Option 1.

    #229179
    Myg0t
    Participant

    Hey all,

    The most recent post I saw concerning this issue was back in 2013, and it included a link to @modemlooper ‘s website.

    http://modemlooper.me/allow-youtube-embed-in-buddypress-profile-fields/

    But the URL seems to be down…

    Any chance this golden info is somewhere else? Or even better; is @modemlooper still with us today?

    Thanks,
    \M

    #229144
    Hugo Ashmore
    Participant

    @myg0t Thanks for sharing that with the community, S2 Member has wide use so this ought to be useful to people.

    One point though it’s best not to advise that people edit a core file /buddypress/bp-templates/bp-legacy/..etc BP has a fairly well defined template hierarchy overload allowing files to be copied to the theme or child theme, those are the copies one should edit.

    Another minor point rather than have to edit & pass the arguments in the template could bp_parse_args() perhaps work for this?
    Using bp_parse_args() to filter BuddyPress template loops

    In respect of the profile data would not setting the user visibility options on the profile field/s in the backend not work to provide the privacy for address fields, just a thought but I may have missed the point of this aspect.

    Lastly this could make a nice user example guide for the BP codex if you’d care to post it there and we’ll slot it under a section appropriate.

    absdigital
    Participant

    Hi guys. As you can probably guess I’m new to Buddypress so excuse me if I’m asking a stupid question.

    The website I want to create is basically a directory for tradesmen (plumbers, electricians etc.) that people can search for by their postcode (zip code).

    Features I need are:

    1. Two types of users
    – TRADESMEN: With a public profile that advertises their services.
    – USER: This is the user who is searching for tradesmen. They have the option to create an account so they can send messages, leave reviews and have a shortlist of tradesmen. This profile will obviously be private.

    2. Search by distance using postcode.

    3. Different features for different membership levels. So tradesmen who pay for a premium membership will be able to link to their website / have extra fields on their profile.

    4. Customers are able to leave reviews & star rating on tradesmen profiles.

    —–

    Is this something that Buddypress will do or am I barking up the wrong tree? Any suggestions on how to go about doing this?

    Many thanks to anyone who can help me!

    #229137
    Myg0t
    Participant

    Hey there guys, i’m working on a website where i’m integrating s2member functionality with buddypress. I thought some of the things I’ve come across may be useful to other people.

    1. Filter Users Displayed in Members Directory by s2member role.
    In your plugins/buddypress/bp-templates/bp-legacy/buddypress/members/ folder edit the file “members-loop.php”. Just under
    <?php do_action( 'bp_before_members_loop' ); ?>

    at the top 20 lines of the file we need to write some PHP code to build a comma separated list of ID’s based on the s2member role or roles that we want. In my case I wanted only members of “s2member_level2”.

    <?php
    $args = array ( 'role'  => 's2member_level2', 'fields' => array( 'id' ) );	
    
    // The User Query
    $user_query = new WP_User_Query( $args );	
    		
    $custom_ids = '';
    for($i = 0;$i < sizeof($user_query->results); $i++){
        $a = $user_query->results[$i]->id;
        $custom_ids .= $a.",";
    }
    ?>

    Now that we’ve made a comma separated string of ids ($custom_ids), we need to pass it to the members loop.

    Change
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>

    to
    <?php if ( bp_has_members('per_page=30&type=alphabetical&'.'include='.$custom_ids ) ) : ?>
    In my case I wanted to make sure atleast 30 members showed up, and that they were in alphabetical order.

    Done.

    2. Importing s2member custom fields to buddypress fields

    You may be asking; why??? Well, it turns out that when you have the s2member option to integrate with buddypress it doesn’t actually import it’d data to the buddypress tables. It just binds it’s self to the ‘Base’ group, Which will show up by default in buddypress profiles. When it doesn’t import to the buddypress tables, it was very difficult for me to manipulate how the information showed up. Particularly the fact that I have the users give me their address information, and I don’t want that to even be an option to show in user profiles.

    So instead of using s2member to integrate automatically, I wrote a function that would check a users information when they login. If they have certain information in s2member that is not in their BP Profile, it will add it automatically.

    in functions.php add the code:

    <?php
    	
    add_action('wp_head','s2_profile_field_update',10,2);
    function s2_profile_field_update() {
       global $current_user;
       get_currentuserinfo();
    		
       if( get_user_field("s2member_login_counter") < 1000 ) 
       {
         if( current_user_is("s2member_level2") ) 
         {
    	if(xprofile_get_field_data('Nationality',$current_user->id) == '' &&       get_user_field('nationality') != '') 
            {
    	 xprofile_set_field_data('Nationality', $current_user->id, get_user_field('nationality'));
    	}				
          }
        }		
      }
    
    ?>

    You can change Nationality to what ever the name is of the extended BP field (in users>profile fields).
    And of course you can duplicate the if statements for how every many fields you want to import from s2memeber -> BP.
    Also note that if(get_user_field("s2member_login_counter") < 1000) mean’s that this process will run for any user that logs in with membership role s2member_level2 and has logged in less than 1000 times. I used 1000 times because I want any member at this moment who logs in to have their profiles populated. In the future I will drop it down to 1 or 2.

    I’ll post more as I gather it. But in the mean time I hope this helps some people.

    \M

    #229034
    wrify
    Participant

    I created an extended profile field and used a drop down box for its choices (5). How can I list the 5 choices of the extended profile field?

    Thank you

    #228844
    #228479
    Katalo
    Participant

    Hello!

    Im building a custom template with a Members loop. I am using the standard loop but I want to filter the results with values from the users xprofile fields. When I use only one search term ie:

    ( bp_has_members( ‘search_terms=Sweden’ ) )

    it works fine and give me the members who have filled in Stockholm as a City

    But if I want to add another search term ie:

    ( bp_has_members( ‘search_terms=Sweden Stockholm’ ) )

    No results are displayed.

    Do I need to anable multiple search terms somewhere? And how do I use even more than two search terms?

    #228265
    aakash.s
    Participant

    Hello there,

    I have a favor to ask of you. I’m planning to built a website in wordpress which will have a social networking module. I expect 3,00,000+ users registration on my site. The question is can BuddyPress manage this amount of users?
    If yes, then what could be the expected database size consumed by BuddyPress to manage 3,00,000+ users assuming 5 text fields in the user profile.
    Will there be any kind of special database requirements needed?

    Wordpress ver: 4.0
    BuddyPress ver: 2.1.1

    Thanx in advance
    Regards

    #228183
    Tanner Moushey
    Participant

    Hey @qmai! I have setup a system before to link BuddyPress Profile Fields to SalesForce, but it takes a good amount of custom work. The method I ended up doing was to add a piece of custom meta to the Profile Field edit screen that allows you to specify a SF field id. Unfortunately, the process of adding custom meta to a BuddyPress Profile Field is a lot harder than it sounds, but it is doable.

    Let me know if you have any further questions. I can’t seem to find the code that I wrote for this, but I’d be happy to work through this with you.

    MVHartley
    Participant

    Hello folks,

    I’ve been researching translation plugins for my buddypress site (WordPress 4.0 Buddypress 2.1.1 – clean install as of yet, running twenty thirteen theme right now, just starting out on the theme development for my site, I want to pin the language issue down before doing anything)

    I want to be able to provide my visitors the option of displaying my buddypress in different languages however I do NOT want to translate any of the blogs/posts/comments/forums/any user generated content I just want to translate text on the BP pages, text in the menus, alerts etc

    The only slightly complicated bit to it is I have a few custom defined profile fields that I would like to translate

    To illustrate, take this example

    my (hypothetical) member page would read:

    Name : Matt <—User entered text, not translated
    languages: English, Swedish <—selected from drop down list/check boxes
    Country : England <—selected from drop down list/check boxes
    Nationality : English <—selected from drop down list/check boxes

    MY activity feed/entry would read

    “Hello everyone, my name is Matt”

    ****Now let’s say a French visitor visits my profile, they would read

    Nom: Matt
    Langue: Anglais, Suédois
    Pay : Angleterre
    nationalité : Anglais

    “Hello everyone, My name is matt”

    **I do NOT want my comment to read**

    “Salut tout le monde, je suis matt”

    So in short, I want to be able to provide translations of everything on the website that I have coded in there (menus, alerts, instructions, registration emails, info pages etc) but leave alone anything that a user has typed

    I would really appreciate being pointed in the correct direction for this – almost all of the plugins I’ve come across so far are focused on providing translations for everything, blog posts included

    Cheers!

    Matt

    #227975
    shanebp
    Moderator

    I believe it only runs when a profile is updated.
    Try doing a ‘save’ on a BP profile – edit screen.

    If it works, at least you know the sync is working going forward.

    That doesn’t address your real issue re all your existing users.
    You’ll probably need to write some code that loops thru your users and creates xprofile fields for them.

    Take a look at function xprofile_set_field_data in
    bp-xprofile/bp-xprofile-functions.php

    #227970
    Emineminero
    Participant

    @shanebp yes, its enabled but nothing happens.
    The filled fields on WordPress profile arent showing on buddypress profiles :/

    #227959
    Emineminero
    Participant

    Hi, i have 2600+ users regitered in my website and i recently installed BP so I wouldn’t like to make them Re-fill their profiles, is there any posible way to to this sync thing between the Woprdpress profile (Name, Last name, About Me)?
    Im on wp 4.0 and bp 2.1.1
    Also I read something in the forum from @henrywright where he says that adding xprofile_sync_wp_profile will do that, but i dont know in wich php should i put that.

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