Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
- I am Squared Eye and I
am launchinghave launched Pattern Tap
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’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><txp:comments />
<txp:if_comments_allowed>
<txp:nhn_comments_form />
</txp:if_comments_allowed>,</code></pre>
<p>my comments_form is basically the default other than the added tags for this plugin. Here it is:</p>
<pre><code><table cellpadding=“4” cellspacing=“0” border=“0”>
<tr>
<td align=“right” valign=“top”>
<txp:text item=“name” />
</td>
<td valign=“top”>
<txp:comment_name_input />
</td>
<td valign=“top” align=“left”>
<txp:comment_remember />
</td>
</tr>
<tr>
<td align=“right” valign=“top”>
<txp:text item=“email” />
</td>
<td valign=“top” colspan=“2”>
<txp:comment_email_input />
</td>
</tr>
<tr>
<td align=“right” valign=“top”>
http://
</td>
<td valign=“top” colspan=“2”>
<txp:comment_web_input />
</td>
</tr>
<tr>
<td valign=“top” align=“right”>
<txp:text item=“message” />
</td>
<td valign=“top” colspan=“2”>
<txp:comment_message_input />
</td>
</tr>
<tr>
<td align=“right” valign=“top”>&nbsp;</td>
<td valign=“top” align=“left”>
<txp:comments_help />
</td>
<td align=“right” valign=“top”>
<txp:nhn_commit_submit />
<txp:nhn_comment_spamsave />
</td>
</tr>
</table>
<table>
<txp:nhn_livecommentpreview />
</table></code></pre>
Last edited by Simplexposure (2005-10-20 20:27:10)
Offline
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
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.
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
Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview
That’s strange!
Anybody else having a similar problem?
Offline
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
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
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
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