Forum Replies Created
-
AuthorPosts
-
Nicholas Cox
ParticipantHi
this is also not working for me. Returns empty value.
$value = rwmb_meta( 'city', ['storage_type' => 'custom_table', 'table' => 'wp_dc_users', 'object_type' => 'user'], 3 ); var_dump($value);
<br />upload pic<br />Nicholas Cox
ParticipantHi,
yes that's correct. I wanted to do this as my website will have up to 10,000 users and the table will grow quickly. So I wanted to combine them to reduce the number of rows inside user table. Metabox main focus is to reduce the number of table rows inside posts, so I thought that there might be some optimisation for the user table too. Seems like it can grow and become bloated very quickly. To have e.g. 20 rows for 1 user is very excessive.
Nicholas Cox
ParticipantHi
No problem and thanks, looking through the docs it is quite a cool feature so fingers crossed. Will this feature be added to the Trello? https://trello.com/b/OCOz26GM/meta-boxs-public-roadmap
also I read that it would help where there is a lost internet connection or accidental closing of the browser tab etc.
Thanks
Nicholas Cox
Participantok thanks!
Nicholas Cox
ParticipantHi
ok thanks anyway
Nicholas Cox
ParticipantHi
I have just noticed that whenever a new user or a user updates a profile using metabox forms that the 'first_name' and 'last_name' meta keys are automatically re-added or created under in the database under 'wp_usermeta'. Why is this? is WordPress automatically creating this?
January 10, 2022 at 7:54 PM in reply to: rwmb_frontend_validate and custom fields with Ajax Issues #33134Nicholas Cox
ParticipantHi
ok thanks, but the forms are useless without ajax and using custom fields with no jQuery validation. I know this is a rare case but the user experience is going to be bad if I cant validate all my forms without it disappearing.
January 10, 2022 at 6:11 PM in reply to: ✅Unable to reposition the 'user_pass' field inside the user register form #33132Nicholas Cox
ParticipantHi
Ah ok I was going to mention I was using one metabox id with two forms. I did not want to repeat my code by repeating the field values for each form. But I will change this now.
Nicholas Cox
ParticipantAh ok so the shortcode only works when its used beside 'mb_frontend_form'. Well that's ok if I wanted the both forms to be on one page, but I want the user dashboard to be on its own page. So this solution wont work for me. Sorry I should have explained further.
I was assuming I could do something like this. With adding 'post_type="cpt-slug"'. But no worries, I will have to implement my own Dashboard.
[mb_frontend_dashboard edit_page="256" post_type="cpt-slug"]Nicholas Cox
Participantok great thanks for your help
Nicholas Cox
Participantok thanks
Nicholas Cox
Participantsorry i am confused. So I cannot use the dashboard edit screen for custom post types?
[mb_frontend_dashboard edit_page="256"]January 9, 2022 at 8:16 PM in reply to: ✅Unable to reposition the 'user_pass' field inside the user register form #33098Nicholas Cox
ParticipantOne thing which is not clear in the docs is that I originally wanted to use one form for both the 'register' and the 'edit profile' shortcodes. What I have just figured out is that the (email, password, password2 and username) are automatically hidden on the 'edit profile' shortcode. This means I cannot split these fields up so they appear next to other form fields created in metabox.
e.g.
Field1
Username
Field 2
Password
Password2
Field 3
EmailI basically have to only re-order the 4 fields and they will always appear at the top of the front end form?
e.g.
Username
Password
Password2
Email
---- rest of the fields appear after...Nicholas Cox
Participantok that's great thanks!
Nicholas Cox
Participanthi
Ok thanks, im not using the 'mb_frontend_form id'
im using the [mb_frontend_dashboard] shortcode
[mb_frontend_dashboard edit_page="256"]
there is no option to target the post type in the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#user-posts-dashboard -
AuthorPosts