Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 701 through 725 (of 3,608 total)
  • Author
    Search Results
  • #259689
    lesanis
    Participant

    Hello danbp,

    I have tried all the following but no luck…

    function value_field_remove_html_filter() {
    	remove_filter( 'bp_get_the_profile_field_value',           'xprofile_filter_kses', 1 );
    }
    add_action( 'bp_init', 'value_field_remove_html_filter' );
    
    function edit_value_field_remove_html_filter() {
    	remove_filter ( 'bp_get_the_profile_field_edit_value',      'wp_filter_kses',       1 );
    }
    add_action( 'bp_init', 'edit_value_field_remove_html_filter' );
    
    function data_field_remove_html_filter() {
    	remove_filter ( 'xprofile_get_field_data',                  'xprofile_filter_kses', 1 );
    }
    add_action( 'bp_init', 'data_field_remove_html_filter' );
    
    function data_value_before_save_remove_html_filter() {
    	remove_filter( 'xprofile_data_value_before_save',          'xprofile_sanitize_data_value_before_save', 1, 4 );
    }
    add_action( 'bp_init', 'data_value_before_save_remove_html_filter' );
    
    function value_2_field_remove_html_filter() {
    	remove_filter( 'bp_get_the_profile_field_value',           'xprofile_filter_kses', 1 );
    }
    add_action( 'bp_init', 'value_2__field_remove_html_filter' );
    
    function options_before_save_field_remove_html_filter() {
    	remove_filter( 'xprofile_field_options_before_save', 'bp_xprofile_sanitize_field_options' );
    }
    add_action( 'bp_init', 'options_before_save_field_remove_html_filter' );
    
    function default_before_save_field_remove_html_filter() {
    	remove_filter( 'xprofile_field_default_before_save', 'bp_xprofile_sanitize_field_default' );
    }
    add_action( 'bp_init', 'default_before_save_field_remove_html_filter' );
    

    I have managed to remove the html filter for Name and Description but I am not able to do the same for Xprofile fields what is that I need. Do you have any suggestions?

    #259651
    BGRATED
    Participant

    Hi guys… I know this is a bit old.
    I would LOVE to have it as this.
    name – gender – age – city | MyWebsite.com

    I use the extended profile fields (gender) <- drop down pick only one., (Birthday) as primary and (city) text box.

    All are primary and required. I had something like this before (not buddypress) and I found the search results awesome.

    Thank you if anyone could help.
    The above code works like a charm.

    #259547
    danbp
    Participant

    Hey, do you mean this ?

    #259546
    metalhead
    Participant

    I’ve painfully isolated the issue to Xprofile Custom Fields. After I make changes to the profile fields, the new user registration stops working. (Stops saving new user data – refreshes new user data screen instead of saving.)

    #259367
    reivilob
    Participant

    Hi

    How can i translate the xprofile fields i add, because the title and default content of my custom fields does not appear in WPML string translation …

    OB

    #259312
    danbp
    Participant

    I have nothing to add to what i wrote previously.
    Study wp_kses function and see bp_activity_filters.php and try to deactivate the one or other filter.
    You may also read through bp-xprofiles-filters.php to see how wp_editor is handled for xprofile fields using rich edit.

    All this at your own risk, you have to know what you do by removing those filters, as it will open a big security hole in your site.

    #259244
    metalhead
    Participant

    I appreciate your effort, but things like username, email address, and password, are simply not in the profile fields editor; there is no re-arranging them. I wish it was that easy though! That would be nice! This is definitely going to take some php and/or css editing.

    #259239
    Henry Wright
    Moderator

    You should be able to log in to the WordPress admin area > Users > Profile Fields and then drag the Account Profile fields to the Account Details group.

    #259142
    danbp
    Participant

    Hi @ma3ry,

    the issue comes probably from the membership plugin who conflicts with BP registration.

    In brief, what ever this plugin does(or not), when BP is activated, you have on registration process the WP login routine (username, email, password) and the little mandatory Name field coming from BP.

    That’s all.
    What probably happen, is that you don’t have this Name field on Single Membership registering…
    Because of this, BP doesn’t know about the user existence and can’t fire the additionnal xprofile fields.

    That the first diagnostic.
    A second one may be more complex, as it is related to the fact you changed the php version and using WP 4.6.x

    You certainly made a big DB dump before that change. And also a new WP install – or at least, a WP update. If you made just a WP upgrade, it would be ok to a certain point.

    If you started a new install after the php change, the problem can be in the old datas you injected to the new DB. But no panic, it’s only an hypothese at the moment.

    So it would be great you give details about this and if possible your server configuration.

    #259059
    danbp
    Participant

    Hi,

    user metas are part of wordpress and stored in wp_usermeta table
    xprofile datas are part of BuddyPress and stored in 4 different tables wp_bp_xprofile_ > data, meta, fields, groups

    BuddyPress Database Diagram


    https://codex.wordpress.org/Database_Description

    #258895
    danbp
    Participant

    What i want is to show view page content in the landing page of buddypress which is home.php . Is there any way i can achieve that?

    bp-templates/bp-legacy/buddypress/members/single/home.php contains dynamic templates and shows by default the member activity template.

    If you use the above code, you’ll get Resume as default content. This is the simpliest way to achieve what you want.

    FYI: the Resume plugin is 4 years old and no more maintained. In 4 years, many things changed in xprofile component and what you actually can do with these fields is much more evoluted than 4 years ago. IMO, you wouldn’t even have to use it, as you can get a similar result directly with BuddyPress.

    #258872
    rafiamudasar
    Participant

    Basically in the final look I have to remove tabs all together and will have custom links/ buttons here and there to edit profile and cv fields. So I was looking for a hook which will extract cv data onto the landing page. I have copied single directory files into theme child and working on that so basically I want to pull data into home.php file of single directory . hope this explains well

    #258626
    danbp
    Participant

    Best recommendation would be to use this premium plugin

    WooCommerce BuddyPress Integration


    and some additionnal add_on like this one:
    https://fr.wordpress.org/plugins/woocommerce-buddypress-integration-xprofile-checkout-manager/

    Note: BuddyPress doesn’t handle registering, it only shows the wp-login form with some more fields (if xprofile component is activated).

    rafiamudasar
    Participant
    David Cavins
    Keymaster

    Hi r083r7-

    Within the same site, you could write a short code that would render the profile. Outputting profile data is pretty straightforward: https://codex.buddypress.org/themes/guides/displaying-extended-profile-fields-on-member-profiles/

    One another site, I’m less sure. You’d need BP API or similar, which we’re just now writing.

    Check our Bowe Codes for some other useful short codes and examples for your own: https://wordpress.org/plugins/bowe-codes/screenshots/

    #258339
    bradleyrf
    Participant

    Hey there,
    Regarding profile fields (Users>Profile Fields), I have several hundred of one type that’s a drop down select. I moved web hosts two days ago and ever since moving hosts I have been unable to add new options to this one profile field. When I try to add a new option I get an error message at the top that reads “These field options are invalid.”

    If I change the field type to check box, then it works but then I can not change the field type back to drop box, unless I do so in the database. I contacted the host company and they said it’s not a server-side error.

    Any ideas?

    I’m using WordPress 4.6, BuddyPress 2.6.2 and it happens with Twenty Sixteen.

    #258313
    danbp
    Participant

    Hi @shughesd,

    for clarification, the first topic author mentionned Trying to find where to edit the text above the fields.
    Are you looking for the exact same thing ?
    Is register.php in the right folder ? /child/buddypress/members/register.php ?

    The only text above the fields when registration is allowed is
    Registering for this site is easy. Just fill in the fields below, and we\’ll get a new account set up for you in no time.

    You have 2 options to edit/modify this string:
    – using the language file if you only want to change the text.
    – modify it in register.php if you want to change the HTML tag (by default it’s <p>)

    Other text above fields is the field title.
    This can be changed in fields admin. Dashboard > Users > Profile Fields. Edit the field and change the title to your need.

    And finally, which doesn’t need any alteration of a template or language file, you can use one of the 30 action hooks existing in register.php

    You can write a function and hook it to the placeholder of your choice. To do this, you add the below functions to bp-custom.php

    Example
    Add a welcome message at the top of the registration page, above Registering for this site.
    And another one below it.

    function my_custom_register_msg_title() {
    echo '<h2>Welcome on my site !</h2>';
    }
    add_action( 'bp_before_register_page', 'my_custom_register_msg_title' );
    
    function my_custom_register_message() {
    echo '<p>Thank you for registering.</p>';
    }
    add_action( 'bp_before_account_details_fields', 'my_custom_register_message' );

    In hope it helps you to understand the principle of operation on templates.

    #258295
    buddycore
    Participant

    You could put all your fields as xProfile and group them in sections.

    On top of that you could write some jQuery.

    I struggle going into BuddyPress code but I’m sure you could target this with client side validation via jQuery.

    It’s not perfect but it could be done.

    #258278
    danbp
    Participant

    i can’t replicate your issue. My snippet works as expected and when TOS box is not checked, the registration is aborded.
    You can test the error messages appearing for required fields by going to register page. Don’t fill any field and click on regiter. Does this work ?

    Also do you use any kind of plugin on registration page or for xprofile fileds ? Or other custom code ?

    The description field is stripped by default. But you should be able to add an href by using single cotes. But that’s all. If you insert a target to href, it will be removed.

    #258230
    bcanr2d2
    Participant

    Have you checked out Buddypress Conditional Profile Fields ?

    danbp
    Participant
    #258046
    danbp
    Participant

    That’s a Firebug question, but not important anyway. Also, there is no need to use all rules, as they are handled by the original CSS. You declare only the part you want to modify for .label

    Open /child-theme/style.css and add only this: (#xyz123 is the color hex you want to use)

    #buddypress table.profile-fields tr td.label,{
       background-color: #xyz123!important;
       color: #xyz123!important;
    }
    #258036
    danbp
    Participant

    Hi,

    this feature is currently handled field by field when you’re on the field creation page.
    dashboard > Users > Profile Fields
    Edit an existing field and see in the right column the box named Autolink. From there you can choose to enable/disable it.

    For more details about the concerned fields and autolinking, read comments in bp-xprofile/bp-xprofile-filters.php:322

    #258025
    ekko848
    Participant

    Well, I was able to do this by going into wp_bp_xprofile_fields in phpmyadmin, finding my Profile Field Label… and changing the value to include the HTML.

    Also it seems, for some, since there is a 150 character limit, I may have to increase the character limit size to meet my html length.

    Thing is, I’m not sure if this is the best way to do something like this?
    Editing straight from the database seems a little iffy, I don’t want to potentially break anything.

    Any comments? Re-assurance?

    idichoo
    Participant
Viewing 25 results - 701 through 725 (of 3,608 total)
Skip to toolbar