Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,096 through 1,110 (of 3,702 total)
  • Author
    Posts
  • Anh TranAnh Tran
    Keymaster

    Hi Reinhard,

    The Meta Box AIO plugin still requires Meta Box to work. MB Custom Post Type is a part of Meta Box AIO, and thus still needs Meta Box. The Meta Box AIO has all the extensions, but not Meta Box.

    So, please just install Meta Box separately and they'll work. You'll need only Meta Box and Meta Box AIO.

    Anh TranAnh Tran
    Keymaster

    Hi Neil,

    Sorry for replying late. I've looked at the problem for many times, and to be honest, I haven't figured out a good way to do that with BB. The only think that I imagine that can work is integrating with a template system like Twig, so people can write markup for the field. But it's too much work and I couldn't do it at the moment.

    My suggestion for now is creating a shortcode to display a group, then use the shortcode in BB. It's the way I'm doing at the moment.

    in reply to: geometry field is broken after today's update #14659
    Anh TranAnh Tran
    Keymaster

    Hi Sam, can you give a little more details on the bug? Do you see any error in the console?

    in reply to: Input type image_advanced vs image #14643
    Anh TranAnh Tran
    Keymaster

    How many image fields that start to cause the back end dead?

    And how many posts and images in the site?

    in reply to: Input type image_advanced vs image #14641
    Anh TranAnh Tran
    Keymaster

    Hi Hazmi,

    The image field don't have any ajax request. It's a simple HTML5 file field. That probably is the reason why it's fast.

    we have problems only in administration of website. The frontend is super fast with no problem and no errors. I read a lot of blog posts about admin-ajax that says that this file in more use cause WP very slow – that’s right.

    Interesting. That might be related to the WP backend. Probably WP doesn't optimize the back end too much, especially if there are many plugins behave poorly on the back end.

    Anh TranAnh Tran
    Keymaster

    Hi,

    All you need to do is including edit="true" to the shortcode.

    in reply to: image_upload validation error #14639
    Anh TranAnh Tran
    Keymaster

    What do you mean the old validation? It's still the same one. I just improved it.

    in reply to: Error : Site Breaks #14635
    Anh TranAnh Tran
    Keymaster

    Hi Calpaq,

    Can you please re-download the plugin? Looks like I uploaded the wrong file :(.

    Anh TranAnh Tran
    Keymaster

    Hi TGHP,

    I've just updated the plugin to the version 2.0.0 with better server-side validation. Please see the updated documentation for details.

    in reply to: image_upload validation error #14632
    Anh TranAnh Tran
    Keymaster

    Hi,

    Sorry for the confusion. I've just updated the plugin to version 2.0.0 with a better validation. Please try again with the same code.

    If you want to set custom error message, please see the documentation.

    in reply to: [BUG] No Feedback Given if Address not Found! #14617
    Anh TranAnh Tran
    Keymaster

    Sometimes, the Geocoder doesn't return precise coordinates (in some countries where OSM / Google Maps don't have enough data). In that case we should allow users to drag the pin to correct address.

    I'll include the library into OSM field. Thanks for suggesting!

    in reply to: [BUG] No Feedback Given if Address not Found! #14613
    Anh TranAnh Tran
    Keymaster

    Yes, that's right. Please replace the existing Meta Box with the Github version.

    in reply to: image_upload validation error #14611
    Anh TranAnh Tran
    Keymaster

    Can we validate after form submit using php backend validation if the image field is empty in-case as the front validation not works

    Yes, you can do that. Here is a simple code that check for the field value before processing the form, and if it fails, redirect users to an error page:

    add_filter( 'rwmb_frontend_validate', function( $is_valid, $config ) {
        if ( 'meta-box-id' !== $config['id'] ) {
            return $is_valid;
        }
        if ( empty( $_POST['image_upload_field'] ) ) {
            $is_valid = false;
        }
        return $is_valid;
    }, 10, 2 );
    Anh TranAnh Tran
    Keymaster

    I'm afraid this is a theme issue. Your theme might overwrite/change the styles of WordPress popup. This can be resolved only by checking the CSS and rewrite that in theme.

    in reply to: Custom Field Generate URL Screenshot #14609
    Anh TranAnh Tran
    Keymaster

    Hi Neil,

    I think your code snippet in the first reply works pretty well. I modify it a little bit to creates a shortcode for showing website screenshot. It takes URL from a field.

    add_action( 'init', function() {
        add_shortcode( 'screenshot', function( $atts ) {
            $atts = shortcode_atts( [
                'width'  => 300,
                'height' => 300,
                'field'  => 'website_url',
            ], $atts );
            $url = rwmb_meta( $atts['field'] );
            if ( ! $url ) {
                return '';
            }
            $query_url =  'http://s.wordpress.com/mshots/v1/' . urlencode( $url ) . "?w={$width}&h={$height}";
            $image_tag = "<img width='$width' height='$height' src='$query_url'>";
            return "<a href='$url'>$image_tag</a>";
        } );
    } );
Viewing 15 posts - 1,096 through 1,110 (of 3,702 total)