Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#133 2006-03-18 09:24:21

maarten
Member
From: Netherlands
Registered: 2005-02-19
Posts: 130
Website

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

No sorry I’ve tried that already :)

I did test out the new version but then I have to adjust my CSS again and I lost all my fieldlabels.

Offline

#134 2006-03-18 09:30:48

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

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

What does the validator promt exactly?

Offline

#135 2006-03-18 12:12:42

maarten
Member
From: Netherlands
Registered: 2005-02-19
Posts: 130
Website

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

You can view a screenshot right here

Offline

#136 2006-03-18 12:30:19

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

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

Does this error occur if you are using version 0.5, too?
If not, replace the javascript generating function of version 0.3.1 with the one of the newest version. (The javascript is in an external file now)

Offline

#137 2006-03-18 12:45:00

maarten
Member
From: Netherlands
Registered: 2005-02-19
Posts: 130
Website

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

In 0.5 everything is ok.

Maybe a stupid question but can you briefly explain to me which steps I gotta take? I’ve compared the 2 files and the difference is quit substantial (and I’m not a developer unfortunately)

Offline

#138 2006-03-18 13:05:11

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

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

It’s not a stupid question :)
There is only one big difference between the javascript in 0.3.1 and in 0.5:
One time it is inserted direct into the HTML, the other time it is imported from an external javascript file.

So this might help:

  • Just save the javascript that you can see in your source code as an external file (e. g. livepreview.js) – simply copy everything between the script tags to a text editor and save it under that name.
  • import the javascript file in the head of your document <script type="text/javascript" src="http://your/site/lievepreview.js"></script>
  • delete the tag <txp:nhn_livecommentpreview.js />

edit: That’s how the javascript file should look like [look in the source code ot the page] (it’s the javascript source of version 0.5)

Last edited by Skubidu (2006-03-18 13:12:54)

Offline

#139 2006-03-18 13:21:11

maarten
Member
From: Netherlands
Registered: 2005-02-19
Posts: 130
Website

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

Hi Nils,

Works like a charm and I’m valid once again :)

(Although I don’t see any source code in the page as you mention in the ‘edit’ part.)

THANKS!!

Last edited by maarten (2006-03-18 13:21:44)

Offline

#140 2006-05-07 16:02:41

macsepp
Member
From: Ludwigsburg - Germany
Registered: 2004-09-02
Posts: 19
Website

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

I just updated to Textpattern 4.0.3 and now had to face that Textile Formatting in Comments has changed to TextileLite whatever. The LivePreview thing however shows normal Textile Formatting. Thats really uncomfortable to use.


Textpattern loves me, and I love textpattern.

Offline

#141 2006-06-05 06:04:12

Saigo
Member
Registered: 2005-01-02
Posts: 60
Website

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

Just want to add on, that when using the notextile shorthand, the preview still shows the textile-d words. For example:

*testtest*

When adding <code>==</code> to the front and end of *testtest*, that was previewed as bold, but when the comment is submitted, it wasn’t in bold at all. Would be great if this is fixed/added. :)

Last edited by Saigo (2006-06-05 06:21:00)

Offline

#142 2006-06-05 06:59:00

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

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

Hi macsepp, hi Saigo!

Would it be possible for you to submit a patch concerning the problems you’ve mentioned?
I’m very busy at the moment because I’m writing my final thesis at university so I won’t have the time to rework the plugin during the next few months.

Regards,
Nils

Offline

#143 2006-06-05 08:39:40

Saigo
Member
Registered: 2005-01-02
Posts: 60
Website

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

I’m not very good at programming in particular, so if I happen to come across a solution myself, I’ll definitely post it here. Here’s hoping other plugin users would be able to make a patch/fix for this. ;)

Most of all, thanks for making this plugin, Skubidu. :)

Edit: I have a strong suspicion it’s something to do with the regex (i think that’s what it’s called..?), but not knowing it makes it difficult for me to make any changes. :/

Last edited by Saigo (2006-06-05 08:59:10)

Offline

#144 2006-06-05 14:10:40

macsepp
Member
From: Ludwigsburg - Germany
Registered: 2004-09-02
Posts: 19
Website

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

I’m not too deep into programming as well, and also working on my final thesis at university. :)


Textpattern loves me, and I love textpattern.

Offline

Board footer

Powered by FluxBB