Forum Replies Created
-
AuthorPosts
-
Yasmine
ParticipantThat would be great - would help UX a lot.
April 1, 2022 at 7:12 PM in reply to: ✅Checkbox not checking when clicking checked by default #35412Yasmine
ParticipantPlease ignore me, I made a mistake when testing (had std=1 in the wrong place) Should be custom settings. Still does not work with actions pack. But the problem is with them. Thank you
Yasmine
ParticipantJust wishing to ask more on this question..
Are you able to set the "std" as a conditional value based on the value from another list? So for example if they were to choose Paris from question 1 then the suggested STD would be France ? And if this is possible - how do you set it up?
April 1, 2022 at 6:19 PM in reply to: ✅Checkbox not checking when clicking checked by default #35407Yasmine
ParticipantHi Long - I just tested this by creating an account and logging in using only meta box user profile (with actions pack disabled) and I experienced the exact same problem. So it is not action packs. Any other idea?
Yasmine
ParticipantUpdate: I just created a flow through a metabox user register and login to test. And it did not fix it. Same problem
Yasmine
ParticipantOh .. I can't share screenshots using pastebin either.
But the email appears on the frontend form (even when coming back to it). But does not save in the metabox field on the backend - so this just shows as empty. The email does however save in the WP fields. But when the user modifies their email. It shows modified on the frontend form. But does not update the WP fields, and remains blank in the backend user profile email meta box.
I had tried to link them with php:
//setting default fields add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) { $meta_boxes[] = [ 'title' => 'Profile', 'id' => 'academic_profile', 'type' => 'user', 'fields' => [ [ 'id' => 'first_name', 'name' => 'First Name', 'type' => 'text', ], [ 'id' => 'last_name', 'name' => 'Last Name', 'type' => 'text', ], [ 'id' => 'display_name', 'name' => 'Display Name', 'type' => 'text', ], [ 'id' => 'description', 'name' => 'Biography', 'type' => 'textarea', ], [ 'id' => 'user_email', 'name' => 'Email', 'type' => 'email', ], ], ]; return $meta_boxes; } );Do you think this could be an issue as I am not registering the user using meta box, but by another way?
Yasmine
ParticipantHere is the code:
<?php add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' ); function your_prefix_function_name( $meta_boxes ) { $prefix = ''; $meta_boxes[] = [ 'title' => __( 'Profile', 'your-text-domain' ), 'id' => 'academic_profile', 'type' => 'user', 'tabs' => [ 'basic_info_tab' => [ 'label' => 'Basic Info', 'icon' => 'dashicons-admin-users', ], 'academic_profile' => [ 'label' => 'Academic Profile', 'icon' => 'dashicons-welcome-learn-more', ], 'social_sharing' => [ 'label' => 'Social Sharing', 'icon' => 'dashicons-share1', ], ], 'fields' => [ [ 'name' => __( 'Academic Title', 'your-text-domain' ), 'id' => $prefix . 'academic_title', 'type' => 'select_advanced', 'options' => [ 'Dr' => __( 'Dr', 'your-text-domain' ), 'Professor' => __( 'Professor', 'your-text-domain' ), ], 'columns' => 3, 'tab' => 'basic_info_tab', ], [ 'name' => __( 'First Name', 'your-text-domain' ), 'id' => $prefix . 'first_name', 'type' => 'text', 'columns' => 4, 'tab' => 'basic_info_tab', ], [ 'name' => __( 'Last Name', 'your-text-domain' ), 'id' => $prefix . 'last_name', 'type' => 'text', 'columns' => 5, 'tab' => 'basic_info_tab', ], [ 'name' => __( 'Pronouns', 'your-text-domain' ), 'id' => $prefix . 'user_pronouns', 'type' => 'text', 'datalist' => [ 'id' => '6246d622ab80c', 'options' => [ 'He/Him ', 'She/Her ', 'They/Them', ], ], 'tab' => 'basic_info_tab', ], [ 'name' => __( 'Nationality', 'your-text-domain' ), 'id' => $prefix . 'user_nationality', 'type' => 'select_advanced', 'options' => [ //removed these to shorten ], 'tab' => 'basic_info_tab', ], [ 'name' => __( 'Biography', 'your-text-domain' ), 'id' => $prefix . 'description', 'type' => 'textarea', 'desc' => __( '1-2 sentences', 'your-text-domain' ), 'tooltip' => [ 'icon' => 'info', 'position' => 'top', 'content' => 'Write a sentence to introduce yourself. Keep it as short as a tweet - 280 characters.', ], 'limit' => 280, 'textarea_rows' => 4, 'tab' => 'basic_info_tab', ], [ 'name' => __( 'Profile Picture', 'your-text-domain' ), 'id' => $prefix . 'custom_avatar', 'type' => 'single_image', 'force_delete' => true, 'tab' => 'basic_info_tab', ], [ 'name' => __( 'University', 'your-text-domain' ), 'id' => $prefix . 'academics_university', 'type' => 'post', 'post_type' => ['university'], 'field_type' => 'select_advanced', 'tab' => 'academic_profile', ], [ 'name' => __( 'Faculty', 'your-text-domain' ), 'id' => $prefix . 'faculty', 'type' => 'select_advanced', 'options' => [ //removed to shorten ], 'columns' => 6, 'tab' => 'academic_profile', ], [ 'name' => __( 'Academic Position', 'your-text-domain' ), 'id' => $prefix . 'academic_position', 'type' => 'select_advanced', 'options' => [ //removed to shorten ], 'columns' => 6, 'tab' => 'academic_profile', ], [ 'name' => __( 'University Profile Page', 'your-text-domain' ), 'id' => $prefix . 'university_profile', 'type' => 'url', 'tab' => 'social_sharing', ], [ 'name' => __( 'Linkedin Link', 'your-text-domain' ), 'id' => $prefix . 'linkedin', 'type' => 'url', 'tab' => 'social_sharing', ], [ 'name' => __( 'Twitter Handle', 'your-text-domain' ), 'id' => $prefix . 'twitter', 'type' => 'text', 'prepend' => '@', 'attributes' => [ 'pattern' => '[^()/><\\][\\\\\\x22,;|]+', ], 'tab' => 'social_sharing', ], [ 'name' => __( 'Orchid Profile', 'your-text-domain' ), 'id' => $prefix . 'orchid', 'type' => 'url', 'tab' => 'social_sharing', ], [ 'name' => __( 'Email', 'your-text-domain' ), 'id' => $prefix . 'user_email', 'type' => 'email', 'tab' => 'social_sharing', ], [ 'name' => __( 'Email Sharing', 'your-text-domain' ), 'id' => $prefix . 'email_sharing', 'type' => 'checkbox', 'label_description' => __( 'Include your email on your profile so members can get in touch', 'your-text-domain' ), 'attributes' => [ 'std' => 1, ], 'tab' => 'social_sharing', ], ], ]; return $meta_boxes; }I will use pastebin to share the screenshots
Yasmine
ParticipantIs there any way to navigate this on the select 2?
Some of my Select 2 boxes show "&" correctly, and just 2 show & amp;
March 29, 2022 at 1:10 AM in reply to: ✅Adding a custom field as a link to an elementor button #35345Yasmine
ParticipantI went back to a backup to compare metabox configuration and code and plugins - all exactly the same! With the only difference being elementor and meta box updates...
March 29, 2022 at 12:13 AM in reply to: ✅Adding a custom field as a link to an elementor button #35344Yasmine
ParticipantHello - this shortcode has stopped working. I have checked against plugins, but don't understand why it would just stop? Any idea?
Yasmine
ParticipantAh ok that would be great - as I have also just noticed that all the ones that were created in the frontend form - are not then added as a taxonomy for others to select - which is what I need, to then make connections between the posts. How do I fix this?
Yasmine
ParticipantThank you - I can create the connection. The question was more, where do we add an API?
Yasmine
ParticipantI am also experiencing something similar. I am using Meta frontend and the post will save, but then if edited many of the taxonomies are no longer there. If try to readd, then I experience a fatal error. Unsure sure how to fix, but its really problematic
March 23, 2022 at 3:13 AM in reply to: ✅Checkbox not checking when clicking checked by default #35218Yasmine
ParticipantHi Long,
I changed the theme and deactivated all of my plugins except the ones needed to login and take me to the frontend form. This included elementor pro, meta box aio - and action packs. I use action pack to help me login. However, when I disabled this and used the WP login, and was taken to the backend user profile - it worked. So I am not sure if it is a conflict with the plugin, or a conflict when the user goes to the frontend form first, and it is not auto-populating..
How would I solve for both scenarios?
Thank you!
Yasmine
ParticipantIm using hello theme, which is a blank theme and should not impact. Ok - then maybe a css issue. Thank you.
-
AuthorPosts