Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

Skubidu
Archived 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
Archived 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
Archived 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
Archived 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

#31 2005-10-08 07:36:01

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

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

So, I’m back in the internet at my new home. I hope to find some time the next days to fix this problems and add some features that have been requested via email.

Offline

#32 2005-10-08 08:09:14

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

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.

Yeah, exactly. "something" would get converted into “something”. And regarding the dashes, that would be word1 -- word2 becomes “word1 — word2” and word1 - word2 becomes “word1 – word2”. Just like textile does. You could look the exact replacements in /textpattern/libs/textile.php (or something like that) at around line 750.

Oh, and, but that’s not really necessary as I could just edit the source, could you think about <txp:nhn_comments_form openquote="»" closequote="«"/> e.g., that you change the format of the quotes like that? Great for non-english users like me ;)

Last edited by zoeglingjulian (2005-10-08 08:14:36)

Offline

#33 2005-10-08 15:27:14

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

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

No worky.

I checked and double checked everything. The live comment form seems to show up, but the preview doesn’t occur. The submit button, spamsave checkbox don’t show up at all?

I thought I had this stuff down. Obviously not.

Here are my forms:

Comments_display:

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

Comment_form:

<code>
<div id=“commentform”>

<h3 class=“commentform”>feedback form</h3>
<br/>
<br/>
<txp:if_cookie>

<i>Welcome back, <?php echo pcs(‘name’); ?>.</i>

<input type=“hidden” id=“name” name=“name” value=”<?php echo pcs(‘name’); ?>” size=“54” tabindex=“1” /><br/>
<input type=“hidden” id=“email” name=“email” value=”<?php echo pcs(‘email’); ?>” size=“54” tabindex=“2” /><br/>
<input type=“hidden” id=“web” name=“web” value=”<?php echo pcs(‘web’); ?>” size=“54” tabindex=“3” /><br/>

</txp:if_cookie>
<div class=“input”> <txp:if_no_cookie> <span><label for=“name”>Name:</label><input type=“text” id=“name” name=“name” value=”<?php echo pcs(‘name’); ?>” style=“width:430px;height:20px” tabindex=“1” /></span><br/> <span><label for=“email”>Email:</label><input type=“text” id=“email” name=“email” value=”<?php echo pcs(‘email’); ?>” style=“width:430px;height:20px” tabindex=“2” /></span><br/> <span><label for=“web”>http://</label><input type=“text” id=“web” name=“web” value=”<?php echo pcs(‘web’); ?>” style=“width:430px;height:20px” tabindex=“3” /></span><br/> </txp:if_no_cookie>
</div><!— close input —>
<p class=“commentform”>
<b><label for=“message”>Thanks for speaking up:</label></b></p>
<span><textarea id=“message” name=“message” cols=“30” rows=“12” style=“width:430px;height:200px” tabindex=“4”><?php echo pcs(‘message’); ?></textarea><p class=“commentform”>Add <a href=“http://textism.com/tools/textile/”>Style</a> to your comment.
Get a <a href=“http://gravatar.com/”>Gravatar</a>.
Email addresses will remain private.<br/><br/>
<txp:comment_remember />
<txp:nhn_comment_spamsave />
</p>
</span>

<txp:nhn_livecommentpreview />
<txp:nhn_comment_submit />
</div><!— close commentform —>
</code>

nhn_live_comments_preview:
<code>
<h3>preview</h3>
<txp:nhn_lcp_preview />
</code>
Any Ideas,

Thanks.

Matthew

Last edited by ma_smith (2005-10-08 15:28:15)


Offline

#34 2005-10-08 21:35:47

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

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

The plugin has been updated – current version: 0.3

  • fixed bug in <txp:nhn_comment_spamsave />
  • added magic quotes and n-dash support in the javascript

To do:

  • adding textarea tools
  • look through changes sent in via email by Jeroen Coumans
  • adding gravatar support (?)

@ma_smith: I check your problem tomorrow

Last edited by Skubidu (2005-10-08 21:36:16)

Offline

#35 2005-10-08 21:50:15

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

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

That’s cool! Works on my local server (Apache 2 with php5 on windows) but on the real server the following error message displays if I try to view an article (with the comment form):

“Fatal error: Call to undefined function: stripos() in /www/htdocs/exzoegli/textpattern/lib/txplib_misc.php(455) : eval()’d code on line 266”

Offline

#36 2005-10-09 09:16:06

davidwang
Member
From: Malaysia
Registered: 2005-01-25
Posts: 38
Website

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

I’ve been getting that txp_misc error too! And I thought it was just me because I hacked up my textpattern install quite extensively. If you can fix it Skub I’d be really happy. Thanks!

Offline

Board footer

Powered by FluxBB