Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 4,251 through 4,275 (of 5,755 total)
  • Author
    Search Results
  • #21430
    enurai
    Member

    Hi,
    I’ve been looking for a way to do this and haven’t been able to find one. I want to place certain extended profile fields in different places on the user profile/display differently depending on their value.
    More specifically:
    How can I query to find the value of a specific extended profile field?
    Thanks!

    #110507
    aces
    Participant

    Seems there may have been a country list in version 1.0 : https://svn.buddypress.org/branches/1.0/bp-xprofile/prebuilt-fields/

    #110497
    Roger Coathup
    Participant

    In early BP versions, there used to be a few handy pre-populated profile fields – including a country list (I think).

    Would be nice to have them back. As @djpaul suggests, some SQL and a bit of plugin coding should do the trick…. Paul: is there a nice schematic of the xprofile tables available?

    velomash
    Member

    I found a much easier solution for this….

    Line 59 of the register.php file contains this code when it’s forming the query to get all the signup fields…
    “

    The ‘profile_group_id=1’ restricts the query to only the base fields. Delete that argument and it should display all the fields. The code looks like:
    “

    #110436
    hran
    Member

    I am having the same problem, but are you sure this isn’t a bug in the plugin? It shouldn’t need 33MB of RAM just to activate the plugin. I got the same error trying to activate Buddypress 1.2.8 on a fresh install of WordPress 3.1.1 on a high-quality host. There are a huge number of warnings that come before the memory error. Here’s the full output with debug on (I cut out another ~50 warnings on call-time pass-by-reference).

    `Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of apply_filters(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-core.php on line 565

    Warning: Call-time pass-by-reference has been deprecated in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-core/bp-core-classes.php on line 228

    [many more errors on call-time pass-by-reference…]

    Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of apply_filters(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-friends.php on line 433

    Notice: Undefined offset: 0 in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-core/bp-core-catchuri.php on line 85

    Notice: is_page was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. (This message was added in version 3.1.) in /sites/www.mysite.org/web/content/wp-includes/functions.php on line 3422

    Notice: Undefined offset: 2 in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-core/bp-core-catchuri.php on line 158

    Notice: Undefined property: stdClass::$loggedin_user in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-forums.php on line 530

    Notice: Trying to get property of non-object in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-forums.php on line 530

    Notice: Undefined property: stdClass::$displayed_user in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-core.php on line 1070

    Notice: Trying to get property of non-object in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-core.php on line 1070

    Notice: Undefined index: user-avatar-default in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-core.php on line 160

    Notice: Undefined property: stdClass::$profile in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-classes.php on line 816

    Notice: Undefined index: bp-xprofile-base-group-name in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-xprofile.php on line 101

    Notice: Undefined index: bp-xprofile-fullname-field-name in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-xprofile.php on line 102
    WordPress database error: [Table ‘z_mysitewp.wp_bp_xprofile_data’ doesn’t exist]
    SELECT value FROM wp_bp_xprofile_data WHERE field_id = 1 AND user_id = 1

    WordPress database error: [Table ‘z_mysitewp.wp_bp_xprofile_fields’ doesn’t exist]
    SELECT * FROM wp_bp_xprofile_fields WHERE id = 1

    WordPress database error: [Table ‘z_mysitewp.wp_bp_xprofile_fields’ doesn’t exist]
    SELECT id FROM wp_bp_xprofile_fields WHERE id = 1

    Notice: Undefined index: bb-config-location in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-forums.php on line 23

    Notice: Undefined index: bp-xprofile-base-group-name in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-xprofile.php on line 101

    Notice: Constant BP_XPROFILE_BASE_GROUP_NAME already defined in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-xprofile.php on line 101

    Notice: Undefined index: bp-xprofile-fullname-field-name in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-xprofile.php on line 102

    Notice: Constant BP_XPROFILE_FULLNAME_FIELD_NAME already defined in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-xprofile.php on line 102

    Notice: Undefined index: fileupload_maxk in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 35
    WordPress database error: [Table ‘z_mysitewp.wp_bp_groups_members’ doesn’t exist]
    SELECT COUNT(DISTINCT m.group_id) FROM wp_bp_groups_members m, wp_bp_groups g WHERE m.group_id = g.id AND m.user_id = 1 AND m.is_confirmed = 1 AND m.is_banned = 0

    Notice: Undefined property: stdClass::$current_group in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-groups.php on line 223

    Notice: Trying to get property of non-object in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-groups.php on line 223
    WordPress database error: [Table ‘z_mysitewp.wp_bp_messages_recipients’ doesn’t exist]
    SELECT unread_count FROM wp_bp_messages_recipients WHERE user_id = 1 AND is_deleted = 0 AND sender_only = 0

    Notice: Undefined variable: count_indicator in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-messages.php on line 115

    Notice: Undefined index: action in /sites/www.mysite.org/web/content/wp-content/plugins/buddypress/bp-core/bp-core-signup.php on line 571

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /sites/www.mysite.org/web/content/wp-admin/includes/media.php on line 1963`

    #110405
    shanebp
    Moderator

    Solution
    `
    function user_nav_add_anchor() {
    global $bp;
    $bp->bp_nav .= “#your-anchor”;
    $bp->bp_nav .= “#your-anchor”;
    //etc
    }
    add_action( ‘wp_head’, ‘user_nav_add_anchor’,9 );
    `
    Anyone know of a way to do this with a loop through all the $bp->bp_nav[] fields ?

    #21383
    Mahdi
    Member

    Hi
    I want to make some system to post a specific field of a user profile to another website (as action) and show up their schedule!
    so the question is how can i get access to for example a select box value?
    for example if user selected 1 in that select box how can i get that?
    just like $_POST[“fname”];
    what should i specify this “fname” to? i mean what will it be in profile fields?

    #110294

    In reply to: In Profile fields

    pcwriter
    Participant

    @onyx808

    Oops… my comment about “Required” fields is a bit (a lot?) misleading :-(

    Users will not be able to save their profile settings until all required fields are filled out… that’s what I meant by “trapped” :-)

    #110286

    In reply to: In Profile fields

    Marcos Nobre
    Participant

    ooooooooooooh!! @pcwriter thank you thank you thank you!!!!

    #110284

    In reply to: In Profile fields

    pcwriter
    Participant

    @onyx808

    That’s a basic feature of profile fields. Go to “Profile Field Setup” in your backend and you’ll see this:
    “NOTE: Any fields in the first group will appear on the signup page.”

    Simply click the “Add New Field Group” button and create the fields you want in that new group. They will not appear on the signup page, but will be available on the user’s Profile page.

    Be careful with the “Required” setting though. If you set fields in new groups to “Required”, your users will be trapped on their profile page the first time they visit until they fill in all required fields.

    #110283
    mabjustmab
    Participant

    Thank you for responding. I will check that. Unfortunately, a much larger error has cropped up that bumped this style issue back.

    I will let you know how the test goes. (mostly I appreciate you letting me know I was in the right file. It was driving me nuts!)

    #21379
    Marcos Nobre
    Participant

    Hey guys,

    is there a way or plugin to have a set of field in the profile page that are not from the signup form?

    I want to have a few fields with a set of questions like “Favorite Restaurant” and the user be able to edit this and add their favorite restaurant etc… similar to facebook.. I dont have to overload the sign up form…

    thank you!
    Onyx

    #110277
    sdpkelkar
    Member

    Hi.
    Thanks for the code Brajesh! I just had one question. I’ve defined different profile field groups for different user types. I want to restrict the visibility of these filed groups to only those users (e.g. users of type A get to see only those profile fields for user type A). My problem is that when I use your code

    <?php global $bp;
    if(bp_get_current_profile_group_id()==1)
    bp_core_redirect($bp->displayed_user->domain.”profile/edit/group/2″);
    ?>

    it shows the same profile fields for all user types. I guessed it was because 1 is the base profile group ID and tried changing the if loop to

    if(bp_get_current_profile_group_id()==ID number of group)
    bp_core_redirect($bp->displayed_user->domain.”profile/edit/group/ID number of group”);

    but now it shows me only the ‘Editing base profile’ screen

    Is this code correct?

    Cheers

    #110275
    shanebp
    Moderator

    You are in the right file, so if you are not seeing your changes, then the file is not being overwritten.

    Try something simple to see if your edited file is being loaded.
    Change this:
    `

    `
    To:
    `
    HELLO HELLO HELLO HELLO HELLO HELLO
    `

    #110270
    mabjustmab
    Participant

    bumbpity?
    nothing, hunh?

    mabjustmab
    Participant

    based on the comps from the designer, I have to restructure the fields on the profile from tables to divs in order to properly style them. I found this file and made the appropriate changes:
    wp-contentthemesbp-defaultmemberssingleprofileprofile-loop.php

    I swear this is where the fields are, but when I upload my updated file, the changes are not taking.
    is there someplace else I need to edit?

    a “find in file” search did not show any other tables. I can keep beating my head on this one or someone can tell me it can’t be done.

    any help appreciated!

    Thanky!

    #110101
    shanebp
    Moderator

    Argh – much faster, coding and parsing-wise, to do this in members_single_profile/edit.php
    as opposed to doing an add_filter on ‘bp_get_the_profile_field_options_select

    #110028
    shanebp
    Moderator

    Error caused by checking for ‘acceptable value’ before save.
    See
    /* Check the value is an acceptable value */
    around Line 735 in bp-xprofile.php

    I removed ‘selectbox’ from the ‘if’ and profile save now works.

    shanebp
    Moderator

    I need to do a Between search on a Height profile field.
    But the admin profile field setup doesn’t allow for a difference between option value and displayed option.

    So you get:
    `under 5′ – 152cm`

    What I need is:
    `under 5′ – 152cm`

    I can generate what I need by adding, to bp-custom :
    `add_filter( ‘bp_get_the_profile_field_options_select’, ‘profile_field_options_select_swap’, 10, 1 );`
    and using str_ireplace to swap the values.

    But if the user edits their profile on the Height selector, they get the error – “There was a problem updating some of your profile information, please try again.”

    Any hints on cause and fix for this error ?

    #21298
    tobiasjones
    Member

    Is it possible to update the extra profile fields from a plugin? Say, from an LDAP integration pulling the information from the LDAP directory. I know how to pull the information, just not how to update the profile fields.

    #21291
    jewlzmcq
    Member

    I’ve added some profile fields to the first group and selected them as required, yet users are being allowed to complete registration without completing those fields. Also, when existing users try to update their profile to include this information they get an error message. How can I make sure that a registration is denied unless they complete ALL fields I’ve marked as required and let existing users update their information for these fields.

    #109848
    tiger625
    Member

    Not sure. I just downloaded and it worked. I did notice when I was in a member profile and looked at my public profile tab the fields showed up. When not logged in or logged in as another user, the fields were not visible. I am also using Role Manager plugin, not sure if that makes any difference.

    #21249
    jewlzmcq
    Member

    I’ve added some profile fields to the first group and selected them as required, yet users are being allowed to complete registration without completing those fields. Also, when existing users try to update their profile to include this information they get an error message. How can I make sure that a registration is denied unless they complete ALL fields I’ve marked as required and let existing users update their information for these fields.

    #109766
    ultimateuser
    Participant

    @graq Yes into bp_xprofile_fields.

    GRAQ
    Participant

    I have some drop down fields. When a user goes to edit them, the data is saved correctly. However, when they revisit the edit profile tab, none of the drop downs show as selected. Is this a bug? Or have I broken something?

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