• Since there has been major changes with WordPress especially the Media Upload section, it seems that the tab for chibipaint no longer exists.

    Would anyone be able to tell me what I would need to change within the plugin? I’m not a PHP programmer so I wouldn’t know where to start.

    I would really like this plugin to work within WordPress and to allow other users to be able to draw oekaki.

    Any help or guidance would be most appreciated!!!!

    Thank you in advance.

    http://ww.wp.xz.cn/extend/plugins/chibipaint-for-wordpress/

Viewing 2 replies - 1 through 2 (of 2 total)
  • siliconsara

    (@siliconsara)

    Fixed it! Currently running and working on 3.3.2

    In inc/cbp-media.php
    Find:

    // ChibiPaint media tab
    $cbpSet = get_option ('cbp');
    $cbp_access = $cbpSet['access'];
    function add_media_upload_cbp($tabs) { // Add Chibipaint to the row of tabs...
    global $cbp_access;
    if ( current_user_can('level_'.$cbp_access)) {
    if((array_key_exists('type', $_POST) && $_POST['type'] == 'image') || (array_key_exists('type', $_GET) && $_GET['type'] == 'image')){
    $tabs = array_merge($tabs, array('cbp' => __('ChibiPaint')));
    }
    return $tabs;
    }
    else {
    if((array_key_exists('type', $_POST) && $_POST['type'] == 'image') || (array_key_exists('type', $_GET) && $_GET['type'] == 'image')){
    return $tabs;
    }
    }
    }

    Replace:

    // ChibiPaint media tab
    $cbpSet = get_option ('cbp');
    $cbp_access = $cbpSet['access'];
    function add_media_upload_cbp($tabs) { // Add Chibipaint to the row of tabs...
    global $cbp_access;
    if ( current_user_can('level_'.$cbp_access)) {

    $tabs = array_merge($tabs, array('cbp' => __('ChibiPaint')));

    return $tabs;
    }
    }

    Hope this works.

    -Sara

    I gave the code replacing a try and got a lot of sql errors.Do you think you could give some more specific instructions on the steps to make the tab visible.I’m sure I’m just off somewhere in the coding or replacing the wrong portion maybe.It would be much appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Chibipaint for WordPress] ChibiPaint tab missing from Media Uploads’ is closed to new replies.