BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 19

    Hello Brajesh,

    Thank you for your help, it works Great (both 1 & 2) …

    However, I have noticed that BP Member Types Pro + Conditional Profile Fields plugins are not compatible with BP Search Profile plugins … I have just written a new topics about that …

    Instead, I am going to try BP xProfile Member Type Field but not sure that plugin can include WP User Role which is mandatory for me because some menus (primary) will be accessible for one WP Use Role but not for the second WP User Role … but this plugin should work with BP Search Profile …

    Thank you again,

    Chris

  • Participant
    Level: Initiated
    Posts: 19
    This reply has been marked as private.
  • Participant
    Level: Initiated
    Posts: 19

    Hi Brajesh,

    Like your AJAX Registration Form, I really like the “Legacy” template and my Theme is beautiful too … Moreover, the “Legacy” template load faster …
    If you want to see “outdated Legacy template” in red color, please visit the WP-admin, Users->Profile Search (plugin) …!!

    I don’t believe in anything but I test. if result is OK, I move to the next step. If result is not OK, I rectify it or find an alternative. I am beginner, then I don’t rectify but find alternatives … therefore I am happy with the “Legacy” template and I hope that ALL plugins will always work with such template …
    The Conditional Profile Field plugin works well with Profile Search plugin and “Legacy” template, PLEASE KEEP IT WORKING because WE ALL NEED IT (please visit Forums)!! WHY ? BECAUSE A SEARCH WITH CONDITIONAL LOGIC IS A GREAT OPTION IN HIGH DEMAND, AND ONLY BP + PLUGINS CAN OFFER THAT … or you could code a new Profile Search plugin to make it works with the Conditional Profile Field plugin, this second option is great too, do you agree ?

    About the Conditional Field in the AJAX Registration Form, I don’t care of it because I wish to hide these xProfile fields, except the “Member Type” :

    1- Hide the xProfile fields in the AJAX Registration Form :
    Please how to do it ?

    2- Automatically Redirect to the Profile Page just after login :
    Please how to do it ?

    One more thing, as said before, I am a beginner … then I don’t understand “do this, do that” with short or no explanations …” but instead I need clear explanation with STEP BY STEP PROCEDURES and/or EXAMPLES for instance. Thanks in advance …

    You will find attached the WP-Admin access of my test site in the next private message. This test site can be modified without any problem, even it could be broken because that simply means we work on it …
    Like the previous “outdated”, you could see that the Conditional visibility doesn’t work on the AJAX Form but It might be MY mistake … !! Anyway, as said I wish to hide these fields …

    Thanks in advance,

    Chris

  • Participant
    Level: Initiated
    Posts: 19

    Hello Brajesh,

    With the help of the Theme settings, the outdated BP “Legacy” template is rather beautiful …

    Therefore, all OK now, except the AJAX Registration Form.

    Please do you have any code to hide the xProfile fields on the AJAX Registration Form ?

    I will only keep the “Type of Member” select field on the AJAX Registration Form and no more …

    Thanks in advance,

    Chris

  • Participant
    Level: Initiated
    Posts: 19

    Hello Brajesh,

    I have tried many different tests and I have just discovered few things :

    – The “Conditional Profile Fields” plugin works well with the “BP Search Profile” plugin and “Legacy” BP Template if we add the code below :
    add_filter( ‘bp_is_conditional_profile_field_active’, ‘__return_true’ );

    – The “Conditional Profile Fields” plugin DOESN’T works with the “BP Search Profile” plugin and “Nouveau” BP Template

    But the “Legacy” BP Template is outdated and ugly on the front-end …

    Please do you know what code to change/update in the “Nouveau” BP Template to make compatible both “Conditional Profile Fields” & “BP Search Profile” plugins ?

    Thanks in advance,

    Chris

  • Participant
    Level: Initiated
    Posts: 19

    Hello Brajesh,

    OK, so far I don’t use any Profile Field Group because i don’t know what is for … moreover I have disabled the Group feature in BP settings … I have disabled User Activity, Settings & Notification too … I just allow a one-to-one user because it’s simple … I just need simple and basic features … but I will set 2 different types of Members with your Member Types Pro plugin.

    Please I have few questions about your Conditional Profile Fields plugin for BP :
    – Is this plugin could work for the Search Member in the Directory ?
    – If yes, what settings are required ?
    – If not, is there any simple code to allow the Search Member in the Directory with Conditional Profile Fields ?

    For information, please find below the result of my tests :
    – The Conditional Profile Fields works well in the BP Registration Form
    – The Conditional Profile Fields works well to Edit/View User Profile
    – The Conditional Profile Fields DOESN’T work with the Search Member Form and Widget

    Thank in advance,

    Chris

  • Participant
    Level: Initiated
    Posts: 19

    Sorry, here is the Code Block :


    /**
    * Hide some profile fields on the AJAX Registration Form – added by CHRIS on 7 July 2019
    * Category ID=3, Agriculture Category ID=6, Food Category ID=9,
    * https://buddydev.com/support/forums/topic/hide-some-profile-field-from-register-form/
    */
    function buddydev_filter_register_fields( $r ) {

    if ( bp_is_register_page() ) {
    $r[‘exclude_fields’] = 3,6,9; // Comma-separated list of profile field IDs to exclude.
    }

    return $r;
    }
    add_filter(‘bp_after_has_profile_parse_args’,’buddydev_filter_register_fields’ );

  • Participant
    Level: Initiated
    Posts: 19

    I have just pasted the code below in bp-custom.php file in the purpose to hide these Category fields in the AJAX Registration Form but I have an Error Page !!!
    https://buddydev.com/support/forums/topic/hide-some-profile-field-from-register-form/

    Please, Does this code below works for the AJAX Registration Form ?

    For information, I don’t know coding at all but I try to build a simple and free website with WP to help low qualified people to find a job. However, I can delete and paste code into files and I can check the xprofile field ID’s in phpMyAdmin.

    /**
    * Hide some profile fields on the AJAX Registration Form – added by CHRIS on 7 July 2019
    * Category ID=3, Agriculture Category ID=6, Food Category ID=9,
    * https://buddydev.com/support/forums/topic/hide-some-profile-field-from-register-form/
    */
    function buddydev_filter_register_fields( $r ) {

    if ( bp_is_register_page() ) {
    $r[‘exclude_fields’] = 3,6,9; // Comma-separated list of profile field IDs to exclude.
    }

    return $r;
    }
    add_filter(‘bp_after_has_profile_parse_args’,’buddydev_filter_register_fields’ );

  • Participant
    Level: Initiated
    Posts: 19

    For information, all these Category Fields are set to NOT Required …
    I have just tried to enable Javascript for each fields but the Ajax registration form automatically switch to the standard BP registration form …

    If the conditional fields don’t work on the AJAX registration form, then I will hide these Category fields with your tutorial below and keep only the “Type of Member” field on the AJAX registration form :
    https://buddydev.com/support/forums/topic/hide-some-profile-field-from-register-form/

    Please how to redirect the user to the “Edit Profile” page after registration ?

    Thanks …

  • Participant
    Level: Initiated
    Posts: 19

    One more thing, I have conditional fields :

    Category :
    – Agriculture
    – Food

    Agriculture Category (shown when Category = Agriculture)
    – Livestock
    – Animal husbandry

    Food Category (shown when Category = Food)
    – Dairy
    – fruit

    The conditional visibility works well in the user profile page, however the conditional visibility doesn’t work on the AJAX registration form, I mean the Agriculture Category & Food Category fields are always shown on the AJAX registration form, whatever the selection of the Category field …
    Please what settings are wrong ?

    Thanks