Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 2,451 through 2,475 (of 5,755 total)
  • Author
    Search Results
  • Johan Falk
    Participant

    Hi

    I am looking for a way to list the members of my site through a shortcode. What I want to include in this list is:
    – Include avatar, name and any other profile field that I choose
    – Be able to sort the order of the member list on a profile field of my choosing
    – In the best of worlds I would also be able to group the list by a profile field of my choosing

    I’ve looked into the plugin Bowe Codes, but it don’t seem to have the possibility to show specific profile fields or sort on them.

    Any ideas, thanks!

    #174263
    Henry
    Member

    After taking a look at how BP does it my questions 1 and 2 have been answered. Now facing a new but related problem:

    When I redirect the user back to the edit profile page to display the “Too many characaters have been entered” message – any new text the user may have entered into the input fields is lost.

    For example – the max characater limit for location is 10

    1. Location value is currently: London
    2. The user updates the location field to: London, United Kingdom
    3. The field validation kicks in – the page is refreshed with error message displayed “Too many characters”
    4. Location value reads: London

    So, you can see the illegal value the user has entered “London, United Kingdom” has been lost. My aim is to redisplay the illegal value so the user can modify it under 10 characters.

    Perhaps location isn’t the best example. Imagine if the user has written an about me paragraph which is over the character limit – on clicking submit the page refreshes and they are told they’ve entered too many characters. Their old about me text is displayed and all their new hard work has been lost.

    #174259
    Henry
    Member

    Hi @danbp, thanks for the link. That isn’t quite what I’m after. It is more to do with limiting the length of what is echo’d to screen where as I’m trying to validate and error handle the data which is captured.

    #174258
    danbp
    Participant

    Hi @henrywright-1,

    A similar question was solved here: http://wpquestions.com/question/showChrono/id/3529

    #174256

    In reply to: Profile Additions

    modemlooper
    Moderator

    hmag is highly customized. if you do not know css and php you will not be able to achieve that.

    You can create profile fields and sections in the wp-admin under the user menu but having a custom profile will take coding skills

    Henry
    Member

    I am trying to limit the length of 2 xProfile fields (location {field id 2) and about {field id 3})

    This is what I have come up with so far for location.

    function custom_validate_xprofile_location( $data ) {
        global $bp;
        $max_location_length = 56;
        if ( 2 == $data->field_id ) {
            if ( strlen( $data->value ) > $max_location_length ) {
                bp_core_add_message( 'Too many characters old chap. Please try again', 'error' );
                wp_redirect( $bp->loggedin_user->domain . 'profile/edit/group/1/' );
                exit();
        	}
        }
        return $data;
    }
    add_action( 'xprofile_data_before_save', 'custom_validate_xprofile_location' );

    2 questions:

    1. Is this the best way of doing it?
    2. How do I factor in limiting the length of the about field as well? I think this bit is harder than it looks.

    Note: I’ve also got maxlength=x in my form inputs.

    #174244
    Geebz
    Participant

    Okay, I’m a super NOOB but this might be an easy answer.

    I’m getting how to set form fields account registration but once the profile has been activated, how do people make profile additions in order to have their profiles look like this:

    http://www.hmag.com/members/kimamms/

    I need the same exact form fields etc….

    Help 🙂

    #174243
    Geebz
    Participant

    Okay, I’m a super NOOB but this might be an easy answer.

    I’m getting how to set form fields account registration but once the profile has been activated, how do people make profile additions in order to have their profiles look like this:

    http://www.hmag.com/members/kimamms/

    I need the same exact form fileds etc….

    Help 🙂

    #174226
    martinbeaulne
    Participant

    Hi ! I have a question about sharing users on different wp/bp installations.

    I looked all around the web to find solutions ( Ok, I just googled.. ), and always got the same:
    * THE SOLUTION *
    « If you want to share users between two sites, just put another prefix on the second site, and add CUSTOM_USER_TABLE and CUSTOM_USER_META_TABLE to point at the first site’s prefix »
    * *
    That is cool. But I fear it wont work with Buddypress. Nor with plugins like Geo My WP.

    You see, buddypress uses a lot of database fields, like bp_xprofile_fields. Will the second site be able to access the xprofile fields of users when I use THE SOLUTION ? I mean… the solution only transfers user_table and user_meta… not bp_xprofile_fields, or bp_friends, or wppl_friends_locator ( for geo my wp plugin… ).

    So, if I want to let my second site access my first site’s users and xprofiles, don’t I need to add more than user_table and user_meta in its config.php ?

    Thanks for the answer 🙂

    EDIT: Or is it easier with multisite ? It is not enabled yet… And my main site is already in a subfolder… As I understand it, the main site of a multisite must be at the root of the other sites… ?

    applegateian
    Participant

    Hi

    When a user edits their profile by changing some xprofile fields, they hit save. The page loads, saves the changes but provides no notification to the user that it has been successful.

    However, when they Change Avatar and save the page, a notification IS provided to the user.

    Is there a way to provide the notification on edit profile too?

    Thanks,

    Ian

    #174141
    @mercime
    Participant

    @paralys there’s no plugin which would implement the synchronization of the BP xProfile fields and the WP User Profiles in the backend. Either you need to hire a developer to create this plugin for you, create it yourself or wait for someone to create one and release it to the public.

    #174105
    danbp
    Participant

    Hi @samgeppi108,

    wow what a video you did for such a common issue. PBCAK ! Sorry to say that, this IS working but you haven’t completely set up the right component (profile).

    Now the good news. Take a breath man, you’re saved ! In 5 mn you can start your community 😀

    Connect to the WP admin as super-admin. Click on Users on the left col, and select Profile configuration from the sub-menu.

    This will open a window where you have by default only one group of fields named BASE. This group is the one showed by default on the register page, so new user can enter some information such as their name, and anything else you want to have in that place.

    If you prefer to let them complete their profile skills after registering, you should create a second group of fields on the previous mentionned setting page. You cal add as many groups you want, with as many fields and type of fields you need.

    Once done and saved, connect you as a normal user and go to the profile profile setting tab. You will see 2 tabs. Name and X, you just created. You can fill in the fields and save.
    If you go on the profile tab, anything will be on !

    Read here the documentation:
    https://codex.buddypress.org/getting-started/configure-components/ Users>profile fields

    Keep the Codex in mind, because it’s the first place to go before coming up here to claim “it doesn’t work !” 😉 It does !

    #174048
    Paralys
    Participant

    Morning All,

    As the title suggests Im wanting to basically link the frontend editable fields to the backend fields somehow (When I refer to front end im talking about the editable profile within Buddypress and respectably the back end being the admin dashboard within WordPress)

    For example I use a Livestream plugin where it will auto add their feed to the Livestream page if they add it to their profile in the admin page. Is there a plugin or a way of me either forcing that plugin to look directly at a custom front end field or editing the back end field to basically equal the front end?

    This is just one example of the links as I would like to link quite alot to the backend fields

    Hope someone can help or point me in the right direction

    Thanks
    Para

    #174045
    Marco Verhagen
    Participant

    Hi,

    I was able to link a member to their profile page. Members can now view the complete profile page of other members. However I prefer to show only one field (biography) to other members. So if someone visits its own profile it shows all profile fields. I someone else visits his profile it only shows the biography. How can I fix that? The code that I’am now using is added.

    
    <?php
    /* @var $EM_Event EM_Event */
    $people = array();
    $EM_Bookings = $EM_Event->get_bookings();
    if( count($EM_Bookings->bookings) > 0 ){
    ?>
    <?php
    $guest_bookings = get_option('dbem_bookings_registration_disable');
    $guest_booking_user = get_option('dbem_bookings_registration_user');
    foreach( $EM_Bookings as $EM_Booking){
    if($EM_Booking->status == 1 && !in_array($EM_Booking->get_person()->ID, $people) ){
    $people[] = $EM_Booking->get_person()->ID;
    echo '<li><a>get_person()->ID ).'>'. get_avatar($EM_Booking->get_person()->ID, 50) .'<br> '. $EM_Booking->get_person()->display_name .'</a></li>';
    }elseif($EM_Booking->status == 1 && $guest_bookings && $EM_Booking->get_person()->ID == $guest_booking_user ){
    echo '<li><a>get_person()->ID ).'>'. get_avatar($EM_Booking->get_person()->ID, 50) .' '. $EM_Booking->get_person()->display_name .'</a></li>';
    }
    }
    }
    ?>
    

    For buddypress and wordpress I use the latest verstions

    I hope someone can help. Please let me know if I have to use other sources to find an answer on my question. 😉

    Thanks in advance!
    Marco

    #173915
    Henry
    Member

    The way to do this would be to wrap info fields in conditional statements like this

    if member type is X then
        // display info field
    sjrsmile
    Participant

    Pretty much exactly what the title says,

    Is there a way to change the field visibility of certain fields while the user is a level 1 subscriber on s2Member?

    Basically if they stop paying can I revert their profile to only show one or two chosen fields instead of everything without deleting it?

    Hope this makes sense.

    #173733
    auch07
    Participant

    Hello,

    One thing I have been looking into doing is being able to search members by a combination of profile fields. IE: I have 2 categories of users (Employers and Jobseekers). Jobseekers obviously provide services and employers require services. Example of services would be Childcare and Daycare.

    How would one be able to for example search for all Jobseekers that provide Childcare. For the sake of anyone willing to help we can call the two profile fields (User_Type and Service_Provided). So I would like to be able to search for all (User_Type=Jobseeker) and (Service_Provided=Childcare).

    I know in the Members Loop for example we can search for all users that would say have Childcare in their profile and it returns in the confines of the members page with something like this (members/?s=Childcare). Essentially I am just wanting to be able to search by 1 additional criteria but as of yet am not sure how. Any help or direction would be greatly appreciated. Thanks.

    tayenewm
    Participant

    The sort members function in our members directory stopped working. Not sure how to fix this. Is there any known bugs? Also want to add a sort criteria which would be populated by one of the Profile question fields. Can you please advise on how to fix and add an additional sort item?

    I do not know code, so please give provide lots of details.

    thanks
    wp. 3.7.1
    BP 1.8.1
    Avada theme by themeforest 3.0.1
    http://www.youngwomeninenergy.com

    #173692
    Mohammad Raheel
    Participant

    hi thanks @shanebp i am really biggner for my self i did what you said but matter is when i tried but never got result kindly check my code tell me i already spend 4 days.

    <?php
    global $wpdb, $bp;
    $result = $wpdb->get_results(“SELECT user_id FROM wp_bp_xprofile_data WHERE value = ‘$_POST[language]’ OR value = ‘$_POST[budget]’ OR value = ‘$_POST[style]’LIMIT 0 , 30”);
    print_r($result);
    $result = array();
    //$values = maybe_unserialize($result);
    //echo var_dump( maybe_unserialize( $result ) );
    //$values = $result;
    //$value = bp_unserialize_profile_user_id( $values );
    //$values = implode( “, “, $value);
    //echo $values;
    //print_r($values);
    //so you have to ‘manually’ unserialize them
    foreach($result as $user_id=>%d)
    {
    echo “Key=” . $user_id . “, Value=” . %d;
    echo “<br>”;
    }
    //$values_str = implode( ‘,’, $getty );
    //print_r($values_str);

    //)

    echo $get_these_members;
    $get_these_members = ‘include=’ . substr($get_these_members, 0, -1);

    ?>

    pankipan4e
    Participant

    OK so I’m struggling with this one for hours now and can’t get it to work, but it feels like there is a strait forward simple and elegant solution. All I want to do is to validate the value of a custom xprofile email field when a member is editing its info. Trying to mimic how xprofile_screen_edit_profile() works with returning error before saving, I tried to add_action/add_filter/do_action/apply_filter to xprofile_updated_profile, xprofile_screen_edit_profile, bp_actions, bp_screens, xprofile_data_value_before_save and more, but I failed every time probably because I don’t know how to properly use them. All I want to do is simple as:

    function my_validate_email () {
        if (!is_email($field_id->value))
    bp_core_add_message( __( 'That email address is invalid. Check the formatting and try again.', 'buddypress' ), 'error' );
    //and redirect back to editing, same like for the required fields
    }
    add_action( 'bp_hook_here', 'my_validate_email' );

    Please help with the correct way of doing this, possibly without using additional plugin
    Thanks so much

    #173652
    Sergio Bourbey
    Participant

    Hello,
    i’m running bp on my website and i ran into a problem i don’t have a solution for. I hope someone here can help me.

    I have the bp profiles and i want to add a field with skillset to the profile. One profile can contain multiple skills. I also need the skills to be searchable. The BP members will define and add new skills.

    My first thought was to add a custom taxonomy to the wordpress users but then i have to write a lot of code to show it in the bp profile and make it searchable in bp.

    I already have the plugin Buddypress Xprofile Custom Fields Type and BP Profile Search. Can i hook into these plugins and make it work or is there maybe another (better) solution?

    Thanks in advance!
    kind regards Youri

    #173642
    olumi_day
    Participant

    Hey guys, this just might be the stupidest question you’ll ever get here but I’ve been racking my brain and I can’t figure out where to go if, as a registered user, I wanted to edit the secondary profile groups the admin had set up under Profile Fields in the “Users” tab in the dashboard.

    I set up a secondary profile group under the assumption that once a user gets through the primary profile group on the register page, they would be directed the the secondary profile group to fill out the additional profile information.

    That didn’t happen and now I can’t figure out where a user would go to edit that secondary information. I had thought the user would simply have to click on “Edit” under his “Base” profile tab to see the remaining profile fields that weren’t available upon registering but I don’t see them anywhere. Why would I have to go through the trouble of setting up these secondary profile groups if, as a registered user, I can’t get to them?

    Am I doing something embarrassingly wrong here? Someone please help!

    #173638
    takuya
    Participant

    For anyone trying to export xprofile data, here’s what I found.

    http://wordpress.org/plugins/export-user-data/
    This plugin doesn’t seem to support multiple fields export as far as I tested while ago. Anyone else tried?

    http://wordpress.org/plugins/wp-users-exporter/
    It’s no fully updated to the latest, not sure if it’s going to be… But this worked. However, you’ll need to edit the plugin file to erase error messages.

    http://wordpress.org/support/topic/error-invalid-argument-supplied-for?replies=4

    Have you found these plugins useful?
    Do you have any other recommendations?

    #173587
    rianhall
    Participant

    The Code from “SOLVED: Limit Members Loop by Profile Fields” seem easy to implement. I added this to my function.php

    // to exclude only defined roles in the Buddypress Members LOOP
    
    function exclude_by_role($exclude_roles) {
    
    $memberArray = array();
    
    if (bp_has_members()) :
    while (bp_members()) : bp_the_member();
    $user = new WP_User( bp_get_member_user_id() );
    $user_role = $user->roles[0];
    foreach ($exclude_roles as $exclude_role) {
    if ($exclude_role==$user_role) {
    array_push($memberArray, $user->ID);
    break;
    }
    }
    endwhile;
    endif;
    
    $theExcludeString=implode(",",$memberArray);
    
    return $theExcludeString;
    }

    I then added this to my member-loop.php

    <? $excluded_roles = array ('administrator', 'author', 'subscriber'); // this can be any roles you have set up
    	if (bp_has_members( 'exclude=' . exclude_by_role($excluded_roles) . '&' . bp_ajax_querystring( 'members' ) ) ) : ?>
    

    Unfortunately, it still is not excluding any of the specified roles. I took a look at the second example, but not sure where to put the code. Any suggestions?

    #173578
    Benoit Hennegrave
    Participant
Viewing 25 results - 2,451 through 2,475 (of 5,755 total)
Skip to toolbar