Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#49 2005-10-20 14:08:51

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

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

Simpleexposure,
I would guess that its an issue with a broken tag. That happened to me. I had simply left out an end quote on a class name and Slurp my browser ate my submit button. Check ALL your tags before you go too much further. Nils is really helpful, so I bet you’ll get it worked out.

Matthew


Offline

#50 2005-10-20 20:22:02

Simplexposure
New Member
Registered: 2005-08-08
Posts: 5

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

<p>I&#8217;m using version 0.3.1 of the plugin and I have Textpattern version: 4.0.1 (r888). </p>

<p>here is my comments_display:</p>

<pre><code>&lt;txp:comments /&gt;
&lt;txp:if_comments_allowed&gt;
&lt;txp:nhn_comments_form /&gt;
&lt;/txp:if_comments_allowed&gt;,</code></pre>

<p>my comments_form is basically the default other than the added tags for this plugin. Here it is:</p>

<pre><code>&lt;table cellpadding=“4” cellspacing=“0” border=“0”&gt;
&lt;tr&gt; &lt;td align=“right” valign=“top”&gt; &lt;txp:text item=“name” /&gt; &lt;/td&gt; &lt;td valign=“top”&gt; &lt;txp:comment_name_input /&gt; &lt;/td&gt; &lt;td valign=“top” align=“left”&gt; &lt;txp:comment_remember /&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt; &lt;td align=“right” valign=“top”&gt; &lt;txp:text item=“email” /&gt; &lt;/td&gt; &lt;td valign=“top” colspan=“2”&gt; &lt;txp:comment_email_input /&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt; &lt;td align=“right” valign=“top”&gt; http:// &lt;/td&gt; &lt;td valign=“top” colspan=“2”&gt; &lt;txp:comment_web_input /&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt; &lt;td valign=“top” align=“right”&gt; &lt;txp:text item=“message” /&gt; &lt;/td&gt; &lt;td valign=“top” colspan=“2”&gt; &lt;txp:comment_message_input /&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt; &lt;td align=“right” valign=“top”&gt;&amp;nbsp;&lt;/td&gt; &lt;td valign=“top” align=“left”&gt;
&lt;txp:comments_help /&gt; &lt;/td&gt; &lt;td align=“right” valign=“top”&gt;
&lt;txp:nhn_commit_submit /&gt;
&lt;txp:nhn_comment_spamsave /&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;table&gt;
&lt;txp:nhn_livecommentpreview /&gt;
&lt;/table&gt;</code></pre>

Last edited by Simplexposure (2005-10-20 20:27:10)

Offline

#51 2005-10-20 20:30:12

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

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

If found the problem: There is typo (I thought I had corrected it allready) in the plugin help:
It has to be <txp:nhn_comment_submit /> and NOT <txp:nhn_commit_submit />.

Sorry for that. It will be corrected in a new release that’s comming soon…

Offline

#52 2005-10-20 23:08:17

Simplexposure
New Member
Registered: 2005-08-08
Posts: 5

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

Nils thanks for the help. It works now. It’s always the little things that mess things up. Thanks again and I really like the plugin.

Offline

#53 2005-10-29 21:20:42

Marijn
New Member
From: The Netherlands
Registered: 2005-10-29
Posts: 3
Website

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

I’m having problems as well. Everything shows up fine and the Live preview thing works but when I submit a comment it isn’t added.

Linkable.co.uk

comments_display:
<code><txp:if_comments_allowed>
<h2 id=“comment”>Comments</h2>
<txp:comments />
</txp:if_comments_allowed>
<txp:if_comments_allowed>
<txp:nhn_comments_form />
</txp:if_comments_allowed></code>

comment_form:
<code><h3>Add your comment</h3>
<div id=“commentform”>
<div id=“commentboxes”>
<label><txp:text item=“Name” /></label>
<txp:comment_name_input />
<label><txp:text item=“Email” /></label>
<txp:comment_email_input />
<label><txp:text item=“Website” /></label>
<txp:comment_web_input />
</div>
<br />
<div id=“inputbox”>
<txp:hak_textile_tag />
<p class=“instructions”><txp:comments_help /></p>
<txp:comment_message_input />
</div>
<txp:nhn_livecommentpreview />
<txp:nhn_comment_submit />
</div></code>

nhn_livecommentpreview:
<code><h3>Preview Comment</h3>
<div id=“comment-preview” class=“comment <txp:ajw_comment_alt />”>
<div class=“comment-data”>
<span class=“comment-number”><a href=”#”><txp:ajw_comment_num /></a>.</span>
<span class=“comment-name”><txp:nhn_lcp_author /></span>
<span class=“comment-time”><txp:nhn_lcp_date /></span>
</div>
<div class=“comment-message”>
<txp:nhn_lcp_preview />
</div>
</div></code>

As you can see I also use the <code><txp:hak_textile_tag /></code>, <code><txp:ajw_comment_alt /></code> and <code><txp:ajw_comment_num /></code> plugins. Any help is appreciated muchly!

Last edited by Marijn (2005-10-29 21:30:45)

Offline

#54 2005-10-30 08:03:59

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

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

That’s strange!
Anybody else having a similar problem?

Offline

#55 2005-10-30 09:45:29

Marijn
New Member
From: The Netherlands
Registered: 2005-10-29
Posts: 3
Website

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

I can’t get them to work with the default comment form and nhn_livepreview disabled anymore. They did work before I added nhn_livepreview… I think something is screwed up good.

Offline

#56 2005-10-30 10:29:20

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

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

It is screwed up since you inserted <txp:nhn_livecommentpreview />?
Can you please deactivate the other comment plugins your using for a moment and see if it works them.
Thanks – I can’t see an obvious reason for your problems at the moment.

Offline

#57 2005-10-30 10:41:35

Marijn
New Member
From: The Netherlands
Registered: 2005-10-29
Posts: 3
Website

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

Okay, I don’t know what I did but after some debugging in the code and all the forms it seems to be working again. I have no clue what has fixed it but it’s fixed. Thanks for the help Skubidu!

Last edited by Marijn (2005-10-30 10:41:53)

Offline

#58 2005-11-02 09:53:15

davidm
Member
From: Paris, France
Registered: 2004-04-27
Posts: 719

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

This plugin was missing from textpattern resources site, just added it :)
http://textpattern.org/plugins/490/nhnlivecommentpreview


.: Retired :.

Offline

#59 2005-11-02 10:12:13

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

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

Hi David!

Thanks :) I totally forgot about that.
Could you please change a little thing: There is still this typo with “nhn_commit_submit”. It should be “nhn_comment_submit”. Thanks again…

Nils

Offline

#60 2005-11-05 01:24:24

Infi
Member
Registered: 2005-05-28
Posts: 75

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

> Skubidu wrote:

> That’s strange! Anybody else having a similar problem?

Yes, but only since the upgrade to 4.02. I reverted back to v0.2.1 of the plugin just to be sure. It’s definitely an upgrade-inspired issue as the old version of your plugin is now affected as well. (It worked just fine before.) Perhaps something to do with the new preview stuff in TXP?

Debug mode shows only “tag_error < txp:nhn_comments_form /> -> Notice: Undefined variable: text”. In addition to the comment not being submitted, the required email check is not being done, which is perhaps why the message isn’t finally submitted? It throws no warnings or errors… or confirmation of submission, of course.

> Maijn wrote:

>I have no clue what has fixed it but it’s fixed.

I have no clue where to start looking. :)

The only plugin I’m using is < txp:hak_textile_tag />, which doesn’t appear to affect anything.

Last edited by Infi (2005-11-05 06:27:36)

Offline

Board footer

Powered by FluxBB