Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 4,651 through 4,675 (of 5,755 total)
  • Author
    Search Results
  • Ali Erkurt
    Participant

    I think it’s about “onchange” event, right? But how can I integrate this to the fields?

    #86897
    Roger Coathup
    Participant

    @boonebgorges – Great that you think it can be done with the existing tables (I was considering adding some additional tables keyed on the user profile id). The hook into xprofile at the right place is what I was looking for.

    We are going to filter out profile fields where the user hasn’t input a value anyway (and not display them). I take it this is as simple as checking whether the field value is an empty string. Although, as you point out, you would still want these displayed on the edit page.

    So, it’s check for NULL and check for standard field (vs. extended field) name as well.

    #86878
    Boone Gorges
    Keymaster

    This could be done, but it would take some custom coding. Here’s how I would structure it.

    1) Write some JS for the Edit Profile page that inserts a new set of fields based on user input (say, a button that says “Add another employer”). This wouldn’t really require any BP code in and of itself.

    2) Hook a function to ‘xprofile_updated_profile’, which is a do_action hook called right after all of the xprofile fields are saved. Grab the $_POST data, and see if there are any items in that array for which no profile fields yet exist. Use xprofile_insert_field() to create the new fields (it might be like employer_2_employer_address – something that iterates nicely).

    3) On the front end, you’ll want to make sure that not all of the employer groups are shown to each user on the edit profile screen. By default, each user sees each profile field. That means that if one person on your system listed ten employers, then everyone would see ten employer field groups when they went to edit their profile. You could do this in the profile edit template, by checking bp_get_the_profile_field_name() against a list of permitted field names.

    #86875
    paulhastings0
    Participant

    Yeah, I would agree that a functionality like that would be nice.

    #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.

    #13667
    Wythagy
    Participant

    I’m attempting to make a custom search page that lets users browse through the members directory based on certain custom xprofile fields that they select in the search form. I have 3 custom xprofile fields: Member Type, Gender, and Location. With the way the database table (bp_xprofile_data) is setup, all of those values (under the ‘value’ column) are stored in different rows within the same table with corresponding xprofile ID’s (under the ‘field_id’ column).

    For the life of me, I can’t figure out how to filter results based on these multiple parameters when they aren’t listed within the same row, but are listed within the same table. For example, normally I would simply query “SELECT user_id FROM bp_xprofile_data WHERE xprofile1=’General’ AND xprofile2=’Male’ AND xprofile3=’Los Angeles'”…..but I can’t do that because of the way the table is setup and the info is organized.

    So how do I format the query? Do I need to use subqueries (if so…I’m lost on where to go with those!)? To sum up: How do I filter search results from bp_xprofile_data through a MySQL query matching multiple xprofile values?

    I’ve been working on this for 4 hours and I’ve done more research than I care to admit, especially because this is probably a much easier solution than I realize. Any help would make you the coolest person alive. Seriously!

    Roger Coathup
    Participant

    We want to be able to dynamically create new profile fields:

    e.g. we have a set of profile fields for employment: employer name, dates employed, etc.

    When the user enters one set of employment fields, we want to create another set, so they can enter a second employer, and a third employer and so on.

    Creating as many set of fields as the user needs for all his employers. (this is pretty much the way Facebook or LinkedIn works)

    It looks to me like we need either arrays of profile groups, or a way to dynamically create fields.

    Any thoughts on how to do this in BuddyPress?

    #13618
    Days With The Lord
    Participant

    1. Everything on the admin bar is not working.
    No profiles for any members, it just goes back to the members list, the URL changes but it does not display/
    same thing happens when you click on edit profile

    2. When you login from the homepage. The enter username and password fields do not change to the logout button, but once you click on “activity” or “members” it shows that you are logged in

    This is running on a yahoo small business hosting plan. Installed wordpress from their custom admin page.
    and installed plugins from the WP-admin page

    #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

    Nicola Pagani
    Participant

    Hi everyone,

    I’m a buddypress newbie user, i’m trying di display more information in user’s profile page; now i’m able to displaty only the username….

    How can I display user’s first name, surname and my custom registration fields?

    Thanks a lot!!!

    Br0k3n

    #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.

    mediabros
    Participant

    I have a function that add some custom profile fields in to the user profile in the backend wp-admin/profile.php. This is WordPress only so do not get confused.

    here you can find the function

    http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields

    There are four actions added.

    add_action( ‘show_user_profile’, ‘user_show_define_category’ );
    add_action( ‘edit_user_profile’, ‘user_show_define_category’ );
    add_action( ‘personal_options_update’, ‘user_save_define_category’ );
    add_action( ‘edit_user_profile_update’, ‘user_save_define_category’ );

    The function will add a input field into the backend user profile of WP. /wp-admin/profile.php

    What i am looking for are the equivalents of the WP show_user_profile, edit_user_profile, personal_options_update and edit_user_profile_update for Buddypress.

    So that the input field will show up on the frontend profile in g.e. /members/username/profile and /members/username/profile/edit/group/1

    so

    instead off

    add_action( ‘show_user_profile’, ‘user_show_define_category’ );

    something like

    add_action( ‘show_buddypress_user_profile’, ‘user_show_define_category’ );

    #13501
    amahesh
    Member

    Is there a way to remove the counts next to the Friends and Groups fields in each member’s profile?

    Thanks

    #13467
    study
    Participant

    I’ve found quite a few posts on registration and profile fields but none exactly about my problem (which makes me think I’m missing something very basic or others would have posted about it.)

    I’m running WP+Buddypress both current.

    In the WP Profile there are separate fields for User Name, First Name, Last Name and Nick name with the ability to choose which you wish displayed. If these fields are changed in the WP Profile they are displayed properly in BuddyPress. But I see no way to allow users to access these fields in their Edit Profile page in BP or more importantly to include them in the BP registration form.

    I definitely need the First Name and Last Name fields to be separate as they are in the WP profile and I want to allow users to choose what form of name is displayed.

    Is anyone familiar with this issue?

    Is there something basic I’m missing about the integration of WP and BP?

    Any links to suggested sources or other guidance greatly appreciated.

    #13427
    Josef
    Participant

    I’ve been messing around trying to get a custom second page working in the registration and have run into some issues. Basically I used the bp_complete_signup hook to change the registration step ( $bp->signup->step = ‘example-step’;) and then added an if statement to the register.php file to detect the step and display a second set of xprofile fields (by changing the xprofile group #) – things work fine and dandy till here, problem is getting submit to work a second time and register the fields in the db and set the step to the final ‘completed-confirmation’.

    This should be pretty standard for someone wanting to add additional profile info to registration that isn’t in the “base” profile group.

    Right now it refuses to complete the second step. ( I think because the step is not incremented properly)

    Also Is it a problem to edit core files directly – sometimes the hooks won’t cut it. How will such edit work with updates?

    Thanks for any and all help!

    #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.

    roelant
    Participant

    I added some fields in the Profile Field Setup and saved it. But when I then register a new account I still can only put in a username and the email adress. How is this possible? I expected to see my new fields here…

Viewing 25 results - 4,651 through 4,675 (of 5,755 total)
Skip to toolbar