Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 46 through 60 (of 3,702 total)
  • Author
    Posts
  • in reply to: Update to 1.21.0 Broke site #42060
    Anh TranAnh Tran
    Keymaster

    Hi guys,

    We've fixed this issue. Please re-download the plugin and try again.

    in reply to: WP All Import/Export Add-on #41457
    Anh TranAnh Tran
    Keymaster

    Hi guys,

    We're very sorry for this problem. It's not because we don't want to do that. It's beyond our technical capability. We tried several times in the past to make the integration. However, it ended up with a same conclusion that we couldn't make it without modifying WPAI's code, which we're not familiar with.

    So, we asked the WPAI team for help and they agreed to do the integration for Meta Box. That's the best thing we can inform you at the moment.

    Best regards,
    Anh

    in reply to: composer/installers version #40742
    Anh TranAnh Tran
    Keymaster

    Hi Viktor,

    No problem. I've updated the composer/installers version to "~1.0 || ~2.0".

    in reply to: Malware Warnings #40589
    Anh TranAnh Tran
    Keymaster

    Hi,

    This is the JS file, compiled from our source, so the warning about a PHP security is not accurate. I've checked with Sucuri and looks like it requires a paid plan to run the scan. Can you please drop us a message with a temporary admin account to check this issue?

    in reply to: Include Metabox in free plugin #40269
    Anh TranAnh Tran
    Keymaster

    No, you can't include our extensions in your free products. Please see the Terms and Conditions for more details.

    in reply to: unpkg.com #40138
    Anh TranAnh Tran
    Keymaster

    Hi Aaron,

    The purpose of using a CDN is to share the libs across extensions. Currently tooltip is used in the Tooltip and Builder extensions (backend). We'll move them to local in the next version.

    in reply to: Failure after update to mb-core 1.4.9 #40031
    Anh TranAnh Tran
    Keymaster

    Hi guys, can you please drop me a message with a temporary admin account and FTP details to debug and check the issue? Currently, I can't replicate this bug on our environments. Thanks.

    in reply to: Meta Box error on saving post #40019
    Anh TranAnh Tran
    Keymaster

    This bug was fixed in the latest Meta Box version. In my test, it was triggered when removing all images and re-save the post. Is that the same thing happened to you?

    Anh TranAnh Tran
    Keymaster

    Looks like when you use Composer, after installing packages, you don't include the Composer's autoload.php file.

    There are 2 workarounds for this case:

    1. In your code, just add this line somewhere:

    require 'path/to/vendor/autoload.php';
    

    (Note that this is the vendor/autoload.php generated by Composer, it's in the root folder. It's not the vendor folder in Meta Box).

    This way, when you install anything with Composer (maybe a common PHP lib), autoload will works for all packages, not just Meta Box.

    2. Or replace Meta Box's Composer package wpmetabox/meta-box with WP Packagist. Using this method, you'll pull all the content from wordpress.org/plugins/meta-box/ into your code, and thus - will contain full vendor folder. And you don't have to modify your code.

    in reply to: Licence Management Bugs #40000
    Anh TranAnh Tran
    Keymaster

    Hi Aaron,

    I've just fixed the issue with can't set the limit to 0.

    I also tried to delete a license that you add with 0 limit and it worked for me. If you still see the issue, please let me know.

    Anh TranAnh Tran
    Keymaster

    Hi,

    I've just fixed it. Can you please try this fix? I'll release new version for Meta Box soon when it's confirmed.

    in reply to: MB Toolset Migration not working in "Post Reference" field #39987
    Anh TranAnh Tran
    Keymaster

    This is fixed and will be released in a few days.

    in reply to: How to validate for forbidden words? #39912
    Anh TranAnh Tran
    Keymaster

    Hi Eddy,

    In remote validation, all fields’s values are submitted to the server using their IDs. You can access to their values using $GET[‘field_id’]. And then perform your check with that value and return the result.

    The “field_id” is the same Id as you setup the field. If you need to validate many fields, you might want to loop through list of field IDs to get values and check. Something like:

    $field1_value = $GET[‘field1’];
    $field2_value = $GET[‘field2’];
    if ( strpos( $field1_value, ‘bad word’ ) !== false || strpos( $field2_value, ‘bad word’ ) !== false ) {
    echo ‘Please use good words’;
    return;
    }

    // Other checks if you need

    echo ‘true’;

    PS: type on my phone so just use the code as a starting point.

    in reply to: WYSIWYG Auto P Tags #39606
    Anh TranAnh Tran
    Keymaster

    Hi John,

    If you set the raw to false (which is default), then the data saved in the custom field is not applied with wpautop. So, you can just get it with

    $value = rwmb_meta( 'field_id' );
    echo $value; // no wpautop

    If you set the raw to true, then the data saved is always applied with wpautop, thus, you'll see the <p> tag on the front end.

    Anh TranAnh Tran
    Keymaster

    In addition, if you want to remove the locking UI (the lock icon), which helps preventing from unlock the block, you can add lock to the list of block supports, like this:

    <?php
    add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) {
    	$meta_boxes[] = [
    		'title'           => 'Testimonial',
    		'id'              => 'testimonial',
    		'type'            => 'block',
    		'render_template' => __DIR__ . '/testimonial-template.php',
    		'supports'        => [
    			'lock' => false, // THIS
    		],
    		'fields'          => [
    			[
    				'type' => 'text',
    				'id'   => 'name',
    				'name' => 'Name',
    			],
    			[
    				'type' => 'textarea',
    				'id'   => 'content',
    				'name' => 'Content',
    			],
    			[
    				'type' => 'single_image',
    				'id'   => 'image',
    				'name' => 'Image',
    			],
    		],
    	];
    	return $meta_boxes;
    } );
Viewing 15 posts - 46 through 60 (of 3,702 total)