WordPress.org

Support

Support » Plugins and Hacks » Adminimize » [Plugin: Adminimize] bug in custom metabox #ids for custom types

[Plugin: Adminimize] bug in custom metabox #ids for custom types

  • 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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    Plugin Author Frank Bueltge

    @bueltge

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

    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]

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

    [sig removed]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Adminimize] bug in custom metabox #ids for custom types’ is closed to new replies.
Skip to toolbar