Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 4,951 through 4,975 (of 5,755 total)
  • Author
    Search Results
  • #10021
    edelwater
    Participant

    This should a very simple problem and probably even a php question… One of my profile fields is called:

    Noah’s Ark

    (see http://farmvillechicken.com/members/admin/profile/)

    However, if I try to get the value for this it can not be found. I also tried (backslash) ’ but that also does not seem to work.

    Uhm… so now my workaround is substr( ) with the first four characters to match the word “Noah”……. not really good. I just want to get the value of this Profile field. So addslashes() does not seem to work.

    p.s. I also noticed another issue: when clicking the link above it returns to the main site instead of the profile?

    grosbouff
    Participant

    Hi,

    I would like to create a profile field from a script.

    This profile field is a checkbox and I need to add a default option too.

    I can create the fields, but can’t set the option as child of the checkbox.

    Any idea ?

    How can I do ?

    This do not work.

    $checkbox = new BP_XProfile_Field();

    $checkbox->group_id=$location_group_id;

    $checkbox->type=’checkbox’;

    $checkbox->name=__(‘Location Marker’,’bp-maps-profile’);

    $checkbox->field_order=$key;

    $checkbox_id = $checkbox->save();

    if ($checkbox_id) {

    $option = $checkbox;

    $option->parent_id = $checkbox_id;

    $option->type=’option’;

    $option->name=__(‘Geolocate this address’,’bp-maps-profile’);

    $option->option_order=1;

    $option->order_by=’default’;

    $option->is_default_option=true;

    $option_id = $option->save();

    }else {

    $errors->add(‘bp_maps_profile_field_creation’,__( ‘Error while trying to create the map field’, ‘bp-maps-profile’ ));

    return false;

    }

    #69374
    Pedro Miguel
    Participant

    +1

    If plugin can also import/export Resumees (CV’s) maked with x-profile fields (with a map fields from linkedin to bp option) will be gold.

    peterverkooijen
    Participant

    issue could only be the Email Domain setting on the Facebook application, as far as I know

    That sounds like it to me. Have you checked that Greg? I don’t think it’s anything Buddypress-specific.

    Andy’s version of the plugin works brilliantly for me, including custom queries – except a query for xprofile fields, haven’t figured that out yet.

    #69113
    Mark
    Participant

    @r-a-y: Didn’t see that one, and after hunting around for a while I decided to stop hunting and make one work. I read and write code pretty fast so for me making one work is faster than hunting in this case.

    Anyway, the one I released allows for only showing info to logged in users. The plugin you linked doesn’t do that. Plus I don’t see any reason not to give the user total control over their profile since it’s their info (thus no need for a setting to “Let user decide” )

    Also, the one you linked has controls in the admin panel that govern a user’s profile. So if you want to let a user control their own settings you have to set every profile field to “Let User Decide” which is fine, until you add new profile fields and forget to go back and make that adjustment for the new fields.

    I like the no maintenance route of just automatically letting the user take total control of their info.

    Thanks for the link though.

    And for clarity’s sake, I didn’t write the original code. I simply modified it to work with BP 1.2 and added a few features.

    As for UI, there’s no need for an admin interface so none exists. To handle display of the field controls you have to modify CSS to work with your particular template unless it works out of the box Ok for you. Same as any plugin that puts content on a site.

    peterverkooijen
    Participant

    Thanks justin_k. The discussion mentions this function from “Andy”:

    <?php
    function bp_fbconnect_modify_userdata( $userdata, $userinfo ) {
    $userdata = array(
    'user_pass' => wp_generate_password(),
    'user_login' => $fbusername,
    'display_name' => fbc_get_displayname($userinfo),
    'user_url' => fbc_make_public_url($userinfo),
    'user_email' => $userinfo['proxied_email']
    );

    $fb_bp_user_login = strtolower( str_replace( ' ', '', fbc_get_displayname($userinfo) ) );

    $counter = 1;
    if ( username_exists( $fb_bp_user_login ) ) {
    do {
    $username = $fb_bp_user_login;
    $counter++;
    $username = $username . $counter;
    } while ( username_exists( $username ) );

    $userdata['user_login'] = $username;
    } else {
    $userdata['user_login'] = $fb_bp_user_login;
    }

    return $userdata;
    }
    add_filter( 'fbc_insert_user_userdata', 'bp_fbconnect_modify_userdata', 10, 2 );
    ?>

    Where should I add this? Does this use ‘firstnamelastname’ as username and check for doubles? Does it synchronize and update all the fields in wp_users, wp_usermeta and xprofile?

    Usernames like this, ‘community.net/members/fb_100000441950350’, are really not acceptable imho.

    Where is the query that actually stores the new user data in the database? Is it in the plugin or does the plugin send data back to WP/BP files? I also need to that data stored in mailinglist tables.

    #9878
    jollari
    Member

    I am looking to add new profile fields, but in my case, I can’t add them through the admin panel.

    More specifically, I have a profile field dropdown that will be dynamic from a database. I was wondering if there is anyway to add a profile field in a function.php or bp-custom.php. It would be great to be able to add a field into the profile field array.

    5876247
    Inactive

    I have a question I cannot find an answer to elsewhere If it’s been posted, please accept my apologizes and point me in the right direction. Thanks.

    I am looking to either add custom profile fields to a profile OR have a module or add-on with functionality like the following.

    User selects “Add contact…”

    Then the user can select from an array of choices such as “MSN” , “Yahoo”, “Skype”, and then enter thier contact name next to the selected type. If someone wanted to list more then one of a single type that’s okay…. but they need to select a type and then provide the contact info as a parameter.

    someone else referred to this as chained fields but i dont know if thats how you would describe it in this project.

    It is most similar to the “Schools” and/or “Jobs” function on a MySpace profile, for example. There a user can select their school and then add user specific information (graduated year, clubs, etc.).

    I am looking for a way to include this functionality either on the base profile or with an add on.

    How would you implement this in buddyPress?

    Thank you very much.

    #68399
    gaysurfers
    Participant

    Hi r-a-y

    I have tried to post specific xprofile fields with no success.
    It did work but since I installed the new version of buddypress (Version 1.2.2.1) it seems to have stopped working.
    http://www.gaysurfers.net/members/

    I have tried the following:

    <div class="item-meta"><?php bp_profile_field_data( 'field=Country' ) ?> - <?php bp_profile_field_data( 'field=Surf Spot' ) ?></div>
    
    and also
    
    <div class="item-meta"><?php bp_member_profile_data( 'field=Country' ) ?> - <?php bp_member_profile_data( 'field=Surf Spot' ) ?></div>

    I don’t know which one to use, but anyway none of them works. Is there some more code I need to add for it to work?
    Thanks

    gaysurfers
    Participant

    if you want to have a look at the site, I am talking about this page:

    http://www.gaysurfers.net/members/

    The fields should be displayed next to each members, but it does not happen :(

    #9771
    kiwipearls
    Participant

    Just updated to latest Buddypress today and the latest WordPress MU.

    Decided it was time to update my profile, so created some new fields in Buddypress. Went to edit my profile, submitted the new information and it returened a blank page. Had to use my back button.

    The new data was submitted to the database.

    #68225
    David Lewis
    Participant

    So to sum up:

    • Change your signup slug
    • Add some required custom profile fields (or use the hashcash trick posted at the start of this thread)
    • Disable “Allow blog administrators to add new users to their blog via the Users->Add New page”
    • Delete BuddyPress credit in footer.php
    • Delete wp-signup.php
    • Create a robots.txt file with User-agent: * Disallow: /register/ (or whatever your slug is)
    • If all else fails, use CAPTHCA or preferably a simple random question (what colour is snow)

    Am I wrong or missing anything?

    Also… all of my SPAM registrations were coming from .info domains. I added this to my .htaccess file but I’m not sure it’s correct. I found a million examples via Google search for how to ban full domains or subdomains… but nothing about blocking an entire extension (i.e… whatever.info). Anyway, this is what I wrote:

    RewriteCond %{REMOTE_HOST} \\.info$
    RewriteRule .* - [F]

    gaysurfers
    Participant

    Hi

    I referred to the below to set up members-loop.php so that fields from db table wp_bp_xprofile_data would show up in front of each member.

    <div class=”item-meta”><?php bp_profile_field_data( ‘field=Country’ ) ?> – <?php bp_profile_field_data( ‘field=Surf Spot’ ) ?></div>

    It did work but since I installed the new version of buddypress (Version 1.2.2.1) it seems to have stopped working.

    Anyone have any ideas what to change in the code for it to work again???

    Thanks

    * If you want to show specific profile fields here you can,

    * but it’ll add an extra query for each member in the loop

    * (only one regadless of the number of fields you show):

    *

    * bp_member_profile_data( ‘field=the field name’ );

    atburi
    Participant

    Hi,

    I’m posting this in both the WP.org and BP How-To Forums as I’m not sure which one I should post in. I am building a site that runs a single version of WordPress (latest version) along with the BuddyPress plugin (which included bbPress).

    As I understand it, WordPress has its own search field which searches the WordPress Blog (posts, categories, tags) and individual WP Pages.

    And BuddyPress has its own search field, which searches Groups, Members, Forum Topics, and Blogs (if using WPMU).

    Is there a way to add two more search fields to the drop down menu of the BuddyPress Search, to include a search function for WP Pages, and the WP main Blog.

    I will have a bunch of WordPress pages that I will be using to host profiles businesses in which any user can comment upon at the bottom of the page (through WP comments). So the WP Pages are like their own section which is why I would like to have a separate search category for them.

    This might not be possible to separate the WP Blog and WP Pages while performing a WordPress search. But at the very least it would be nice to have the BuddyPress Search menu also include a search category for all of WordPress.

    I came across the customized Google Site Search in another post, but that isn’t exactly what I’m looking for since you can’t search within specific categories.

    so, any help would be great. I look forward to hearing what options there are.

    Thanks.

    #9730
    tamilhood
    Member

    I currently got these issues on my WP 2.9.2, BP v1.2.2.1

    1. Trying to create profile fields for sign ups (There was an error saving the group. Please try again)

    2. Posting an activity (There was a problem posting your update, please try again.). The activity shows after refreshing the page but when clicking the “view” link it redirects me to the home page.

    3. Send messages using buddypress (There was an error sending that message, please try again)

    4. View the edit profile page (redirects me to home page)

    5. Create a group (There was an error saving group details, please try again.)

    I`m using custom structure of permalinks /%category%/%postname%/

    atburi
    Participant

    Hi,

    I’m posting this in both the WP.org and BP How-To Forums as I’m not sure which one I should post in. I am building a site that runs a single version of WordPress (latest version) along with the BuddyPress plugin (which included bbPress).

    As I understand it, WordPress has its own search field which searches the WordPress Blog (posts, categories, tags) and individual WP Pages.

    And BuddyPress has its own search field, which searches Groups, Members, Forum Topics, and Blogs (if using WPMU).

    Is there a way to add two more search fields to the drop down menu of the BuddyPress Search, to include a search function for WP Pages, and the WP main Blog.

    I will have a bunch of WordPress pages that I will be using to host profiles businesses in which any user can comment upon at the bottom of the page (through WP comments). So the WP Pages are like their own section which is why I would like to have a separate search category for them.

    This might not be possible to separate the WP Blog and WP Pages while performing a WordPress search. But at the very least it would be nice to have the BuddyPress Search menu also include a search category for all of WordPress.

    I came across the customized Google Site Search in another post, but that isn’t exactly what I’m looking for since you can’t search within specific categories.

    so, any help would be great. I look forward to hearing what options there are.

    Thanks.

    #68044
    Pedro Miguel
    Participant

    theres already a plugin who does that, ,you can use the plugin or check the source and adapt to your needs.

    #68003
    e_mcpartlin
    Participant

    Was this ever solved? I am trying to accomplish the same thing – make some profile fields private. Thanks!

    #67948
    enzyad
    Participant

    up :(

    #67901
    Psyber
    Participant

    I have was able to export and import my WordPress content into WordPress, getting all of my users, their info, and buddypress x-profile fields is where I am getting hung up. I keep gettin the #1062 – Duplicate entry ‘1’ for key 1 error message.

    #9651
    danbpfr
    Participant

    I have a small problem with the multiselect box on profile fields.

    1) the box stays open when on profile admin – so i can see all 10 options actually in it. Should be on one line i guess.

    2) if multiple items are selected, only one is appearing on the profile as result . So the “multi” is not optionnal, it is inexistent :-)

    What can i do ? Thanks.

    and sorry if a ticket is already out or if somebody already answered to this.

    #67421
    Boone Gorges
    Keymaster

    Oho, I learn something new every day!

    So r-a-y – since it’s profile-field specific, you can probably skip while (bp_profile_fields() ) : bp_the_profile_field() right? #toolazytotrymyself

    #67409
    r-a-y
    Keymaster

    Boone is right; however there is a way to post specific xprofile fields!

    Check out a nifty function called bp_profile_field_data().

    Say I have an xprofile field called “Bio”.

    I’d use this code snippet:

    bp_profile_field_data('field=Bio');

    This will echo the “Bio” xprofile field of the displayed user.

    If you want to manipulate the data, use:

    bp_get_profile_field_data('field=Bio');

    #67401
    Mark
    Participant

    I just discovered the same problem of getting the same “Please try again” when attempting to save a profile with empty not required fields. Also only One (the last) item selected in a Multi Select Box is being saved and displayed on the Pubic Profile page. Check Boxes do work properly and display all checked items on the Public Profile Page. I’ll enter this in the Trac later today unless someone shares some additional insight.

    #67399
    Boone Gorges
    Keymaster

    If you want to get information out of the custom xprofile fields, you’ll need to use some of the functions in the profile-loop. I don’t think there are any core BP functions that allow you to pull a specific profile field by name or ID, so you’ll have to create a profile loop (<?php if ( bp_has_profile() ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>), then a profile field loop (<?php if( bp_profile_group_has_fields() : while ( bp_profile_fields() ) : bp_the_profile_field(); ?>) and then loop through the items, picking out the ones you want by field name. Use the code in profile-loop.php as a template for what you want to insert into members-loop.

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