Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 181 through 195 (of 4,839 total)
  • Author
    Posts
  • in reply to: login form using Ajax + miniOrange 2FA #38437
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Currently, the login form does not use AJAX, it works simply like the login form of WordPress https://developer.wordpress.org/reference/functions/wp_login_form/

    1. You can add the login shortcode to a page and let the user stay on the same page after logging in. But I'm not sure if it can work with the modal/popup or not.

    2. No, the Register button is not supported in this form.

    3. The Lost Password will display under (near) the login button.

    4. There is no way to integrate with 2FA authentication currently.

    Long NguyenLong Nguyen
    Moderator

    Hi,

    Instead of adding the HTML code to a second hook, you can concatenate it to the validation message. For example:

    add_filter( 'rwmb_frontend_validate', function( $validate, $config ) {
        if ( empty( $_POST['text_rt5pl53zoi'] ) ) {
            $validate = 'Please add a text';
    
            $validate .= "<div class=\"rwmb-error\">Unfortunately, your newsletter subscription failed.</div>";
        }
        return $validate;
    }, 10, 2 );

    Read more on the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#validation

    in reply to: Shortcode in archive page shows only the last post data #38424
    Long NguyenLong Nguyen
    Moderator

    Hi,

    You should create two different View templates, one used on the archive page and one used on the single post. If you use the shortcode of the single post, it will not work correctly. Please read more about WP template here https://developer.wordpress.org/themes/basics/template-hierarchy/

    in reply to: PHP 8 issues #38423
    Long NguyenLong Nguyen
    Moderator

    Hi,

    This issue has been fixed a long time ago, from this commit https://github.com/wpmetabox/mb-custom-post-type/commit/12491d94f425496cdef03cb5516f091d6ce81121
    and relate to this topic https://support.metabox.io/topic/cpts-and-taxonomy-register-issues/

    I also do not see that issue on my demo site when getting the PHP code. Please make sure that you have the latest version of the MB Custom Post Type & Custom Taxonomy plugin v2.3.3 then recheck this issue.

    in reply to: Settings not saved #38422
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thanks for your feedback.

    The value "Add to Wishlist" is actually saved to the database but somehow it does not display the updated value on the settings page. I've escalated this issue to the development team to fix it in the next update.

    in reply to: Add Foreign Key to Custom Table/Model #38419
    Long NguyenLong Nguyen
    Moderator

    Hi Nick,

    Currently, the MB Custom Table extension does not support adding a FOREIGN KEY to a custom table. I will inform the development team to consider supporting this feature in future updates.

    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thanks for your feedback.

    I see the field value is updated as well but somehow the function get_queried_object_id() does not return the correct post/page ID that displays the frontend form. I will inform the development team to check this issue and get back to you later.

    in reply to: Ajax Front End Form Submission - Form Disappears. #38408
    Long NguyenLong Nguyen
    Moderator

    Hi,

    I'm not sure what exact the reason is, but you can wrap the form in a <div> tag and style the confirmation text with the custom class > child element.

    in reply to: Display a translated setting value in a view #38407
    Long NguyenLong Nguyen
    Moderator

    Hi,

    I've checked the field site_settings_urls_start_page_promotions on your site and the value to translate is not correct, then I re-add this field to the String translation and it is translated as well. I send the screen record via the ticket.

    in reply to: Fields rendering incorrectly #38401
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thanks for your additional information.

    Both ways to get the field value with Twig code: attribute() function and dot (.) notation should work on your site. I've also informed the development team to remove one way to avoid confusion for the user.

    Long NguyenLong Nguyen
    Moderator

    Hi,

    Can you please deactivate all plugins except Meta Box, MB AIO and switch to the standard theme of WordPress then recheck this issue? It could be a conflicting issue with another plugin like optimization or caching plugin.

    in reply to: Problems with data import #38399
    Long NguyenLong Nguyen
    Moderator

    Hi,

    The feature Generate PHP Code helps you to register the custom fields on other sites that do not have MB Builder, it does not help to import data on your site.

    Regarding the import plugin, WP All Import (Pro) is not fully compatible with Meta Box extensions to import data to the custom table. You can try to contact their support to ask for help with this issue.

    in reply to: Display a translated setting value in a view #38392
    Long NguyenLong Nguyen
    Moderator

    Hi Arno,

    Now you can see the second URL is translated as well, screenshot (removed)

    You can check whether the translation is completed or not by checking the icon "pen" or "circle arrows", screenshot https://monosnap.com/file/EAyVJy42XLpBJuihNbtvumdXVOca93

    in reply to: Fields rendering incorrectly #38383
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Can you please let me know which version of MB Views is on your site? Please ensure you have the latest version 1.11.3 and clear all caches (browser, plugin) then recheck this issue.

    in reply to: Images attached to a CPT #38382
    Long NguyenLong Nguyen
    Moderator

    Hi Joe,

    Please add the post_types setting when registering the meta box to display it on the CPT edit screen. Read more on the documentation https://docs.metabox.io/creating-fields-with-code/

    add_filter( 'rwmb_meta_boxes', 'prefix_attached_images_meta_box' );
    function prefix_attached_images_meta_box( $meta_boxes ) {
    	$meta_boxes[] = array(
    		'title'  => esc_html__( 'Attached images', 'textdomain' ),
    		'post_types'  => 'pack',
    		'fields' => array(
    			array(
    				'type'     => 'custom_html',
    				'callback' => 'prefix_get_images',
    			),
    		),
    	);
    	return $meta_boxes;
    }
Viewing 15 posts - 181 through 195 (of 4,839 total)