Profile pages using MB User Profile and MB Beaver Builder Integration

Support MB User Profile Profile pages using MB User Profile and MB Beaver Builder Integration

Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • #39014
    Jan van NiekerkJan van Niekerk
    Participant

    Hi

    I have purchased the premium lifetime version of all the meta box with all addons, I also have beaver themer and the addon. But need a little guidance in getting started. Goal I am trying to achieve is simple.

    1) I want to create a custom profile page on the page it will have :
    a. Details entered on the registration form :
    i.Name
    ii.Email
    iii.User code
    iv.Check boxes with 10 choices
    b. Show beaver themer saved rows below above choices selected in check boxes
    c. use conditional logic of beaver themer to output

    2) Which plugins do I need ?
    a. Metabox
    b. MB User Profile
    c. MB Beaver Builder Integration

    3) Are there any tutorials of how to put it together, I know its possible, just need guidance please and thank you.

    So excited to use your tools

    #39028
    PeterPeter
    Moderator

    Hello Jan,

    1. If you have the Lifetime Bundle license, you can use two plugins: Meta Box and Meta Box AIO to get all pro features. You can also manage the extensions in Meta Box > Extensions.

    2. The builder Beaver Themer works with Meta Box to display the field value on the frontend. It does not help to display a profile form to update. You can add the user profile form shortcode to the Beaver Builder to display on the frontend.
    Please read more here https://docs.metabox.io/extensions/mb-user-profile/#edit-profile-form

    #39146
    Jan van NiekerkJan van Niekerk
    Participant

    Thank you, i have figure most things out. I am really impressed how metabox works. I have another question though...

    When someone registers, how do I get them to automatically be logged in and redirect to the profile page ?

    I also want to send a welcome email 🙂

    #39170
    PeterPeter
    Moderator

    Hello Jan,

    There is no option to auto login after registering succesfully, you can use the attribute redirect to redirect a user to the login/profile page to let them login manually.
    The welcome email is also not supported but you can use the attribute email_confirmation to send a welcome and confirmation email.

    Read more on the documentation https://docs.metabox.io/extensions/mb-user-profile/#registration-form

    #39246
    Jan van NiekerkJan van Niekerk
    Participant

    Hi

    I have finally got everything set up correctly on my end and now I am running into a new problem. I installed a plugin User Role Editor to create a new user role called "vendor" at the back end.

    And then in MB custom fields, I created a few custom fields. In settings for custom fields, I set the location to User and then the user role Vendor.

    I then used the short-codes of MB to create the registration, login, and profile pages. All was working just fine, then today when I logged in the custom fields no longer appear on the new vendor page and it wont show up no matter what i try ????

    #39255
    Jan van NiekerkJan van Niekerk
    Participant

    Ok, so I did some more testing and found that I have to be logged in as a vendor to see the custom fields, so that is my bad. However, I did find out 2 new issues I need help with:

    1) Under general settings in WordPress you can set the default role a person registers as when registering. I have set it to "vendor", but it keeps defaulting back to subscriber

    2) The second issue I have is I have content displayed on the profile page based on condition fields
    Screenshot-2022-11-21-200819

    #39271
    PeterPeter
    Moderator

    Hello Jan,

    1. The default role when registering via registration shortcode is Subscriber. You can change it to another role like Vendor in the shortcode attribute. Like this

    [mb_user_profile_register id="meta-box-id" role="vendor"]

    2. Can you please deactivate all plugins except Meta Box, MB extensions and switch to a standard theme of WordPress (2022) and recheck this issue?

    #39286
    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
    #39300
    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. ?

    #39307
    PeterPeter
    Moderator

    Hello Jan,

    1. When registering the user, the user meta is also updated to the user. This feature works as well on my site. Can you please share the code of the field group user-profiles on your site. To get the PHP code, please follow this documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code

    2. >> 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?
    You can add the Meta Box shortcode on a page without using the Beaver builder. Or even use the extension MB Conditional Logic to display the fields on the frontend.
    https://docs.metabox.io/extensions/meta-box-conditional-logic/

    #39324
    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

    #39325
    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"]

    #39370
    PeterPeter
    Moderator

    Hello Jan,

    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

    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.

    Can you please let me know how the form and options "Vendor, ARSP license, Signed PO Terms" are registered? Or where does it come from?

    #39378
    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

    #39381
    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.

Viewing 15 posts - 1 through 15 (of 25 total)
  • You must be logged in to reply to this topic.