(tiny)mceComments 0.4.4-1

Tagged as
May 22nd, 2008 | by mk |

近日有一外國朋友 ioannis 電郵告知,他為小弟久未動工的 WordPress 插件更新。我想這就是對程式的「愛」吧,真叫身為原作者的我慚愧。

好吧,基本上這次比較明顯的改動是整個設定頁翻新,加進了預覽箱和讓按鈕設定更為彈性。其次將留言箱設定成可隨意調整大小。名字也改變了,不過原本他將 TinyMCE 和 Comments 分開,想了一下不如直接把 tiny 刪掉不是更好?

另外,自己也趁這次機會把早前沒放出去的修改順便推出。現在 TinyMCE 的工具提示和 HTML 編輯視窗都是人話而不是奇怪的外星語,也將過期的 get_settings() 換成 get_option()。總不能讓人家搶盡面子吧 XD

I feel ashamed after I know how ioannis devoted himself to the plugin. He added sereval new features to my hack, like doing a revamp on the settings page in dashboard and adding a lovely preview window. Though he also wishes to change the name of the plugin (by separating “TinyMCE” and “Comment”), I think it is better to make it shorter, which becomes “mceComments”. Sorry for the decision, hope you won’t mind :P

Also I have fixed the bug which caused tooltips not display correctly in the editor window. Also the K2/AJAX Commenting support should be truly working.

Enjoy!

Related Posts

  1. 64 Responses to “(tiny)mceComments 0.4.4-1”

  2. By caschy
    on May 23, 2008 | Reply

    Doesn’t works for me.  Previous version works - but shows code (not my language) when i am insert a link. This version doesn’t shown in my theme. I see options in my Admin interface - but the same errors (programming language when insert a link).
     
    Greetings from germany.

  3. By mk
    on May 23, 2008 | Reply

    @caschy Currently I couldn’t see the plugin is activated in your blog. Which version of WordPress and what theme you are using? It is possible the theme is not wrote in a standard way that the TinyMCE editor would not be triggered.

  4. By caschy
    on May 23, 2008 | Reply

    Yeah - because its disabled. And when i try to activate - nothing will shown. I use K2 with WP 2.5.1. The last version of tinycomments will shown in my theme - but with the missing translation when i  try to create a link.

  5. By mk
    on May 23, 2008 | Reply

    @caschy Could you capture a screenshot to show the problem? I would like to see what happened… Thanks a lot.

  6. By caschy
    on May 23, 2008 | Reply

    As is say: the 0441 is not shown in my theme.

  7. By mk
    on May 23, 2008 | Reply

    @caschy May you repost the link again? You could not post comments with image tags here.

  8. By Ari
    on May 24, 2008 | Reply

    Thanks for this plugin, very nice stuff!
    Now, my site also uses a non-english language translation for wordpress (spanish), and I guess my problem is somewhatsimilar to caschy’s. This seems to cause this plugin to show funny strings in the tooltips and in the “insert link” dialog. It does work, but I’d rather display properly formatted English strings instead of the funny programming codes (which are also in some sort of english). You can check this problem in my blog here.
    Curiosly, when using TinyMCE inside Wordpress / Admin - Visual editor - in my blog, the “insert link” dialog displays the proper messages in Spanish properly formatted. Having this in your plugin would be even better.
     
    Finally the “insert link” button is always grayed out unless you manually select some text. It would be more user-friendly to leave it always enabled, since the “insert link dialog” asks for both the text and dialog.
     
     

  9. By mk
    on May 24, 2008 | Reply

    @Ari Thanks for your suggestion and your live site! I think I will build a testbed at home in Chinese and check what happened.

  10. By theddy
    on May 24, 2008 | Reply

    I just upgraded to version 0.4.4-2 on a Wordpres 2.5.1 installation - but this doesn’t work. The choosed buttons are not displayed in the plugin setup page (on the bottom) and not after the comments. Prior versions of your plugin had no problems.

  11. By mk
    on May 24, 2008 | Reply

    @theddy Please notify me if the problem still exists if you upgraded to 0.4.4-3 - It should be there now.

  12. By Olone
    on May 24, 2008 | Reply

    Hello,I use Wordpress 2.5.1 and your new update plugin not work on my site…Best regards

  13. By mk
    on May 24, 2008 | Reply

    @Olone Hello, you said does not work you mean it doesn’t show up or otherwise? Could you also tell me the version of the plugin you are using? Thanks a lot.

  14. By Olone
    on May 24, 2008 | Reply

    Hello,It’s ok with V 4.4.3 plugin.But i have a small error code page:
    “Webpage Script Errors
     
    User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; MSN Optimized;FR; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; MSN Optimized;FR)
    Timestamp: Sat, 24 May 2008 13:31:29 UTC
     
    0.
    Message: ‘ed.controlManager.get(…).id’ a la valeur Null ou n’est pas un objet.
    Line: 24
    Char: 6
    Code: 0″Thanks.

  15. By Fr. Daniel
    on May 24, 2008 | Reply

    I’m trying to change the size of the text box, as it is too wide for my site’s theme. I saw a previous note that the COLS property should be changed in the TEXTAREA string. Where is this info located? Thanks for a great plugin!

  16. By Marylain
    on May 24, 2008 | Reply

    Hello! I’m using WP 2.5.1 and WP default theme… I activated your plugin, I added buttons in the control panel but still your plugin doesn’t show on my blog.I tried an older version and I still get this problem. I also tried to change theme with no success.Can you please tell me what to do? ;_;

  17. By mk
    on May 24, 2008 | Reply

    @Olone Hello, glad to see you got it working. However I can’t find any javascript error on my site. Perhaps you are running other plugins conflicting with it?

  18. By mk
    on May 24, 2008 | Reply

    @Fr. Daniel In WordPress dashboard, go to “Theme editor” under “Design”. Click “Comments(comment.php)” on the right. Search the line with id=”comment” in the textarea on the left, and change the value of “cols” in the same bracket. The larger the wider.

  19. By Marylain
    on May 24, 2008 | Reply

    I just add something else… If I use your latest version new comment windows doesn’t appear EVEN in preview.I tried using FF and IE…I also tried to install both of your plugins into a 2.5 WP and change layouts.I really cannot understand why it doesn’t work.Maybe I should activate Akismet?Please let me know… ;_;Thank you so much in advance.

  20. By mk
    on May 24, 2008 | Reply

    @Marylain Could you tell me what theme you are using? Could you see the box in the theme “WordPress Default”? Do you also have other plugins that are “enhancing” the comment box?

  21. By Marylain
    on May 24, 2008 | Reply

    Hi ^^About the theme I’m using: Wordpress Dafult 1.6 and no, obviously I cannot see your box in this theme.The only plugin I was using was Easy Gravatars… I tried to deactivate it but I’m still not able to let your comment box show.What can I do? ;_;

  22. By mk
    on May 25, 2008 | Reply

    @Marylain Hello, could you please go to the link http://yourdomain.com/path_to_wordpress/wp-content/plugins/tinymcecomment/tinyMCEComments.php?init and copy the text and paste it here (Actually I prefer send me via mail)? Next you may go to a page with the comment form, view the HTML source of it, and search for a line with “tinymce” in it? Thanks

  23. By Gene Steinberg
    on May 25, 2008 | Reply

    I really, really want to use this plugin, but my blog is also configured to use Quoter, which is unfortunately disabled.

    Since Quoter is no longer being developed, does anyone care to try to hack it to work with this plugin or vice versa?

    Please?

    Peace,
    Gene Steinberg

  24. By Marylain
    on May 25, 2008 | Reply

    Mail Sent.It is called “My Tinymce Page”.Please let me know… I want absolutely use your plugin in my blog ;_;

  25. By theddy
    on May 25, 2008 | Reply

    I am sorry to say - 0.4.4-3 still does not work with WP 2.5.1. The configuration page is displayed - but at the bottom the choosed buttons are not displayed and the buttons are not displayed with comments.

  26. By Marylain
    on May 25, 2008 | Reply

    It doesn’t work with WP 2.5 either cause I’ve an older WP blog and this plugin doesn’t work…I’ll wait for mk’s reply. ^^

  27. By mk
    on May 25, 2008 | Reply

    @theddy May I know what buttons you are trying to add? Are there any JavaScript errors when loading the page?

  28. By Olone
    on May 25, 2008 | Reply

    For MK,Hello,If your plugin is desactived, i haven’t pb…I see again….Ludo

  29. By Marylain
    on May 25, 2008 | Reply

    I think theddy has the very same error of mine…

  30. By Olone
    on May 25, 2008 | Reply

    Hello,Just pb with your plugin…I use mandigo theme…Best regardsLudo

  31. By theddy
    on May 25, 2008 | Reply

    Options: Nothing enabled.Buttons in use: bold, italic, underline, strikethrough, separator, undo, redo, separator, link, unlink, separator, cleanupPlugins in use: noneUser CSS: noneI don’t see any JavaScript error - but I will re-check it again and I’ll have a look if there is a problem in connection with other plugins.But as already wrote in my first post: Prior versions of your very helpful plugin had no problem.

  32. By theddy
    on May 25, 2008 | Reply

    Sorry - agian. Is it possible to  give more informaton which string(s) the plugin searches in the comment.php to insert the button bar? Perhaps my used theme (Daleri Selection 1.0) has no standard values.

  33. By linux juggler
    on May 25, 2008 | Reply

    hi :am using the v.0.4.4-3 but it seems that the writing direction does not shows as i choose in the setting ” rtl ” it always ” ltr ” .thank you

  34. By mk
    on May 25, 2008 | Reply

    @theddy Please read the updated FAQ

  35. By mk
    on May 25, 2008 | Reply

    @linux juggler Hello, the rtl bug confirmed, will fix in next release. Thanks a lot :D

  36. By theddy
    on May 25, 2008 | Reply

    Thanks for the FAQ.All themes I have in the theme folder have the file “comments.php” and not “comment.php” as you wrote in FAQ (typo?).Besides this my used theme has the ID “comment” in the textarea definition and the php line you wrote in FAQ.

  37. By mk
    on May 25, 2008 | Reply

    @theddy Thanks for notifying. Another way you can try is to remove the settings.js from the plugin directory. This tip is going into the FAQ by now.

  38. By theddy
    on May 25, 2008 | Reply

    I tried to use a default theme of WP - but without any success. As far as I already wrote the buttons are not displayed in the setup page of your plugin, neither.
    In the plugin directory I don’t find any “settings.js”.
    I tried your new version 0.4.4-4 - no success

  39. By mk
    on May 25, 2008 | Reply

    @theddy The plugin directory is wp_install_dir/wp-content/plugins/tinymcecomment/ .
    If the file wasn’t there you may open wp-config.php at the root of the installation, see if there’s a line with define(’WPLANG’, ‘en’); . if not, please add it back (or change ‘en’ to the code of your language)

  40. By theddy
    on May 25, 2008 | Reply

    In plugins directory of tinymcecomment I see the files: readme.txt, screenshot-1.png, screenshot-2.png, tinyMCEcomments.php.But in tinyMCEcomments.php I see on line 11define(’SETTINGS’, dirname(__FILE__) . ‘/settings.js’);but there is no file like this.The “define(’WPLANG’,de’); is in wp-config.php a very long time - I never changed this.

  41. By mk
    on May 25, 2008 | Reply

    @theddy Just visited your site. It seems I couldn’t reach the tinymce directory (http://www.blogkom.net/wp/wp-includes/js/tinymce/) and the plugin directory (http://www.blogkom.net/wp/wp-content/plugins/tinymcecomment/). Your site returned 404 not found for both. Do you know what settings caused that?

  42. By theddy
    on May 26, 2008 | Reply

    http://www.blogkom.net/wp/wp-includes/js/tinymce/ is there
    http://www.blogkom.net/wp/wp-content/plugins/tinymcecomment/ is not there, but http://www.blogkom.net/wp/wp-content/plugins/tinymcecomments/

  43. By Marylain
    on May 26, 2008 | Reply

    I’m sorry MK,I downloaded your latest version of the plugin.Unfortunately now I cannot see your comment box by using IE6.It still works fine with FF.Plus another question: is there a way to add an emoticon button together with the others?If yes, how?I also installed Advanced TinyMCE.Thank you. ^^

  44. By mk
    on May 26, 2008 | Reply

    @theddy Please rename the directory as “tinymcecomment”, without the s.

  45. By theddy
    on May 26, 2008 | Reply

    Bingo! Directory should be “tinymcecomment” - but your zip-file to download has “tinymcecomments” - with s! Uff ;-)

  46. By theddy
    on May 26, 2008 | Reply

    One thing: On my blog the buttons have no description when the mouse moves over them.

  47. By theddy
    on May 28, 2008 | Reply

    The mouse-over texts for the buttons are displayed now. In the setup first I deinstalled all buttons and then I reinstalled them again - and the texts are displayed now.

    One thing I found: The button “blockquote” seems not to work.

  48. By mk
    on May 28, 2008 | Reply

    @theddy Seems you need to highlight the text to make it blockquoted.

  49. By theddy
    on May 28, 2008 | Reply

    Well with Firefox it doesn’t work and with Internet Explorer the whole text - not only the lines I want - gets blockquoted… I leave it on my blog - perhaps you can try it.

  50. By theddy
    on May 28, 2008 | Reply

    BTW. Numlist und Bullist are not working with Firefox, neighter. In Wordpress administration blockquote, numlist and blullist are working correctly.

  51. By mk
    on May 30, 2008 | Reply

    @theddy For the blockquote I think that should be a bug. In the meantime you may go and edit the plugin PHP in the dashboard, find the line with

    extended_valid_elements

    and add blockquote to the string.

  52. By theddy
    on May 30, 2008 | Reply

    But as far as I see the string “blockquote” is already in the line “extended_valid_elements”.

  53. By mk
    on May 31, 2008 | Reply

    @theddy Could you check if the blockquote has been filtered out or just hidden by CSS styles by checking the comment in the dashboard interface?

  54. By theddy
    on May 31, 2008 | Reply

    Where could “blockquote” be “filtered out”? In CSS I have two definitions for blockquote:

    blockquote {padding:0px 15px 0px 15px; margin:0 5px 0 5px; border-left:4px solid #eeeeee;}
    blockquote p {padding:0px 0 0px 0; margin:0; font-style:italic; color:#444;}

    In the admin interface where the setup for MCEcomments are done - blockquote doesn’t work neigher.

    BTW. And on this comment form here the cursor isn’t displayed with Firefox 2.0.0.14

  55. By caschy
    on Jun 2, 2008 | Reply

    0.4.4.4 has the same errors :(

  56. By mk
    on Jun 2, 2008 | Reply

    @theddy Could you check in the comment page in the dashboard, and see if there are any HTML tags there? If they are there that’s your theme doesn’t display those tags. You may contact your theme author.

    And the cursor… Does the cursor shown in admin interface?

  57. By mk
    on Jun 2, 2008 | Reply

    @caschy Could you remove the whole plugin directory and re-install again and see if the problem persists?

  58. By caschy
    on Jun 4, 2008 | Reply

    yeah - i do

  59. By Mike W
    on Jun 11, 2008 | Reply

    I am running WP 2.5.1 with the Sandbox theme and the tinyMCEbuttons are not showing up on the comment box.

    I brought up the page: http://www.thelowerbarn.com/wp/wp-content/plugins/tinymcecomments/tinyMCEComments.php

    and get the following message:
    Fatal error: Call to undefined function: add_action() in /home/thelower/public_html/wp/wp-content/plugins/tinymcecomments/tinyMCEComments.php on line 323

    I found ‘<?php do_action(’comment_form’, $post->ID); ?>’ in comments.php.

    What should I check next?

    Thanks, Mike

  60. By mk
    on Jun 11, 2008 | Reply

    @Mike W: add_action() is a programming API provided by WordPress itself, and it is quite unusual to have that error messaage. Do you have other plugins running?

  61. By Ari
    on Jun 11, 2008 | Reply

    Hi MK, just to let you know, I just upgraded to MCEComments 0.4.4-4 and the funny bug/problem with the tooltips and “insert link” dialog buttons with a localized (spanish) site is still present.
    cheers

  62. By mk
    on Jun 12, 2008 | Reply

    @Ari: Could you try remove the whole plugin directory and install again? If problem persists could you dump the generated Javascript (http://domain.com/path-to-wp/wp-content/plugins/tinymcecomments/tinyMCEComments.php?init) to my mail?

  63. By Ari
    on Jun 15, 2008 | Reply

    MK, I removed the whole plugin directory and then reinstalled and the problem persists (see my blog).

    I also captured the javascript but I can’t find your email address anywhere to send it out, can you please send me an email and I will reply with the javascript (you have my email now)

    Another little thing that I noticed is that once you activate mcecomments, the “tab order” of the comment form is altered. If you press tab after entering “Name”, you go to the “E-mail” field, then after that, a new tab takes you to “Website”, and after that you are supposed to go to the comment field to start typing the comment. With MCEComments, a tab carries you nowhere (see my blog), which is a bit annoying for the people commenting.

    TIA

  64. By mk
    on Jun 16, 2008 | Reply

    @Ari: It seems the JavaScript you sent me are normal - They showed Spanish tooltips supposedly and the syntax is correct. Is the same thing happening when you are using the WYSIWYG editor in the panel?

    And for the tab problem… I think I need some time to do the enhancement. Thanks for your patience!

  65. By Ari
    on Jul 27, 2008 | Reply

    Hi MK, sorry my response took so long.

    The “internal” WYSIWYG editor that I use to create new posts within wordpress does not have this problem. Tooltips display in Spanish with no funny “subroutine-like names”.
    I am now using your latest and greatest version (0.4.5) which works great, but also has the tooltip problem.

    Note that my wordpress 2.6 install has the spanish localisation added to it, meaning:
    define (’WPLANG’, ‘es_ES’);
    (in wp-config.php)
    and the file es_ES.mo  in wp-includes/languages

    The es_ES.mo file comes from here:

    http://es-wordpress.googlecode.com/files/wp-2.6-es_ES.zip

    Hope this helps!
    cheers

Post a Comment