WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Tab Override] problem issue tab override not working

[Resolved] [Plugin: Tab Override] problem issue tab override not working

Viewing 7 replies - 1 through 7 (of 7 total)
  • Kkronos

    @kkronos

    I just find out that using the plugin qTranslate prevents Tab Override from working

    Kkronos

    @kkronos

    First of all:

    • qTranslate replaces the default wordpress editing page to edit a post by another one with different ID.
    • i modify Tab-Override javascript to have this one use the qtranslate editing page . This one was using the default content id from wordpress for post ie “textarea”. I replaced it by : “qtrans_textarea_content”.

    After few more look around tab-override javascript, I discover than the javascript code from tab_override was called before the qTranslate php execution. In short:

    • the editing post page from wordpress is loaded ( id : textarea)
    • javascript is called
    • the editing post page from qTranslate is loaded ( id : qtrans_textarea_content)
      How call this javascript after the qTranslate php execution?
    Kkronos

    @kkronos

    Actually, the javascript called doesn’t matter because functions are bound to events, so the problem is not here.

    Kkronos

    @kkronos

    I finally managed to get Tab override to work with qTranslate:

    • in \wp-content\plugins\tab-override\includes\class-tab-override.php:

    call jquery.taboverride-1.1.1.js instead of jquery.taboverride-1.1.1.min.js
    call tab-override-setup-1.2.1.js insteadof tab-override-setup-1.2.1.min.js
    This allow you to modify not minified js files. However, the next modification could be made in minify js files.

    • in \wp-content\plugins\tab-override\js\tab-override-setup-1.2.1.js:

    replace #content by #qtrans_textarea_content
    replace #qt_content_fullscreen by #qt_qtrans_textarea_content_fullscreen
    replace

    • in \wp-content\plugins\tab-override\js\jquery.taboverride-1.1.1:

    replace #qtrans_textarea_content by #textarea

    Hope this can help some people!
    Bye!

    Plugin Author Bill Bryant

    @wjbryant

    Hi,

    Thanks for reporting this. Sorry I didn’t see it earlier. I’m glad you were able to find a solution.

    I’ll look into making it easier to fix compatibility issues like this in the future. My initial thought is to provide additional options to change the element ids that the plugin is applied to. If this doesn’t complicate things too much, it will be in the next version.

    Plugin Author Bill Bryant

    @wjbryant

    Hi Kkronos,

    I just pushed an update that should make this much easier to fix. Once you update Tab Override, go to the Advanced section on the plugin settings page and add #qtrans_textarea_content to the Post field. It should look like this: #content, #replycontent, #qtrans_textarea_content. Save the changes and Tab Override should now be working with qTranslate.

    Let me know if you have any other problems.

    Thanks,
    Bill

    Kkronos

    @kkronos

    Thank you for your update!
    I’ll try it asap and give you news!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] [Plugin: Tab Override] problem issue tab override not working’ is closed to new replies.