Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview
Well I’ve incorporated it, but the comment form is a no show. I went back and triple checked all the tags were right (I moved the javascript to an external file though), but I can’t get that form to show itself (its not in the source code).
Any ideas where I might have gone wrong appreciated!
Cheers,
Jon VC#9
Offline
Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview
The documentation’s got some spelling mistakes.
<txp:nhn_livecommentpreview> should be <txp:nhn_livecommentpreview /> and
<txp:nhn_comment_form /> should be <txp:nhn_comments_form />.
That worked for me, at least.
Offline
Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview
Oh! I’m really sorry about these typos!
So, this is a memo for me: don’t work that late ;o)
I hope I fixed all typos now, the download has been updated. It’s just an update of the help text, if you downloaded the previous version, you just have to follow the instructions above made by zoeglingjulian.
Offline
Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview
Excellent! All working perfectly!
I still have to hack this to enable my own customizations, but at least I can do that to the plugin code, and not the main Textpattern files. This officially ends all my hacks to the system – hooray!
Cheers,
Jon VC#9
Offline
#20 2005-10-03 21:29:01
- aba
- Plugin Author
- Registered: 2004-04-14
- Posts: 119
Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview
> jonhicks wrote:
> I still have to hack this to enable my own customizations, but at least I can do that to the plugin code, and not the main Textpattern files.
Anything that might be interesting for others and may be included in future versions of the plugin?
Offline
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
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
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
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
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
Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview
@zoeglingjulian: One question about your request. Does “magic quotes” mean, that "" 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
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
Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview
Well, it should be needed. I look at it as soon as possible.
Offline
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