WordPress.org

Ready to get started?Download WordPress

Forums

Adminimize
bug in custom metabox #ids for custom types (5 posts)

  1. qayqay12
    Member
    Posted 2 years ago #

    Hi !

    There is a glitch in this wonderful plugin :

    To hide a custom metabox in the edit form of a custom type, we can define in Adminimize a text list of html #ids (or .classes) with a matching text list of names. Those textarea are located below each checkbox grids.

    The content of those textareas for custom type are not kept when the whole page is saved and reload. New ids are added in the grid, that's perfect, but the textarea are emptied. So when we save once again, those custom ids are discard from the checkbox grid.

    The bug hit only custom types. It works well for pages and posts.

    The (painful) workaround is to rewrite the #ids .classes and Names each time we change something in this option page.

    Thanks for this great plugin !
    Cheers

    http://wordpress.org/extend/plugins/adminimize/

  2. qayqay12
    Member
    Posted 2 years ago #

    Here's the fix:

    file: write_cp_options.php Line 219:

    style="width: 95%;" ><?php echo _mw_adminimize_get_option_value('_mw_adminimize_own_' . $post_type . '_options'); ?></textarea>

    Should be

    style="width: 95%;" ><?php echo _mw_adminimize_get_option_value('_mw_adminimize_own_options_' . $post_type ); ?></textarea>

    file: write_cp_options.php Line 227 & 228:

    style="width: 95%;" >
    <?php echo _mw_adminimize_get_option_value('_mw_adminimize_own_' . $post_type . '_values'); ?></textarea>

    Should be

    style="width: 95%;" ><?php echo _mw_adminimize_get_option_value('_mw_adminimize_own_values_' . $post_type ); ?></textarea>

    Cheers

  3. Frank
    Member
    Plugin Author

    Posted 2 years ago #

    Many thanks for the fix, i will include this on next version.

  4. Alain RONK
    Member
    Posted 2 years ago #

    Hello,

    I'm a french man and excuse me for my english. Your plugin is really wonderfull for me !
    I have a question. I would add in a custom metabox in the edit form of a post type for the plugin "Google Doc Embedder".

    I do not know what to write in "Name option" textaera (May be Google Doc Embedder) and in "TD classe CSS" textaera.

    Can you help me please ?

    [sig removed]

  5. Alain RONK
    Member
    Posted 2 years ago #

    It's ok for me !
    I found the solution with Firebug for FireFox
    Thank you

    [sig removed]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags