Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2005-10-04 11:38:42

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

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

> aba wrote:

> Anything that might be interesting for others and may be included in future versions of the plugin?

Its mainly just styling stuff (to work with my comments box style), adding class names and the like, and a tabindex="4" to the <textarea>, so that tabbing worked. The only addition that might be of interest is incorporating this: http://livsey.org/experiments/textareatools/, which just needs a classname added to the <textarea>

The other hacks were just to put some non-breaking spaces in around the checkboxes and submit, although when I get time I’ll do the css properly. It would be nice if the checkbox labels were enclosed in <label> tags, as that would give a hook (as well as being semantic/righteous/worthy).


Cheers,
Jon VC#9

Offline

#22 2005-10-04 16:51:19

thomasstache
Member
From: Dresden, Germany
Registered: 2005-01-18
Posts: 14
Website

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

<blockquote>jonhicks wrote:
It would be nice if the checkbox labels were enclosed in <label> tags, as that would give a hook (as well as being semantic/righteous/worthy).</blockquote>

That would be revision 950. It’s already in the core!


Thomas Stache

Offline

#23 2005-10-04 18:39:04

Matt
Member
Registered: 2004-02-28
Posts: 92
Website

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

I’m still not seeing the comment entry form.
Just to be sure, here are my forms and their tags:

comments_display:
<code>
<txp:comments />
<txp:if_comments_allowed>
<txp:nhn_comments_form />
</txp:if_comments_allowed>
</code>

comment_form:
<code>
<txp:nhn_livecommentpreview />
</code>

Should these both be “Comment” type forms, or should one be an “article” type?

Offline

#24 2005-10-04 18:48:30

zoeglingjulian
Member
From: London, UK
Registered: 2004-12-23
Posts: 52
Website

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

I’ve got a request. I tried the plugin and find it great so far, but it doesn’t seem to do smart quotes or dashes. Neither do they work on my test install nor do they on Jon Hicks’ site, so I guess it’s not a bug but by design… is there a way to enable that functionality?

Offline

#25 2005-10-05 05:31:39

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

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

Hi Matt!

Your comments_display looks right. But your comment_form doesn’t:
You have to leave all the input fields (name, email, message etc.) in it and just add <code><txp:nhn_livecommentpreview /></code> where you want to show the preview itself.

It should be both saved as comment.

Offline

#26 2005-10-05 05:37:29

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

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

@zoeglingjulian: One question about your request. Does “magic quotes” mean, that &quot;&quot; is changed to “”?! I have to look in the javascript to see if it’s possible, but it should be.

I’m moving today and there is no internet at my new home yet, so please don’t expect a solution untill the weekend :)

Last edited by Skubidu (2005-10-05 05:39:16)

Offline

#27 2005-10-05 11:39:41

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

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

Is the <txp:nhn_comment_spamsave /> really needed? I seem to be able to post comments without selecting it. Or is this ignored if the users details are remembered?

Last edited by jonhicks (2005-10-05 11:39:57)


Cheers,
Jon VC#9

Offline

#28 2005-10-06 07:17:33

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

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

Well, it should be needed. I look at it as soon as possible.

Offline

#29 2005-10-06 07:33:01

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

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

Hi Jon!

Could you please download the plugin again and check if version 0.2.2 is working for you?
Thanks!

Nils

Offline

#30 2005-10-08 00:02:07

Neko
Member
Registered: 2004-03-18
Posts: 458

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

Hi Skubidu.

First of all, thanks for this wonderful plug-in. However I’m able to post comments without selecting the anti-spam check box too. I’m using version 0.2.2.

Offline

Board footer

Powered by FluxBB