Hi guys,
for a client I’m working with qtranslate and MCB – a reaaaally good plugin – and I had the same problem. I used the past cause with some workarounds I make it work.
So, here it is what I’ve done.
Download/install the qTranslate extension (http://ww.wp.xz.cn/plugins/qtranslate-extended/)
Now with have to “hack” the MCB plugin. Go to “class.MCB.php” file (inside the assets directory of MCB plugin) and edit it.
on line 72 you’ll find this code
wp_editor(get_post_meta($post->ID,'_mcb-'.$id,true),$id);
first to edit this line we have to made some settings for wp_editor, I’ve write this:
$settingseditor = array(
'tinymce' => FALSE,
'editor_class' => 'multilanguage-input',
'quicktags' => TRUE,
'textarea_rows' => 15,
'media_buttons' => FALSE,
'teeny' => true,
);
and you could insert it on line 51, after
global $post;
(where MCB defines some variables)
this is a really short version of the array settings of wp_editor, but this is all I need.
the tinymce is disabled (see the note), editor_class is where we are getting the qTranslate functions (tnx to qtranslate extension), I removed the media buttons (but you could set it to TRUE).
Note: something conflicts with qtranslate, MCB, qtranslate extension and Tinymce, so I’ve disabled Tinymce and I’m using teeny (the simple and non visual editor of wp).
Now we can edit the line 72, like this:
wp_editor(get_post_meta($post->ID,'_mcb-'.$id,true),$id, $settingseditor, null, 'UTF-8', false);.
Now I have multiple blocks on my backend, with qTranslate flags and a small (non visual) editor. But, hey, it works!
thanks to Trendwerk and the other guys