Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 3,451 through 3,465 (of 3,702 total)
  • Author
    Posts
  • in reply to: Delete option not working #2099
    Anh TranAnh Tran
    Keymaster

    Did you see any error in the console when deleting the clone?

    in reply to: undefined method RW_Meta_Box::has_been_saved() #2098
    Anh TranAnh Tran
    Keymaster

    Are you using a theme that has Meta Box plugin included directly?

    in reply to: For file type #2095
    Anh TranAnh Tran
    Keymaster

    Hi again,

    Just wonder why don't you use plupload_image field? It has nice UI and allows you to select files from your computer. I forgot about this ๐Ÿ™‚

    in reply to: std error when a field has no id #2091
    Anh TranAnh Tran
    Keymaster

    Thanks, I will look at this issue.

    in reply to: Render input issue when value has false value #2090
    Anh TranAnh Tran
    Keymaster

    Hi, I already fixed that in the development version. It will be included in the next version.

    in reply to: Adding unique key to rows #2085
    Anh TranAnh Tran
    Keymaster

    Hi,

    This is a hard question :). I think the filter allows you to change the value of whole group, as the group is the actual field you're filtering. So, $old and $new are arrays (of sub-field values). I guess you're using a cloneable group? If so, then $old and $new are arrays (of clones), each clone is an array of sub-fields.

    Let's try with the code below:

    add_filter('rwmb_GROUP_ID_value', 'prefix_change_value',10,3);
    function prefix_change_value ( $new, $field, $old )
    {
        $text_field_id = 'SUB_FIELD_ID';
        foreach ( $new as $k => $clone )
        {
            $new[$k][$text_field_id] = uniqid();
        }
        return $new;
    }
    in reply to: RW_Meta_Box::is_saved eror #2084
    Anh TranAnh Tran
    Keymaster

    Hi, I see you included the Group extension inside your theme. The extension is the latest version (it has the method is_saved()) but the Meta Box installed on your website is not (the version 4.7.3 has method is_saved()). So, to fix this issue, please:

    - Deactivate the theme first (if the error prevents you from accessing the Dashboard, try changing the theme folder name)
    - Update Meta Box to the latest version
    - Reactivate the theme

    in reply to: Referencing Data from Settings Page #2083
    Anh TranAnh Tran
    Keymaster

    Glad to see you figured it out. To echo nothing if the field is empty, you just need to change the code a little bit:

    <?php
    $field_id = 'twitter-url';
    if ( !empty( $settings[$field_id] ) ) {
        echo '<li><a href=" ' . $settings[$field_id] . '"><i class="fa fa-twitter"></i></a></li>';
    }
    ?>
    in reply to: Referencing Data from Settings Page #2071
    Anh TranAnh Tran
    Keymaster

    Hi, where do you put the code above into your theme? Maybe you should not return the result as you will use it in another way (display it or use as a variable). Using return in a PHP file will stop execution of the following code.

    in reply to: MB Group Activation Error #2064
    Anh TranAnh Tran
    Keymaster

    If it comes with the theme, then you don't need to install the extension as a standalone plugin. Just use it ๐Ÿ˜‰

    in reply to: For file type #2062
    Anh TranAnh Tran
    Keymaster

    Thanks for the error, I will check it.

    The file field, of course, doesn't have good UI. I will search to see if the WordPress media can force users to select files from the computer. If there's a solution for that, I will add to the file_advanced field.

    in reply to: Defining simple validations rules #2061
    Anh TranAnh Tran
    Keymaster

    Hi,

    Yes, that's possible. Just define the validation rules in YAML format.

    in reply to: MB Group Activation Error #2060
    Anh TranAnh Tran
    Keymaster

    The error says the extension is activated twice. Can you check if it is already installed? Maybe included directly in the theme?

    in reply to: For file type #2047
    Anh TranAnh Tran
    Keymaster

    Hi Sinusite,

    You can use native file input with file field. It's the default browser file input, which allows us to select files from computer only.

    in reply to: MB Builder Disappears on Page #2036
    Anh TranAnh Tran
    Keymaster

    Did you use any of these plugins: Conditional Logic, Show Hide, Include Exclude? Can you please check the conditions to show or hide the meta boxes?

Viewing 15 posts - 3,451 through 3,465 (of 3,702 total)