Support Forum Β» User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • in reply to: WPML Error _ registration form wont load ..... #44819
    Jan van NiekerkJan van Niekerk
    Participant

    Thank you I have submitted the logion details.

    in reply to: WPML Error _ registration form wont load ..... #44803
    Jan van NiekerkJan van Niekerk
    Participant

    Hi Peter

    This is what is on the French page same as the English, what am I missing?

    [mb_user_profile_register id="user-profiles" label_submit="Register" email_confirmation="true" role="vendor" redirect="https://www.ergafrica.com/supplier-agreement/" password_strength="medium" email_as_username="true"Β  recaptcha_key="6Lf81iIlAAAAACyK6lyUazMcd_HeKS7ZFt7x5Pbq" recaptcha_secret="6Lf81iIlAAAAACl4FaLwAQ5M4ltxIu5J-3bJE6v8" ]

    I also cannot get the metabox form so show up in french either

    https://www.ergafrica.com/login-page/?lang=fr

    it stays in english ???

    in reply to: βœ…Redirect no longer working. Please help #41157
    Jan van NiekerkJan van Niekerk
    Participant

    Hi @Peter

    Form was submitted with the requested details.

    I appreciate the speedy response!

    Jan

    in reply to: βœ…Redirect no longer working. Please help #41139
    Jan van NiekerkJan van Niekerk
    Participant

    I have done quite of testing and still no luck, do you need login details to take a look? Not fonding the issue.

    Jan van NiekerkJan van Niekerk
    Participant

    Hi Peter

    I used MB Columns for the middle part of the form. The beginning is generated by WordPress. The end part with the check boxes can be put into groups and it looks fin on the form part, but then the information does not pull through onto the profile page.

    I must also express my disappointment, I have asked multiple times for a small live session to explain things and speeds the project up and you agreed but have never shown up πŸ™

    Jan van NiekerkJan van Niekerk
    Participant

    Hi Peter

    Thank you so much it finally works, just 2 more little favour please.

    1) styling the registration form, how do I make the fields side by side and also the check boxes.
    2) Then with the checkboxes is it possible for the check to appear inline before the text

    https://www.ergafrica.com/register-page/

    Jan van NiekerkJan van Niekerk
    Participant

    OK I seem to have found a work around, but now I am battle with one last issue, when a registration form is filled in on the front end none of the fields are pulling through and saving on the back end. Not the standard user fields or the custom fields added. only the username and password is saved.

    Maybe it s because I have created a custom user type " vendor". But i have check that is the default registration type and i created the role using a plugin "user role editor"

    PLEASE HELP

    Jan van NiekerkJan van Niekerk
    Participant

    Hi Peter

    I also just wanted to add these select are from the multiselect fields ( advanced select) not a dropdown as show in your screen cast example.

    Jan van NiekerkJan van Niekerk
    Participant

    Hi Peter

    Thank you so much for your help. I applied your code see below to profile page and theme functions page. The problem is all the form are appearing not just the ones I have selected :

    So for example on the profile demo page, under selected operations, there is β€œ Drc – Other, Zimbabwe – Ccih (Sabot), Zambia – Sabot, Drc - Metalkol” only those need to show up as only they were selected in the registration form when signing up, not all the forms.

    Profile page

    <div id="quform-1">[quform id="1" name="DRC Other"]</div>
    <div id="quform-2">[quform id="2" name="DRC Metalkol"]</div>
    <div id="quform-3">[quform id="3" name="Mali"]</div>
    <div id="quform-4">[quform id="4" name="Mauritius"]</div>
    <div id="quform-5">[quform id="5" name="Mozambique"]</div>
    <div id="quform-6">[quform id="6" name="South Africa EMSA"]</div>
    <div id="quform-7">[quform id="7" name="South Africa Sabot"]</div>
    <div id="quform-8">[quform id="8" name="South Africa Other"]</div>
    <div id="quform-9">[quform id="9" name="Zambia Chambishi"]</div>
    <div id="quform-10">[quform id="10" name="Zambia Sabot"]</div>
    <div id="quform-11">[quform id="11" name="Zambia Other"]</div>
    <div id="quform-12">[quform id="12" name="Zimbabwe CCIH"]</div>
    <div id="quform-13">[quform id="13" name="Zimbabwe Todal"]</div>
    <div id="quform-14">[quform id="14" name="Zimbabwe Other"]</div>

    I added the following code to my theme functions file :

    add_filter( 'rwmb_outside_conditions', function( $conditions ) {
        $conditions['#quform-1'] = array(
            'visible' => ['#select_operations', 'drc_other'],
        );
        $conditions['#quform-2'] = array(
            'visible' => ['#select_operations', 'drc_metalkol'],
        );
        $conditions['#quform-3'] = array(
            'visible' => ['#select_operations', 'mali_all'],
        );
        $conditions['#quform-4'] = array(
            'visible' => ['#select_operations', 'mauritius_all'],
        );
                    $conditions['#quform-5'] = array(
            'visible' => ['#select_operations', 'mozambique_all'],
        );
                    $conditions['#quform-6'] = array(
            'visible' => ['#select_operations', 'south africa_emsa'],
        );
                    $conditions['#quform-7'] = array(
            'visible' => ['#select_operations', 'south africa_sabot'],
        );
                    $conditions['#quform-8'] = array(
            'visible' => ['#select_operations', 'south africa_other'],
        );
                    $conditions['#quform-9'] = array(
            'visible' => ['#select_operations', 'zambia_chambishi'],
        );
                    $conditions['#quform-10'] = array(
            'visible' => ['#select_operations', 'zambia_sabot'],
        );
                    $conditions['#quform-11'] = array(
            'visible' => ['#select_operations', 'zambia_other'],
        );
                    $conditions['#quform-12'] = array(
            'visible' => ['#select_operations', 'zimbabwe _ccih_sabot'],
        );
                    $conditions['#quform-13'] = array(
            'visible' => ['#select_operations', 'zimbabwe_todal'],
        );
                    $conditions['#quform-14'] = array(
            'visible' => ['#select_operations', 'zimbabwe _other'],
        );
        return $conditions;
    } );
    Jan van NiekerkJan van Niekerk
    Participant

    @Peter - would it be possible to request a short Teams/Zoom call with you to just point out what the issue is that is being missed?

    The team is on a strict deadline after we missed the 1st delivery date for the client. Your assistance will be greatly appreciated.

    Jan van NiekerkJan van Niekerk
    Participant

    Just to clarify I am using metabox to create a custom registration form and redirect it to the profile page.

    To show/hide a heading or an element (outside from a field group), please follow this documentation https://docs.metabox.io/extensions/meta-box-conditional-logic/#using-outside-meta-boxes

    I read it but I don't understand what I must do, I am not a PHP coder ??? But perhaps you can help me achieve what I need if I give you the right parameters. I have a separate form plugin for the forms on the profile page, these are the forms which I want them to display based on the choices made on registration.

    FORMS
    [quform id="1" name="DRC Other"]
    [quform id="14" name="Zimbabwe Other"]
    [quform id="13" name="Zimbabwe Todal"]
    [quform id="12" name="Zimbabwe CCIH"]
    [quform id="11" name="Zambia Other"]
    [quform id="10" name="Zambia Sabot"]
    [quform id="9" name="Zambia Chambishi"]
    [quform id="7" name="South Africa Sabot"]
    [quform id="8" name="South Africa Other"]
    [quform id="6" name="South Africa EMSA"]
    [quform id="5" name="Mozambique"]
    [quform id="4" name="Mauritius"]
    [quform id="3" name="Mali"]
    [quform id="2" name="DRC Metalkol"]

    Options from Custom meta fields registration form (ID: select_operations):
    drc_metalkol: Drc - Metalkol
    drc_other: Drc - Other
    mali_all:Mali - All
    mauritius_all:Mauritius - All
    mozambique_all:Mozambique - All
    south africa_emsa:South Africa - Emsa
    south africa_sabot:South Africa - Sabot
    south africa_other:South Africa - Other
    zambia_chambishi:Zambia - Chambishi
    zambia_sabot:Zambia - Sabot
    zambia_other:Zambia - Other
    zimbabwe _ccih_sabot:Zimbabwe – Ccih (Sabot)
    zimbabwe_todal:Zimbabwe – Todal
    zimbabwe _other:Zimbabwe – Other

    But after showing the custom form [form id="drc_other"] you need to click on the Submit button of the MB User Profile form, not the Submit button of the custom form. Otherwise, the option in the field Selected Operations will not be saved.

    That is fine, the data will be saved to the form used

    Jan van NiekerkJan van Niekerk
    Participant

    PART 2

    Login Page uses default login page
    login

    Profile Page - Basic Fields - Beaver themer connecting to Meta Key
    connecting-fields-with-beaver-bilder

    Conditional Fields- Beaver themer connecting to Meta Key and ID to conditonals
    conditional-setting-themer

    I am okay with not even using beaverthemer and just using metabox shortcodes to output content for both the simple and conditional fields. That's why i bought the plugin, i dod not want to use php to manually code as my knowledge here is limited.
    use-metaboxes-only

    Only need to output a heading and a form short code for each conditional element, like so

    <h2>Heaing</h2>
    [form id="drc_other"]

    Jan van NiekerkJan van Niekerk
    Participant

    Hi Peter

    Let me break things down as simply as I can with screenshots and explanations. First let me go over the envisioned flow of how things need to work from the front end and the back end :

    FRONT END
    Step 1 - Register - standard fields + cutom fields added including multiselect options(register page)
    Step 2 - Login ( login Page)
    Step 3 - Content displayed on profile page based on content filled in registration stage and conditinal content based on multiselect( profile page)

    BACK END
    Step 1 - Created new user type Vendor
    Step 2 - Create custom fields for registration

    PUTTING IT ALL TOGETHER
    Registration page code
    [mb_user_profile_register id="user-profiles" role="vendor" redirect="https://www.ergafrica.com/profile-page/" confirmation="Your account has been created successfully!" ]

    Registration page front
    register-form

    Custom Fields for registration
    multi-select

    Settings for Custom Fields for registration
    settings-multi

    Jan van NiekerkJan van Niekerk
    Participant

    I have another idea I would also like to ask about, perhaps maybe we can solve the beaver themer issue another way.

    since beaver allows you to save rows and then embed them as short codes, could you use metabox shortcodes instead of beaver themer to display content on a page. ?

    Jan van NiekerkJan van Niekerk
    Participant

    Hi Peter

    1) I added the "role="vendor" to the short code so now it looks like this :
    [mb_user_profile_register id="user-profiles" role="vendor" redirect="https://www.ergafrica.com/profile-page/" confirmation="Your account has been created successfully!" ]
    It does create vendor role, but the problem i am having now is none of the fields are saving when you register, I have to log into the vendor manually and fill in the information all over again for it to appear on the front end.

    2) Also what you are asking above to deactivate all plugins is not possible because:

    • Beaver Builder and Beaver themer are what allows the content to show up on the profile page so oif I disable that you wont see anything
    • Also certain fields are viewable based on conditional logic in beaver themer
    • I did disable all other plugins beside beaver builder and beaver themer plugin and metabox and still no change
Viewing 15 posts - 1 through 15 (of 18 total)