68 ответов к «jQuery Comment Preview WordPress Plugin»
Hi,
This looks like an excellent plugin, but unfortunately there’s a conflict with LMB Comment Quicktags (similar to your toolbar, but more elaborate). Because of the textarea.clone div and the two instances of the textarea (with both using id #comment) the Comment Quicktags toolbar doesn’t know in which textarea canvas to insert the code. Is there a solution for this or could you (even better) please incorporate the same functionality of Comment Quicktags into your plugin jQuery Comment Preview (specifically in the html editor)?
Please ignore my previous comment. Your plugin is exactly what I’ve been looking for and now has replaced the Comment Quicktags toolbar linked in my previous post (or feel free to unapprove both comments).
And another comment: it seems this plugin is causing problems with comments not getting through after the first submit. It will throw an error
Jean-Paul Horn, I have released new version. Please update a plugin.
P.S. I’m glad, that you liked a plugin.
nice plugin
Hey this is cool! Thanx again…I’m installing now and will let you know more later;)
Nice Plugin
Nice plugin!
hi. Thanks for plugin
perfect.
Regards
Thanks for plugin
Good pllugin, thanks!
really nice. Thank you!
It’s very nice and seems to work in my blog, but I have two questions:
1) Is there any translation file into spanish? If not, what file should I edit to translate it? (You know, I want to display «Nombre» in place of «Name».
2) Does it work with @Reply plugin or similar?
1. No, but you can make this file by youself, plugin consists required files for translation. Manual on translation you may find here — Translating WordPress.
2. I don’t know, I have not tested it. Most likely will work.
why avatars in preview don’t work?
@alekodf, because is it harder to realize on JavaScript than on PHP. It takes a lot of extra code, therefore I don’t see a sense in this.
I would like to add buttons to the HTML bar above (specifically an «underline» button). I’ve tried doing this via the plugin settings, but apparently the actual graphic is one picture. Not sure, therefore, how to add additional HTML features and images (an actual underline icon in the menu above).
@Matt, you need to create an icon for this button and then write CSS styles for it in jquery-comment-preview.css file.
Nice plug-in. Thinking of using it.
Is it possible to hide the avatar img in preview? I tried .avatar img in the CSS file, but it didn’t hide it — I have it blank in the WordPress settings. Any suggestions?
@Marcy — just delete {avatar} from Preview block template field on plugin options page.
This would definitely beautify the blog posts and appears more easy to install than CForms.
CForms is the best, but for a simple blog like mine, I would be moreh appy with a normal commenting form like this.
thanx for the plugin!!
I’ll definitely try this on my site
thanks for this plugin
Looks good!
I have this error log in my firebug and plugin didn’t worked.
MD5 is not defined
[Break on this error] var md5 = MD5(email);\n
Ozgur, I see that the plugin works great on your site.
Hi Dimox, I’m strugling for hours now, so maybe it’s time to ask for some help. The preview looks fine, but when a comment is submitted, I still see the ugly default WP comment (with the scrambled mail address and without the date).
Is there some option in jQuery that I have missed or do I have to change something in the theme? And if so, what and where?
I work with WP 2.8.4 and I’m a rookie: thanks for the plugin and your help!
Oxsasuna, my plugin is not relevant to your problem. May be something wrong in template of your site.
How can I activate the bold, italic etc buttons?
Instructions are on the plugin options page.
Sorry, but… Where is the plugin options page?
Admin panel → Settings → jQuery Comment Preview
Thanks!
Quick question!
Can it *force* a commentor to preview before submitting?
(I hope it can!)
tnks!
%%r
robert phillips, no.
Hi Dimox,
Thanks for the nice plugin. I’ve it installed with a breeze and it works perfectly within mins.
There is one issue that I’m struggling for days. After numerous insane tries, I couldn’t find the css to edit the width of the preview textarea. I’m trying to make the preview textarea’s width fluid in proportion of the threaded comments. Would like to check with you where can I edit that? I saw the css textarea_clone but don’t think that is the right one after fruitless attempts.
Thanks and looking forward to your pointer.
coq10, this textarea usually has an id="comment", so use this id. It can be in style.css file of your theme.
Thanks Dimox. Got it sorted.
I’ve another question if you can help. I have just noticed a problem with the html-editor’s button. When I highlight a sentence to style it, I click ‘b’ button (for example to bold the sentence) the html tags appears AFTER the sentence.
I noticed your preview box here works well with the sentence in between the tags, is that something I need to change in the plugin downloaded or a setting to configure at the admin panel? The only changes I made to the plugin is the css file.
Thanks
Looks to me like you’re using an old version of the plug-in here. When I use the new version in IE8, blockquote doesn’t work and the textarea box is in the wrong place.
Also doesn’t work on Pages.
Am in the process of trying to recall and restore a hack or two that I did that utilized the simple editing bar and another preview application.
If you solve the problem or have any suggestions, I’d of course much rather stick with your new version!
coq10, what browser you are using (and his version)?
CK MacLeod,
blockquote doesn’t work
What you mean?
the textarea box is in the wrong place
Show me an example.
Also doesn’t work on Pages.
I have tested plugin on Pages and it works for me. Also please show me an example of such a page.
Hi Dimox,
I’m using IE8. Thanks
coq10, this problem occurs in all version of IE. As soon as I will find a solution, I’ll release a new version of plugin.
Hi Dimox,
Appreciate your prompt reply. I was wondering if I had did anything wrong to the plugin as I’m using IE8 to surf your site too and the tags work fine. Thanks for the consistent effort you put forth in the plugin, looking forward to your new version of plugin!
Dimox, thanks for your reply.
The problem I mentioned regarding blockquote on IE8 is the same one that coq10 describes.
On further examination, I find that the «not working on Pages» problem appears to be a commonly occurring problem relating to multiple plug-ins that use the textarea comment ID and come into conflict when used at the same time.
If you developed a comment plug-in that combined Reply/Quote functionality (see, e.g., Comment Tooblar plug-in) with HTML mark-up/editor, it might be very popular, since combining the two can be very tricky where it’s possible at all on WordPress. Other comment text formatters that employ the CKeditor or similar more sophisticated text editors likewise conflict both with your plug-in and with reply/quote plug-ins.
The IE8 formatting problem: The comment textarea box floats to the center of the page, even overlapping the sidebar. I haven’t made a major effort to analyze or fix the problem because my blog is active, and because I don’t want to employ the plug-in while the conflicts and bad formatting are occurring. I can provide you with a screenshot and or page source code if that would be helpful.
Best,
CK
If you developed a comment plug-in that combined Reply/Quote functionality (see, e.g., Comment Tooblar plug-in) with HTML mark-up/editor, it might be very popular, since combining the two can be very tricky where it’s possible at all on WordPress.
Okay, I will look what I can do about this.
I can provide you with a screenshot and or page source code if that would be helpful.
Without a live example it’s hard to me to determine a cause.
Okay, I will look what I can do about this.
I’d be happy to assist if I could somehow. The writer of the «Quote Comments» plug-in — at got part of the way toward integrating a «Quote the comment function» with the MCE Comments plug-in.
I didn’t fully test it on multiple browsers partly because there was some weird formatting behavior, also because MCE Comments has minor problems of its own along these lines. The Comment Quotes solution isn’t very clean, but it’s the closest any I’ve tested comes to combining both features.
If you’re not getting a mal-formatted comment box on IE8, it may have something to do with the peculiarities of my theme. I’ve been meaning to set-up a «test» blog so that I could experiment without upsetting the flow at my regular blog, and, when I do, I’ll provide you with examples.
The writer of the Wp NicEDIT plug-in also looked into the problem of multiple plug-ins conflicting over the textarea, but, after hacking his own solution never developed one for broad application. If you poke around in the comment threads, you will find a familiar discussion of the conflicts and eventually a more detailed discussion of partial solutions.
Thanks!
CK
Trying out the plugin.
I just installed 1.6, and, whatever you did, you seemed to have solved the conflict problem that was preventing your app from loading and functioning on Pages, and the conflicting with Comment Toolbar also seems to have disappeared.
The problem with the textarea box floating into the middle of the page seemed to have resulted from some curious combination of my theme and IE8 in «Compatibility View.» I don’t even recall any longer why I preferred viewing the site in CV when on IE8, but other aspects of the site look marginally better in regular IE8 anyway.
If you want to view the problem and try to figure out why it’s happening, you can check any comment thread on the site — such as this one. (Still not sure which stray parameter is preventing the textarea box and the bar from matching up better, but haven’t looked the problem over yet.)
If you want to view the problem and try to figure out why it’s happening, you can check any comment thread on the site – such as this one.
I don’t see any problems in IE8.
I don’t see any problems in IE8.
Are you viewing it in Compatibility View?
I saw now. There are a conflict with another JavaScript scripts used on your site. I don’t know how to resolve this.
Well — I probably keep things as they are unless I get a lot of complaints. How many IE users regularly browse using Compatibility View? I’m currently building up another site under a different theme and will see if and when and how the glitch recurs.
Is there any way to put an IMAGE tag?
I tried with
Image
Image
etc, etc…
Thanks! By the way, great plugin…
ElPerro, read instructions on plugin options page.
Hi — just installed 1.6 on wordpress 2.9.2, but the plugin was’nt appeared.
Ruka, show me please an example of a page, where preview not appearing.
testing the plugin — by the way — does this work with Akismet, so as to catch spam comments?
GodKid, sure does.
Does it work
it’s a test to see your plugin 😉
Thanks for the great plugin Dimox.
The buttons to add markup are working fine, but unfortunately I can’t get the ‘Preview’ button to work. There’s no response on clicking. I’m running WordPress 2.9.2. Would you mind taking a look? Any troubleshooting steps you could suggest?
RyanVQ, show me, please, your preview block template.
Hi,
This looks like an excellent plugin, but unfortunately there’s a conflict with LMB Comment Quicktags (similar to your toolbar, but more elaborate). Because of the textarea.clone div and the two instances of the textarea (with both using id #comment) the Comment Quicktags toolbar doesn’t know in which textarea canvas to insert the code. Is there a solution for this or could you (even better) please incorporate the same functionality of Comment Quicktags into your plugin jQuery Comment Preview (specifically in the html editor)?
Please ignore my previous comment. Your plugin is exactly what I’ve been looking for and now has replaced the Comment Quicktags toolbar linked in my previous post (or feel free to unapprove both comments).
And another comment: it seems this plugin is causing problems with comments not getting through after the first submit. It will throw an error
Jean-Paul Horn, I have released new version. Please update a plugin.
P.S. I’m glad, that you liked a plugin.
nice plugin
Hey this is cool! Thanx again…I’m installing now and will let you know more later;)
Nice Plugin
Nice plugin!
hi. Thanks for plugin
perfect.
Regards
Thanks for plugin
Good pllugin, thanks!
really nice. Thank you!
It’s very nice and seems to work in my blog, but I have two questions:
1) Is there any translation file into spanish? If not, what file should I edit to translate it? (You know, I want to display «Nombre» in place of «Name».
2) Does it work with @Reply plugin or similar?
1. No, but you can make this file by youself, plugin consists required files for translation. Manual on translation you may find here — Translating WordPress.
2. I don’t know, I have not tested it. Most likely will work.
why avatars in preview don’t work?
@alekodf, because is it harder to realize on JavaScript than on PHP. It takes a lot of extra code, therefore I don’t see a sense in this.
I would like to add buttons to the HTML bar above (specifically an «underline» button). I’ve tried doing this via the plugin settings, but apparently the actual graphic is one picture. Not sure, therefore, how to add additional HTML features and images (an actual underline icon in the menu above).
@Matt, you need to create an icon for this button and then write CSS styles for it in
jquery-comment-preview.css
file.Nice plug-in. Thinking of using it.
Is it possible to hide the avatar img in preview? I tried .avatar img in the CSS file, but it didn’t hide it — I have it blank in the WordPress settings. Any suggestions?
@Marcy — just delete
{avatar}
fromPreview block template
field on plugin options page.This would definitely beautify the blog posts and appears more easy to install than CForms.
CForms is the best, but for a simple blog like mine, I would be moreh appy with a normal commenting form like this.
thanx for the plugin!!
I’ll definitely try this on my site
thanks for this plugin
Looks good!
I have this error log in my firebug and plugin didn’t worked.
MD5 is not defined
[Break on this error] var md5 = MD5(email);\n
Ozgur, I see that the plugin works great on your site.
Please remove my other message, i fixed it too. And ? use jQuery noconlifct
http://www.adrogen.com/blog/jquery-conflict-is-not-a-function/
Thanks for great plugin too!
— Ozgur
Hi Dimox, I’m strugling for hours now, so maybe it’s time to ask for some help. The preview looks fine, but when a comment is submitted, I still see the ugly default WP comment (with the scrambled mail address and without the date).
Is there some option in jQuery that I have missed or do I have to change something in the theme? And if so, what and where?
I work with WP 2.8.4 and I’m a rookie: thanks for the plugin and your help!
Oxsasuna, my plugin is not relevant to your problem. May be something wrong in template of your site.
How can I activate the bold, italic etc buttons?
Instructions are on the plugin options page.
Sorry, but… Where is the plugin options page?
Admin panel → Settings → jQuery Comment Preview
Thanks!
Quick question!
Can it *force* a commentor to preview before submitting?
(I hope it can!)
tnks!
%%r
robert phillips, no.
Hi Dimox,
Thanks for the nice plugin. I’ve it installed with a breeze and it works perfectly within mins.
There is one issue that I’m struggling for days. After numerous insane tries, I couldn’t find the css to edit the width of the preview textarea. I’m trying to make the preview textarea’s width fluid in proportion of the threaded comments. Would like to check with you where can I edit that? I saw the css textarea_clone but don’t think that is the right one after fruitless attempts.
Thanks and looking forward to your pointer.
coq10, this textarea usually has an
id="comment"
, so use this id. It can be instyle.css
file of your theme.Thanks Dimox. Got it sorted.
I’ve another question if you can help. I have just noticed a problem with the html-editor’s button. When I highlight a sentence to style it, I click ‘b’ button (for example to bold the sentence) the html tags appears AFTER the sentence.
I noticed your preview box here works well with the sentence in between the tags, is that something I need to change in the plugin downloaded or a setting to configure at the admin panel? The only changes I made to the plugin is the css file.
Thanks
Looks to me like you’re using an old version of the plug-in here. When I use the new version in IE8, blockquote doesn’t work and the textarea box is in the wrong place.
Also doesn’t work on Pages.
Am in the process of trying to recall and restore a hack or two that I did that utilized the simple editing bar and another preview application.
If you solve the problem or have any suggestions, I’d of course much rather stick with your new version!
coq10, what browser you are using (and his version)?
CK MacLeod,
What you mean?
Show me an example.
I have tested plugin on Pages and it works for me. Also please show me an example of such a page.
Hi Dimox,
I’m using IE8. Thanks
coq10, this problem occurs in all version of IE. As soon as I will find a solution, I’ll release a new version of plugin.
Hi Dimox,
Appreciate your prompt reply. I was wondering if I had did anything wrong to the plugin as I’m using IE8 to surf your site too and the tags work fine. Thanks for the consistent effort you put forth in the plugin, looking forward to your new version of plugin!
Dimox, thanks for your reply.
The problem I mentioned regarding blockquote on IE8 is the same one that coq10 describes.
On further examination, I find that the «not working on Pages» problem appears to be a commonly occurring problem relating to multiple plug-ins that use the textarea comment ID and come into conflict when used at the same time.
If you developed a comment plug-in that combined Reply/Quote functionality (see, e.g., Comment Tooblar plug-in) with HTML mark-up/editor, it might be very popular, since combining the two can be very tricky where it’s possible at all on WordPress. Other comment text formatters that employ the CKeditor or similar more sophisticated text editors likewise conflict both with your plug-in and with reply/quote plug-ins.
The IE8 formatting problem: The comment textarea box floats to the center of the page, even overlapping the sidebar. I haven’t made a major effort to analyze or fix the problem because my blog is active, and because I don’t want to employ the plug-in while the conflicts and bad formatting are occurring. I can provide you with a screenshot and or page source code if that would be helpful.
Best,
CK
Okay, I will look what I can do about this.
Without a live example it’s hard to me to determine a cause.
I’d be happy to assist if I could somehow. The writer of the «Quote Comments» plug-in — at got part of the way toward integrating a «Quote the comment function» with the MCE Comments plug-in.
I didn’t fully test it on multiple browsers partly because there was some weird formatting behavior, also because MCE Comments has minor problems of its own along these lines. The Comment Quotes solution isn’t very clean, but it’s the closest any I’ve tested comes to combining both features.
If you’re not getting a mal-formatted comment box on IE8, it may have something to do with the peculiarities of my theme. I’ve been meaning to set-up a «test» blog so that I could experiment without upsetting the flow at my regular blog, and, when I do, I’ll provide you with examples.
The writer of the Wp NicEDIT plug-in also looked into the problem of multiple plug-ins conflicting over the textarea, but, after hacking his own solution never developed one for broad application. If you poke around in the comment threads, you will find a familiar discussion of the conflicts and eventually a more detailed discussion of partial solutions.
Thanks!
CK
Trying out the plugin.
I just installed 1.6, and, whatever you did, you seemed to have solved the conflict problem that was preventing your app from loading and functioning on Pages, and the conflicting with Comment Toolbar also seems to have disappeared.
The problem with the textarea box floating into the middle of the page seemed to have resulted from some curious combination of my theme and IE8 in «Compatibility View.» I don’t even recall any longer why I preferred viewing the site in CV when on IE8, but other aspects of the site look marginally better in regular IE8 anyway.
If you want to view the problem and try to figure out why it’s happening, you can check any comment thread on the site — such as this one. (Still not sure which stray parameter is preventing the textarea box and the bar from matching up better, but haven’t looked the problem over yet.)
I don’t see any problems in IE8.
Are you viewing it in Compatibility View?
I saw now. There are a conflict with another JavaScript scripts used on your site. I don’t know how to resolve this.
Well — I probably keep things as they are unless I get a lot of complaints. How many IE users regularly browse using Compatibility View? I’m currently building up another site under a different theme and will see if and when and how the glitch recurs.
Is there any way to put an IMAGE tag?
I tried with
Image
Image
etc, etc…
Thanks! By the way, great plugin…
ElPerro, read instructions on plugin options page.
Hi — just installed 1.6 on wordpress 2.9.2, but the plugin was’nt appeared.
Ruka, show me please an example of a page, where preview not appearing.
testing the plugin — by the way — does this work with Akismet, so as to catch spam comments?
GodKid, sure does.
Does it work
it’s a test to see your plugin 😉
Thanks for the great plugin Dimox.
The buttons to add markup are working fine, but unfortunately I can’t get the ‘Preview’ button to work. There’s no response on clicking. I’m running WordPress 2.9.2. Would you mind taking a look? Any troubleshooting steps you could suggest?
RyanVQ, show me, please, your preview block template.
Dimox, it looks like this:
<ol id=»comment-preview»>
<li>
{avatar}
<p><strong>{author}</strong> says ({date:time}):</p>
{comment}
</li>
</ol>
Thanks.
RyanVQ, download new version of the plugin, I have solved this problem.
Thanks Dimox, I downloaded the new version and it works perfectly.