(tiny)mceComments 0.4.4-1
近日有一外國朋友 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
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!
But as far as I see the string “blockquote” is already in the line “extended_valid_elements”.
@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?
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
0.4.4.4 has the same errors
@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?
@caschy Could you remove the whole plugin directory and re-install again and see if the problem persists?
yeah – i do
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
@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?
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
@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?
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
@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!
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
你好,您的 mceComments 很好用,但目前我換成 WordPress2.7 有點小問題,例子在
http://betablog.derjohng.com/2006/12/13/dj-email-publish-v14/#comment-3000
您向上找任何一個 “Reply” 點下去,editor 會被 disabled.
而這個在 Firefox 下有問題,而 IE 沒問題。
在 Click “Reply” 時,其實會執行
wp-includes/js/comment-reply.js 內的 addComment.moveForm
不知是不是它的問題~~
PS: 目前用的是 mceComments 0.4.5
@derjohng : 你好~ 先在這裡感謝一下你對插件的支持。
這種情況我在做實驗的時候也發生過。但原因不是因為有甚麼設定把 TinyMCE 鎖死,而是因為 JS 在「複製」整個 <textarea> 的時候沒把那些 hook 都一併建一套… 所以看起來就只有樣子,按下去沒反應了。
我也不知道這是不是死症,還是可以透過甚麼方法,等新的 <textarea> 製造出來的時候,再讓 TinyMCE 重設多一次。可惜現在公事較忙(我沒偷打電玩唷),也許要等一下才可以想個辦法…
呵~不急
現在有 workaround 的方法,就先不讓他進行 addComment.moveForm 即還可使用
测试一下颜色,为什么我的blog上如果是普通的用户,不能改变字体的颜色呢,只有管理员登录之后,评论的时候如果改字体颜色的话,才有变化?
呵呵 果然是个bug,你这里也是,刚才我留言,里面有些字,我已经改变了颜色,可是发布之后,却还是默认的颜色,没有变化,如果博主有时间,就修正一下吧
@aotoman : 很不幸這不是源自插件的問題。基本上插件在顯示編輯器是一視同仁的,換言之插件本身不會因為使用者是甚麼身份而過濾留言。這其實是 WordPress 為了防範訪客破壞版面才有的東西,要修改就有可能要直接改 WordPress 的程式碼。我不知道是不是還有甚麼方法,因為也沒仔細研究過…