Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 2,536 through 2,550 (of 3,702 total)
  • Author
    Posts
  • Anh TranAnh Tran
    Keymaster

    Hi G.,

    I guess I understand your point. Probably the code that saves data happens after your code that hides menus, metaboxes, etc. Would you please post your code here so I can debug that?

    in reply to: โœ…How to auto load-more for very large fieldset? #7766
    Anh TranAnh Tran
    Keymaster

    Hi,

    For your needs, the image_select field seems to be the suitable field type. However, it doesn't have the pagination or search feature. To do that, I think you need to write a custom code using a filter library like ListJS (there are probably more libraries).

    You can hook to rwmb_enqueue_scripts action to enqueue your JS like this:

    add_action( 'rwmb_enqueue_scripts', function() {
        wp_enqueue_style( 'listjs', 'URL here' );
        wp_enqueue_script( 'listjs', 'URL here' );
        wp_enqueue_script( 'your-js', 'URL here' );
    } );

    And in your JS file, you can write the JS that does the filtering or searching.

    in reply to: Blank Variable Error #7765
    Anh TranAnh Tran
    Keymaster

    Hi,

    Looks like you're using cloneable groups. For each value of a group, please check the existence of sub-fields, like this:

    $title = isset( $item_item_item['title'] ) ? $item_item_item['title'] : '';
    echo $title;
    in reply to: Help with front-end editing #7753
    Anh TranAnh Tran
    Keymaster

    Hi,

    I think hooking to wp_insert_post_data is too generic as it fires every time a post is added/updated.

    The extension already have 2 filters that you can use to change the post data when saving: rwmb_frontend_update_post_data for updating posts and rwmb_frontend_insert_post_data for creating new posts. Previously it has only 1 params: the submitted post data. But I've just updated the extension, adding 2nd parameter: the shortcode params, so you can use to check whether you are on the right meta box.

    This is sample code:

    add_filter( 'rwmb_frontend_insert_post_data', 'your_function', 10, 2 );
    add_filter( 'rwmb_frontend_update_post_data', 'your_function', 10, 2 );
    function your_function( $data, $config ) {
        if ( $config['id'] !== 'your_meta_box_id' ) {
            return $data;
        }
        // Your code to get post_title
        $data['post_title'] = ...;
        return $data;
    }

    Please try it and let me know if you need anything. I can update the extension to make it works for you.

    in reply to: Issue with complex form and columns #7739
    Anh TranAnh Tran
    Keymaster

    Hi, I see the bug. I'm debugging it and will fix it as soon as I can.

    in reply to: โœ…Problem with default value of field types #7726
    Anh TranAnh Tran
    Keymaster

    Hi Hazmi,

    Regarding the 1st problem, can you please describe steps to replicate it? I couldn't replicate on my side. But my guess is the saved value in the DB. If you already saved values of your fields into an option, then when you add a new field which has name already registered before, then the value might be taken from the previous one. Not sure if that's the case, but you can try remove the option in the DB and try again.

    Regarding the problem with QTag, do you have any wysiwyg field in your settings page? QTags is available only for the editor. With the code above, I can't see anything in the console:

    https://imgur.com/beao4Rb

    in reply to: Label overlapping radio when using validation #7725
    Anh TranAnh Tran
    Keymaster

    Hi,

    I've just fixed it on Github. The error message now will display below the inputs. Can you please try it?

    in reply to: Issue with complex form and columns #7724
    Anh TranAnh Tran
    Keymaster

    Hi,

    I've just tried your code and this is my screenshot:

    https://imgur.com/FXHFp4v

    Can you guys post the code that includes the heading field?

    in reply to: Problems with image type field #7723
    Anh TranAnh Tran
    Keymaster

    Hi, I've fixed this bug on Github. Can you please try it?

    PS: My previous reply was for the PHP warning that you posted. Sorry for misunderstanding.

    in reply to: Exiting Image field delete when update #7722
    Anh TranAnh Tran
    Keymaster

    Hi,

    I've just fixed this bug on Github. Can you guys please try it?

    in reply to: Exiting Image field delete when update #7671
    Anh TranAnh Tran
    Keymaster

    Hi, I'm still checking it. Please wait.

    in reply to: Sidebar Select #7666
    Anh TranAnh Tran
    Keymaster

    Hi,

    The field type "sidebar" has just been added. Demo here.

    in reply to: sort_clone is not working at some points #7620
    Anh TranAnh Tran
    Keymaster

    Thanks, I will check it now.

    in reply to: Exiting Image field delete when update #7619
    Anh TranAnh Tran
    Keymaster

    Can you please post the code of meta box so I can check?

    Thanks,
    Anh

    in reply to: Integration of the add-ons #7618
    Anh TranAnh Tran
    Keymaster

    Hi,

    You can bundle the extensions in a plugin. Just copy the extensions to plugin's folder, then include the main PHP file of each extension. For more info, please follow this docs.

    Regarding Composer, unfortunately we don't support extensions for now. They're hosted on private repos on Bitbucket.

    Thanks,
    Anh

Viewing 15 posts - 2,536 through 2,550 (of 3,702 total)