Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 4,126 through 4,150 (of 5,698 total)
  • Author
    Search Results
  • #112674
    Brajesh Singh
    Participant

    I am interested in improving the xprofile fields to allow developers to add new field types. currently we have a limited set of fields(say multiselect/checkbox etc). An example extension could be allowing to add an specializationn of select box with Country drop down which will save numerous times for many site owners. I am not sure if that needs to go in the core plugin, but certainly we need to add some action/filters in the core to make that happen. Also, currently, xprofile needs to improve the queries for fetching select field(My benchmark shows one query per item in the dropdown list of a field). So, if we have a field with 100 items in select menu on the edit profile/register page, It will do 100+ queries for that single field.

    If improving xprofile fields is still on the card, I will be very happy to work on it.

    abelcreative
    Member

    Hey guys, had a quick question. I’m using the U Buddypress Forum Editor (don’t worry, that’s not what this thread is about) to add a wysiwyg editor to the forum. Anyway, I decided I wanted to add it to some profile fields (using s2Member, so only paying members can fill out these fields). I want to be able to safely remove the wp_filter_kses and xprofile_sanitize_data_value_before_save to JUST those profile fields so that the HTML isn’t stripped. I realize the security risk, but it’s what the client wants. Right now, the only way I could figure it out was to simply add these lines to my functions.php:

    `
    remove_filter( ‘bp_get_the_profile_field_value’, ‘wp_filter_kses’, 1 );
    remove_filter( ‘xprofile_data_value_before_save’, ‘xprofile_sanitize_data_value_before_save’, 1, 2 );
    `
    Works fine, but that remove the filters from EVERYTHING. I just want to remove the filters from certain fields. How do I do that?

    #112612
    latinosamorir
    Participant

    @candy2012.

    Thanks!!!

    I have not tried this yet but soon will. I’ve been waiting for a year for this solution. I wonder why the BP gurus dropped the ball on this.

    shanebp
    Moderator

    A required profile field, a multicheckbox, just started throwing an error when edited by users:

    “There was a problem updating some of your profile information, please try again.”

    Any changes to any fields on the first page of ‘edit profile’ will throw that error when saved.
    However, any field other than one specific field will show the saved change.
    There is only one multicheckbox on this page and changes to it are not saved.

    All the fields on this page are saved in serialized format.

    So I’m stumped.
    No changes have been made to profile fields in admin panel.
    Subsequent edit profile pages have multicheckboxes that can be edited and saved without problem – these aren’t serialized.

    Any ideas re what the problem could be?
    Something corrupted in serialization?

    Is there a way to get a more detailed error message? Something less generic?

    #112543
    ARHistoryHub
    Participant

    1. Go to members/single/profile/edit.php in your theme.
    2. Find and delete this line `

    `
    3. Paste this `

    ` after each instance of this line ` `.

    And it’s a similar sort of process for the register.php – found in the registration folder in your theme.
    Sloppy, but oh well.

    katemgilbert
    Participant

    In the profile form (edit-profile.php and register.php), the field descriptions are displayed beneath the input box. I want them to be displayed beneath the field label and above the box instead. I can see from a code inspector that it is the class p.description, but I can’t find where this is called in any of the template files. Can anyone help me move the position of the description?

    aimkbe
    Participant

    I’m not sure if I’m posting in the right section but here we go….
    When members register for my site, there are types of members, learners and educators. I use a radio button to determine their membership.

    How do i have the profile field i created only show up for educators and not learners… how do i restrict the some profile fields so only educators can fill em out…. does this make sense anyone??? please help!!!

    #112327
    vbsql7
    Member

    Thanks for the help so far.
    Knowing that the extra tags were coming back, I tried to take the quick fix and strip them like this:
    `

    `
    …but I still get the same result — data wrapped in P tags.

    I spent some time trying to learn about the xprofile functions but I did not find a clear example that I could make work.

    Would I would like to find a loop that gives me rather tight control of what is happening.
    Perhaps like this (pseudo code):
    `
    $user = bp_get_profile($user_id);
    for ($i = 0;$user.fields.count;$i++) {
    $field = $user.fields($i);
    echo $field->name;
    echo $field->data;
    }
    `

    luvs
    Member

    Hello, I have a question.

    I have some profile fields that users fill out that they put in the links to their facebook, twitter, yahoo, and youtube in it, (facebook profile URL, etc)

    But I wanted it to display an icon linking to their facebook profile, getting data from the profile field. So, simple enough I created something like this;

    `<a href="”>`

    Worked dandy, but what I want now, is that if the user has *NOT* filled out that field, I want the icon to not appear.

    How can I do this?

    #112315
    Paul Wong-Gibbs
    Keymaster

    `
    remove_filter( ‘bp_get_the_profile_field_value’, ‘wpautop’ );
    `

    would do it but also remove the paragraph tags from all other fields

    4ella
    Participant

    Hello , how can I restrict 2 different type of members (based on xprofile fields or on 2 different roles ) , e.g photographers versus models or mens & womans to do not become a friends , I want to let the girls speak to each other , and photographers – agencies to speak only between them , I don’t want to let them to send private messages between photographer and girl , I want to let them only speak publicly (using forums ). So I would be using allow only friends private messages plugin to restrict the only friends to speak to each other , but never those 2 groups between them . How could I achieve that ?

    Paul Wong-Gibbs
    Keymaster

    Thanks!

    Bowe
    Participant

    You can map profile fields from Facebook to BuddyPress with WP-FB-Autoconnect with custom code. It is indeed on the roadmap!

    javiervd
    Member

    Will do, hopefully you guys already fixed it :)

    Paul Wong-Gibbs
    Keymaster

    Could you report as a bug on https://buddypress.trac.wordpress.org/? We may have already fixed it in our development version of BuddyPress, but you reporting the issue would prompt us to check. You can use your username and password from this site. Thanks!

    #112164
    Paul Wong-Gibbs
    Keymaster

    Unfortunately, you can’t do this out of the box. It’s possible with some code, but I wonder if anyone’s done a plugin for it; I’m sure someone will link if there is

    José M. Villar
    Participant

    I use https://buddypress.org/community/groups/wp-fb-autoconnect/ premium version. Its developer has automatic profile fields population in his roadmap, but with no release date unfortunately

    javiervd
    Member

    Hi all,

    I just noticed that you can’t save fields with special characters in the profile field, I have setup a checkbox with a couple options using the “&” char as a value and it won’t let me save them (Doesn’t throw me an error or anything though) but when I remove then it works fine. Is there a filter I can remove to let me do this? I tried looking around the core files but I wasn’t able to locate the part where BP filters these values.

    Thanks in advance!

    #21851
    lselwd
    Member

    Adding new profile fields
    how add private fields? can I add such?

    aktivist
    Member

    Hello!

    Did anybody work with native Facebook Registration plugin ( http://developers.facebook.com/docs/plugins/registration ) and is it possible to get some fields from FB profile with Graph API ( http://developers.facebook.com/docs/reference/api/user ) (e.g. fill user’s “Bio” in BP with users “Bio” data from FB)?

    I guess that will be really great functionality & much better user experience… Do u know some ready-to-go plugins or maybe we develop it together?

    demetrius

    #112019
    Slushman
    Member

    Thanks Paul! I took a break to finish the other parts of the plugins and the rest of that project, but now I’m back working on this part again. Unfortunately, I can’t make head or tails of that function. I’ve tried sending a variable array to that function based on the parameters it gives on line 584, but it never adds the field. It appears xprofile_insert_field() requires a the group_field_id too, which I’m also trying to create a new Field Group, but I can’t find a way to get the ID # of the group I’m creating, and it doesn’t appear the group is created either. Is there a tutorial or a working plugin that does the same thing I can see HOW they did it?

    candy2012
    Member

    @ivoss – God bless you for posting that link! (http://pastebin.com/RLreXE7X)

    I lost days on this already!

    These lines (aroung 150) are CRUCIAL for getting the values posted to the database (basically that `$fields_ids[]` function

    `

    <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="” />`

    candy2012
    Member

    well, that (velomash) will not help much unfortunatelly .. nor will the required fields be cheked or the information for all group fields saved to the database!
    Buddypress is so damn buggy on this one, wonder if they really thought of the purpose of implementing those fileds without proper connection to teh registration form; who the h* (sorry!) will go to fill in the fields if not requested upon registration?

    #111944
    candy2012
    Member

    here’s my workaround for this problem

    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/multiple-profile-group-fields-in-registration/?_wpnonce=98e520cdd5#post-98202

    as no buddypress gurus EVER botherd to give a feedback on this, and left everyone here in the dark for more than 1 year

    #111943
    candy2012
    Member

    the above still sucks of course (or rather the whole registration process for buddypress sucks!), anyway, the above code will unfortunatelly NOT validate the fields! So it would be possible for a user to register without filling those fields in …

    Yeah, you tell me how happy I was as I realized that!
    1 more day lost with this s*, but eventually found a workaround (I am sure it’s not the perfect solution, but at least it’s SOMETHING!)

    So in order to have the required fields really checked, please add this to your header:

    `

    $(document).ready(function() {
    $(“#signup_form”).validate();
    });

    `
    where signup_form is the id of your form (

    ). If your form has an other id please remember to change accordingly.

    Now go to each form field in your form and add this class:

    ` class=”” `

    example:
    ` <input type="text" name="” id=”” value=”” class=””/> `

    And VERY important, around line 150, see that you have added this piece of code (basically replacing / expanding that `<input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="” />`)

    `

    <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="” />`

    So that was it, now it should work. Unlike the buddypress gurus out there, I didn’t want to leave any of you in “half darkness”, so I came back to post the solution I found.

    I hope it will help you, even though it’s just a workaround, and I am 100% sure there must be a much more elegant solution than this.

    But as I said, as the buddypress gurus could not care less about poor users who struggle to get that bpress working as it should, a “second best” solution is always better than NO solution!

Viewing 25 results - 4,126 through 4,150 (of 5,698 total)
Skip to toolbar