Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 2,801 through 2,825 (of 3,593 total)
  • Author
    Search Results
  • #86874
    Roger Coathup
    Participant

    bump! Anyone else tried to do this… it seems a reasonably fundamental thing to want to do with profile fields?

    #86700
    r-a-y
    Keymaster

    Sorry I misunderstood your question. I thought you meant you were looking to join wp_bp_xprofile_data and wp_bp_xprofile_fields.

    I’m thinking you’ll have to join the same table together in order to do what you want.

    #86288
    techguy
    Participant

    I don’t do extra profile fields. I use that to redirect to a payment page so they can pay to join. After they pay, I redirect them to a Thank You page with their payment details. This is just a page with a special page template applied to it. I also have the activation disabled and they are just automatically activated and logged into the site. I can get away with this since they have to pay.

    #86200
    Nicola Pagani
    Participant

    Hi, I understood who can I fill my user profile information if I use custom fields, but how can I show my first_name and surname that I wrote during the subscription?

    Thanks!

    Br0k3n

    #86199
    Nicola Pagani
    Participant

    Hi, thanks a lot hnla,

    but I need to display this information (first name and surname too) in user’s profile tab in the frontend.

    Any ideas?

    Thanks ^^

    #86198
    Hugo Ashmore
    Participant

    Go into the dashboard and look for the BuddyPress ‘Profile Field Setup’ link

    #86160
    nimaha
    Member

    It is my understanding that blog comments should be showing by default but they are not appearing. Every other activity is appearing. Of course, blog comments are the only thing that come from the original WP install so something isn’t linking up. I’d link to it but it’s on a localhost install.

    FWIW, I have made very few customizations to BP so far. It’s mostly all default right now. All components are enabled and all general settings are set to No (meaning I have not disabled anything).

    I only added a few profile fields and added a function to change the default avatar.

    I am testing this on two different registered users, one admin, one subscriber.

    #86109
    ssmediaco
    Participant

    Exactly what I needed! Thanks!

    Boone Gorges
    Keymaster

    It’s going to be more complicated to save items into wp_usermeta (which is I assume what you’re doing, given the link) with update_user_meta() from the BP profile page. You’ll have to hook a function to somewhere in the BP loading process that will catch the value of $_POST and manipulate the data manually.

    Can I ask what might be a silly question? Why don’t you just use BP profile fields? Dashboard > BuddyPress > Profile Field Setup. That’ll add new fields to the profile that can be displayed and updated natively through BuddyPress.

    #85531
    techguy
    Participant

    http://yourdomain.com/wp-admin/admin.php?page=bp-profile-setup (replace yourdomain.com with your domain)

    That’s the page where you can add more fields that people can fill out at registration and will appear in the person’s profile.

    roelant
    Participant

    The first profile group I expanded with some standard fields like, first name, last name, address, country, date of birth and gender.
    Just the basic things about a person I think.

    Please tell me how and what I should change in the php-file and I will give that a try tomorrow!

    r-a-y
    Keymaster

    Did you create separate profile groups? If so, only the first profile group will be displayed on the registration page.

    If you want to add all fields to the registration page, you have to add them all to the first profile group.

    #85165

    In reply to: Privacy for Users

    bryzo
    Participant

    So I’m using the BP Profile Privacy field but its not privacy protecting the activity stream or anything else…just profile fields. How can I prevent anyone but friends from seeing the profile fields, or albums, etc.

    #85146
    contoaberto
    Member

    @mwspr
    Thank u very much.

    @boonebgorges
    Would u please help? Thank u in advance.

    #85125
    mvvspr
    Participant

    @contoaberto

    Its better to notify using @mention feature.So that you will get your reply faster and also the notification goes to the user you intended to ask.Anyways I will do it for you.

    @boonebgorges
    hi, Boone Gorges,

    Thank u very much for the info. But I have to confess I’m very much a newbie to understand what I might have done. Would you mind please explain a bit more – maybe in a dummie way?

    #85017
    Shine
    Participant

    By brackets I meant inequality signs ><.
    When the members try to use them in their status uppdates, forum posts and profile fields, they simply don’t appear. I’m using WP 3.0 and BP 1.2.5.2.

    #84978
    Boone Gorges
    Keymaster

    What do you mean by brackets?
    1 ( these )
    2 { these }
    3 [ these ]
    or something else?

    What’s happening when users try to use them? And in what context are they using them, activity updates or forum posts or profile fields or what?

    And what version of BP/WP are you running? https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/when-asking-for-support/

    #84551
    Aslam Doctor
    Member

    I’m also facing same issue.. even I added manually insert query inside code like this (I have stored the values in session)

    $sql=”INSERT INTO wp_bp_xprofile_data (field_id, user_id, value) VALUES(1,$curr_id, ‘”.$_SESSION.”‘)”;
    result=mysql_query($sql)or die(mysql_error());

    This is storing the data in database but not retrieving :(
    @shedmore did u got this fixed up ???

    #84435

    In reply to: profile fields by id

    Boone Gorges
    Keymaster

    Cool, good luck!

    #84434

    In reply to: profile fields by id

    Horoshiy
    Participant

    ok, thank you for help! I’ll do it by grouping, it’ll be better…

    #84442

    In reply to: profile fields by id

    Boone Gorges
    Keymaster

    That will work. The only problem is that it’s not entirely future-proof. If the structure of the $field object changes in future versions of BP, you’ll have to rewrite the code.

    If I were you, I would use a profile loop, as described at https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-profile-data-loop-bp_has_profile/. That way you can use the built-in template tags, which won’t break when BP is upgraded.

    The xprofile template tags aren’t as fleshed out as I wish they were, but they should work nicely for your purpose. Put the three fields that you want to appear in column 1 in a profile field group, the next three fields in another group, etc. Then it’ll be easy to create the markup using bp_profile_groups() loop.

    #84433

    In reply to: profile fields by id

    Horoshiy
    Participant

    Maybe I should be more concrete. My main task is to get profile fields structured inside the profile page. I need to place fields in 3 columns and in right order. So let’s imagine that we have 9 fields: Login, email, password, First Name, Last Name, Middle Name, Country, City, Address, Place of birth, Date of birth. I need to place Login, E-mail and Password in the first column in the page, First name, Last name and Middle name in the second column and Country, City, Address, Place of birth and Date of birth in the third column.
    So i have field id’s which i can place in my profile page.

    Should i do it like this?


    echo '

    ';
    $field = new BP_XProfile_Field( '1' );
    $field_name = $field->name;
    $field_value = $field->value;
    echo '

    ' . $field_name . ': ' . $field_value . '

    ';

    $field = new BP_XProfile_Field( '2' );
    $field_name = $field->name;
    $field_value = $field->value;
    echo '

    ' . $field_name . ': ' . $field_value . '

    ';

    $field = new BP_XProfile_Field( '3' );
    $field_name = $field->name;
    $field_value = $field->value;
    echo '

    ' . $field_name . ': ' . $field_value . '';

    echo '

    ';
    /* and so on */

    am I right?

    #84428

    In reply to: profile fields by id

    Boone Gorges
    Keymaster

    I understand your question, and you’re right, there is no such function. But from inside of a profile loop, you can use bp_the_profile_field_name(), and it will get the $field_id implicitly from the loop iteration.

    If you don’t want to build a loop, you can get the field name from the $field_id like this:

    $field = new BP_XProfile_Field( $field_id );
    $field_name = $field->name;

    #84424

    In reply to: profile fields by id

    Horoshiy
    Participant

    no-no-no… I think you didn’t understand me… I need to get field name by id but there is NO function

    “xprofile_get_field_NAME( $field_name_or_id [, optional $user_id] )”

    such as “xprofile_get_field_DATA( $field_name_or_id [, optional $user_id] )” which exists.

    #84420

    In reply to: profile fields by id

    Boone Gorges
    Keymaster

    Yes, you can do this with the xprofile template functions, which are located at buddypress/bp-xprofile/bp-xprofile-templatetags.php. Use the profile loops in buddypress/bp-themes/bp-default/members/single/profile/profile-loop.php as a template.

Viewing 25 results - 2,801 through 2,825 (of 3,593 total)
Skip to toolbar