Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 376 through 390 (of 3,708 total)
  • Author
    Posts
  • in reply to: Field data is not going to the table #18032
    Anh TranAnh Tran
    Keymaster

    I meant the MB User Meta extension. Its changelog is here. I've just tested your code and it works fine to me.

    in reply to: Include pro version in a Theme #18031
    Anh TranAnh Tran
    Keymaster

    Hi Mohammad,

    1) The MB Core extension doesn't include the Meta Box plugin. If you don't want to install it separately, you can bundle it in your theme.
    2) Please see the link above for the Meta Box plugin and this link for extensions.

    in reply to: MB profile within buddypress tab #18030
    Anh TranAnh Tran
    Keymaster

    Hi pza,

    Have you updated the plugin to the latest version? There was an issue with enqueuing assets in MB User Meta extension and that was fixed recently.

    in reply to: How to get the table name given the field_id #18029
    Anh TranAnh Tran
    Keymaster

    Hi Nick,

    Thanks for your reply. I just noticed I have a setter method public, which is quite simple (and naive). So, it's fine to make the property public. I just released a new version for the extension. Please update.

    in reply to: Edit MB Frontend Submission in Popup #18012
    Anh TranAnh Tran
    Keymaster

    Hi Dave,

    Please try to add multiple popups. Each popup corresponds to a post. That way you don't need to populate the popup dynamically.

    in reply to: How to get the table name given the field_id #18011
    Anh TranAnh Tran
    Keymaster

    Hi Nick, the reason we make the property protected is because we don't want people to change it.

    Can you tell me why do you want to the the table name? Is that the table you created with your own code? Why don't you just pass the string (table name) instead of getting from fields?

    in reply to: Relationship translations #18010
    Anh TranAnh Tran
    Keymaster

    Hi Nick,

    Thanks for your reply. I'll take a note on this. Currently, the plugin doesn't copy values to the translations. It only add connections between items if they're chosen.

    I think you can hook to the plugin to add your own connections between connected items. I'll add more hooks to let you do that. What do you think?

    in reply to: Query Posts With WP_Query #18009
    Anh TranAnh Tran
    Keymaster

    Hi Dave, thanks for your feedback. I've just fixed the typo and updated the code in the docs regarding the empty case.

    Anh TranAnh Tran
    Keymaster

    Hi Nick, thanks for your feedback. It's a good thing to change and will be available in the next version of the plugin.

    in reply to: Sanitization of Fields input #18007
    Anh TranAnh Tran
    Keymaster

    Hi Pieter, please see my reply above and the documentation.

    in reply to: select_all_none Not Working Perfectly #17993
    Anh TranAnh Tran
    Keymaster

    Hi Kiran,

    The post field loads posts via Ajax, and each call loads 10 posts by default. If you want to load all posts (so the Select All/None button work with all of them), please change the code to:

    array(
        'id' => $prefix . 'name',
        'name' => esc_html__( 'All Names', 'text-domain' ),
        'type' => 'post',
        'multiple' => true,
        'post_type' => array( 'names' ),             
        'select_all_none' => true, 
        'field_type' => 'select',
        'query_args' => ['posts_per_page' => -1'],
        'ajax' => false,
    ),
    in reply to: Single metabox on Reciprocal Relationship #17992
    Anh TranAnh Tran
    Keymaster

    Hi, can you try removing all custom code, and change the registration code to something like this:

     MB_Relationships_API::register( array(
            'id'         => 'good_companions',
            'reciprocal' => true,
            'from'       => array(
                'object_type'  => 'post',
                'post_type'    => 'plant',
                'admin_column' => "after title",
                'meta_box'     => array(
                    'title' => esc_html__( 'Good Companions', 'gtt-text' ),
                ),
            ),
            'to' => 'plant',
        ) );
    in reply to: Group Sanitzie Callback #17991
    Anh TranAnh Tran
    Keymaster

    Hi Austin,

    You're right. The way we built the sanitize_callback is for each cloned value, to make sure it's correct.

    In your case, I'd suggest using rwmb_{$field_id}_value which allows you to check and modify the submitted value.

    in reply to: Sugestions of exists operator #17990
    Anh TranAnh Tran
    Keymaster

    Hi, I haven't tested but I think a rule like ['logo', '!=', ''] should work. Can you please try it.

    in reply to: Clone file field in group is not displayed on edit page #17989
    Anh TranAnh Tran
    Keymaster

    Hi Yumikom,

    Can you share your code of the field group and some screenshots?

Viewing 15 posts - 376 through 390 (of 3,708 total)