Support Forum ยป User Profile

Forum Replies Created

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

    I got it. The problem is the total columns in the last row does not equal to 12. The last row has a hidden field, which has number of columns 2. Changing it to 12 fixes the bug.

    I have updated files via FTP, please take a look.

    in reply to: Settings page and mutlisite #2124
    Anh TranAnh Tran
    Keymaster

    Hi,

    Currently, it works for single sites in the Multisite. You can use it to add settings/options for a single site, not for the whole network.

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

    Hi again,

    Just looked into the code and tested with fields which don't need id attributes: heading, divider, custom_html and only custom_html uses std to output the HTML content of the field. These fields don't use meta value for anything, thus, the get_post_meta function is not used.

    I don't think there's a bug here, or am I misunderstanding you? Can you give more details on what you're trying to do?

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

    That's it! The Group extension is outdated. Please update to the latest version :). The latest version has fix for this bug.

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

    Hmm, can you please post full error message? I need that to see where the error comes from.

    in reply to: Help with Sections #2100
    Anh TranAnh Tran
    Keymaster

    Can you post your code? I guess the total of columns on some rows does not equal to 12, can you please check that (especially the last row)?

    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.

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