Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-09-30 20:51:54

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

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

Hello everybody!

I was thinking about using the well-known live comment hack described by Jon Hicks on my website. Alexandra asked for it, too. Because I don’t like hacking the code, I tried to get the whole hack in a plugin:

nhn_livecommentpreview: Live comment preview

  • new version 0.5 beta (23.01.2006): see here
  • version 0.3.1 (09.10.2005): download | more information | made for TXP 4.0.1
    • fixed small bug (checking for <txp:nhn_comment_submit />)
  • version 0.3 (08.10.2005):
    • fixed bug in <txp:nhn_comment_spamsave />
    • added magic quotes and n-dash support
  • version 0.2 (02.10.2005)
    • NOTE: The plugin name and the tag names have changed in this version. Please check the help for further information
  • version 0.1 (30.09.2005)

Last edited by wet (2009-08-13 15:04:04)

Offline

#2 2005-09-30 21:05:08

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

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

Excellent! However, I don’t think it should be named after me. The code all came from other people, I just used their hard work!


Cheers,
Jon VC#9

Offline

#3 2005-09-30 22:29:01

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

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

Great work! I will try this out over the weekend.

Thanks!
Jamie

Offline

#4 2005-10-01 16:34:18

druzli
Member
From: Denmark / Iceland
Registered: 2004-06-28
Posts: 60
Website

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

Hey Skubidu.

Nice plugin, but I have a “small” problem :).

Followed your instructions and did not use the optional tags, wanted to see the functionality first.
Now I dont even see my comment form on the page.

I can see in my source that the JavaScript is there but no comment form whatsoever.
My website
(In Icelandic)

Running latest revision of Textpattern(rev989)

Any ideas?

Last edited by druzli (2005-10-01 16:40:18)


regards,

Agust

Offline

#5 2005-10-01 16:45:00

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

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

Hi druzli!

I’m not sure, why this is happening. I have not yet tried the plugin on the latest revision, I just tried the latest stable release.
Can you post the code of some of your forms, please? I’m interested how comments_display and nhn_hickslivepreview look like.

Your form comments_display should look something like this:
<txp:comments />
<txp:if_comments_allowed>
<txp:nhn_comments_form />
</txp:if_comments_allowed>

Last edited by Skubidu (2005-10-01 16:45:40)

Offline

#6 2005-10-01 16:57:51

druzli
Member
From: Denmark / Iceland
Registered: 2004-06-28
Posts: 60
Website

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

Hey Skubidu.

In my tryings to get comments back on, I deleted all your tags and the plugin, and my comment form wont show up again. Was working before.

I first tryed the plugin with 4.0, maybe that is the cause of this ?

The nhn_hickslivepreview:
<code><h3>forskoða</h3>
<txp:nhn_hlp_author />:
<txp:nhn_hlp_preview />
<p class=“posted”><txp:nhn_hlp_date /></p></code>

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

Now I have to find a way to find my commentsform again, any ideas ?

:)


regards,

Agust

Offline

#7 2005-10-01 17:05:54

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

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

That’s strange! The plugin doesn’t delete anything. If you change <txp_nhn_comments_form /> back to <txp:comments_form /> everything should work as it did before.

Have you changed anything else?

Offline

#8 2005-10-01 17:13:48

druzli
Member
From: Denmark / Iceland
Registered: 2004-06-28
Posts: 60
Website

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

hehe, my fault.
Was missing an “s” in <code><txp:comments_form /></code>

Now I have my form back.

But im gonna try out your plugin again, will post my resaults later on or tommorow.

THX


regards,

Agust

Offline

#9 2005-10-01 20:21:37

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

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

skubidu, this is one nice plugin :-)

I love John’s hack, cool feature and all, but hacks are quite bothersome to maintain and a plugin is definitely the way to go… thanks a lot ! I’ll try this one and report…


.: Retired :.

Offline

#10 2005-10-02 07:02:09

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,292
Website

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

I’ll be happy to give this a whirl sometime, after the name of this plugin changes, as was kindly suggested by Mr. Hicks.


Wordworkin’ for you.

Offline

Board footer

Powered by FluxBB