Ready to get started?Download WordPress


Multiple content blocks
[resolved] qTranslate (4 posts)

  1. William
    Posted 9 months ago #

    Hi folks,

    Is there an option to add qTranslate support to the MCB-plugin?

    Thanks in advance!


  2. Trendwerk
    Plugin Author

    Posted 9 months ago #


    I don't think we can do anything about that, it's something that the qTranslate plugin should add to their code. We're using the default wp_editor function which they can plug in to, but it seems their plugin uses alot of workarounds.

    This is probably because the plugin was created a while ago. So maybe you can try asking them ;)


  3. William
    Posted 9 months ago #

    @Harold, Thanks for your reply!

    I see you point. I know enough.

    Thanks for your help.


  4. skatrain
    Posted 7 months ago #

    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://wordpress.org/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

    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


You must log in to post.

About this Plugin

About this Topic


No tags yet.