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
- This topic has 25 replies, 2 voices, and was last updated 2 years, 5 months ago by
Peter.
-
AuthorPosts
-
November 9, 2022 at 12:55 AM #39014
Jan van Niekerk
ParticipantHi
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 output2) Which plugins do I need ?
a. Metabox
b. MB User Profile
c. MB Beaver Builder Integration3) 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
November 9, 2022 at 9:22 PM #39028Peter
ModeratorHello 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-formNovember 15, 2022 at 10:13 PM #39146Jan van Niekerk
ParticipantThank 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 🙂
November 16, 2022 at 9:41 PM #39170Peter
ModeratorHello 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 attributeemail_confirmation
to send a welcome and confirmation email.Read more on the documentation https://docs.metabox.io/extensions/mb-user-profile/#registration-form
November 21, 2022 at 10:03 PM #39246Jan van Niekerk
ParticipantHi
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 ????
November 22, 2022 at 1:33 AM #39255Jan van Niekerk
ParticipantOk, 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
November 22, 2022 at 10:55 PM #39271Peter
ModeratorHello 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?
November 23, 2022 at 9:51 PM #39286Jan van Niekerk
ParticipantHi 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
November 24, 2022 at 8:23 PM #39300Jan van Niekerk
ParticipantI 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. ?
November 24, 2022 at 9:38 PM #39307Peter
ModeratorHello 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-code2. >> 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/November 25, 2022 at 10:43 PM #39324Jan van Niekerk
ParticipantHi 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 registrationPUTTING 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!" ]November 25, 2022 at 10:44 PM #39325Jan van Niekerk
ParticipantPART 2
Login Page uses default login page
Profile Page - Basic Fields - Beaver themer connecting to Meta Key
Conditional Fields- Beaver themer connecting to Meta Key and ID to conditonals
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.
Only need to output a heading and a form short code for each conditional element, like so
<h2>Heaing</h2>
[form id="drc_other"]November 28, 2022 at 10:14 PM #39370Peter
ModeratorHello 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?
November 29, 2022 at 4:05 AM #39378Jan van Niekerk
ParticipantJust 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 – OtherBut 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
November 29, 2022 at 1:13 PM #39381Jan 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.
-
AuthorPosts
- You must be logged in to reply to this topic.