Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2006-02-08 08:44:24

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview

I also get this javascript error

This might happen because you don’t use the standard tags to insert the input fields. e.g. <txp:message />.
The plugin is trying to modified the DOM and looks for 2 input fields, one with the id “name” and anotherone with the id “message”.

Are you using TXP 4.0.3?

Last edited by Skubidu (2006-02-08 14:17:34)

Offline

#122 2006-02-08 21:06:20

sominty
Member
Registered: 2005-12-27
Posts: 16

Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview

I am using 4.0.3. I actually tried this on a brand new install from opensourcecms.org and thats the errors I got. Ill do some more snooping. Let me know if you find anything.

Offline

#123 2006-02-21 05:28:34

RHD
Member
From: mid-Atlantic US
Registered: 2004-11-09
Posts: 29
Website

Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview

This might be a dumb question, but without <code><txp:nhn_comment_submit /></code>, how do comments get submitted?

I tried replacing <code><txp:nhn_comment_submit /></code> with <code><txp:comment_submit /></code>, but Txp doesn’t want to show the Submit button until the Preview button has been clicked.

Offline

#124 2006-02-21 08:37:34

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview

It’s the normal behaviour, that Textpattern doesn’t show the submit button until you clicked the preview button. It’s not possible to skip the preview button with a standard installation and it’s not possible to skip it with this plugin anymore. I had to change this due to the enormous changes between version 4.0.2 and 4.0.3: For beeing able to skip the preview I had to rewrite the entire comment handling and it got to complicated to keep this up to date. I’m sorry!

If someone has an idea for an easy implementation of this feature, feel free to post it here.

Offline

#125 2006-02-22 05:17:50

RHD
Member
From: mid-Atlantic US
Registered: 2004-11-09
Posts: 29
Website

Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview

OK. That’s what I figured. I just wasn’t sure if I was missing something.

Thanks for your work on this plugin, Skubidu.

Offline

#126 2006-02-27 04:48:20

jdykast
Member
From: Tennessee
Registered: 2004-12-30
Posts: 119
Website

Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview

I found myself wanting to format the date in a manner not provided within the site preferences so I tweaked the <code><txp:nhn_lcp_date /></code> tag. I took the code from the default comment date tag, made a slight change and inserted it into the live preview version:

<pre><code>function nhn_lcp_date($atts) { //— Original // global $comments_dateformat; // return safe_strftime($comments_dateformat,0);

//— Added global $comments_dateformat; extract(lAtts(array( ‘format’ => $comments_dateformat, ), $atts)); $comment_time = safe_strftime($format,0); return $comment_time;
}
</code></pre>

Offline

#127 2006-02-27 08:12:08

RHD
Member
From: mid-Atlantic US
Registered: 2004-11-09
Posts: 29
Website

Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview

Very nice, jdykast. I was wishing for a “format” attribute for that tag just the other day.

Thanks.

Last edited by RHD (2006-02-27 08:15:37)

Offline

#128 2006-02-28 04:34:30

jdykast
Member
From: Tennessee
Registered: 2004-12-30
Posts: 119
Website

Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview

This is a great plugin but I sure look forward to the ability to bypass the preview button. I see that Jon Hicks is still using an old version of the plugin and I wonder how much comment spam he deals with. Are any of you fighting spam in your comments while using a pre 0.5 version of this plugin? Are the older versions of this plugin “unsafe” to use? Are there things in Textpattern 4.0.3 that are incompatible with version 0.3.1 of this plugin?

Offline

#129 2006-02-28 08:15:20

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview

The whole internal comment handling has been changed in version 4.0.3 – that’s the problem. (comment spam classification has been added)
I don’t know why, but for some people the old plugin version works with version 4.0.3, for others it doesn’t.

Offline

#130 2006-03-02 05:59:42

egid
Member
Registered: 2005-11-30
Posts: 10
Website

Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview

I’m running the old version with 4.0.3 just fine, and as I like (and use) the extra functionality I’ll be sticking with what I’ve got.

Offline

#131 2006-03-18 09:13:41

maarten
Member
From: Netherlands
Registered: 2005-02-19
Posts: 130
Website

Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview

Hi,

I’m having an XHTML validation problem (v0.3.1) with this plugin I would like to solve. Now I’m aware that this is certainly not the latest version but I like it the way it is. I use slight adjustments in the code that highlight fieldlabels in red in case of an input warning.

Anyway the W3 validator is screaming about this:

<code>// Nils added: ndash r = r.replace(‘—’,’?’);</code>

Is there an easy way to correct this?

thanks
Maarten

Offline

#132 2006-03-18 09:18:39

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview

Please try this (it’s the code used in the newest version):
// Nils added: ndash
r = r.replace('--','&#8211;');

By the way: there are much more people using version 0.3.1 than 0.5 (900 to 200 downloads). Fascinating. Is it because of the skip preview thing?

Offline

Board footer

Powered by FluxBB