Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#136 2006-03-18 12:30:19
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
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
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
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
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
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
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
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
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
#145 2006-06-05 14:16:56
Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview
macsepp schrieb:
I’m … also working on my final thesis at university. :)
Willkommen im Club :)
Last edited by Skubidu (2006-06-05 14:17:44)
Offline
#146 2006-08-08 22:53:02
Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview
Is anyone using this plugin with the latest 4.04 beta? If I disable it, or remove the comment_form the “Warning: raw_php_deprecated “ error goes away (or on any page where comments aren’t enabled)
Cheers,
Jon VC#9
Offline
#147 2006-08-10 14:17:19
Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview
Jon, can you tell me which version of the plugin you are using?
Thanks, Nils
Offline
#148 2006-08-10 14:34:29
Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview
I was on v1.2, but I upgraded it to 1.3 and the error was still there.
Cheers,
Jon VC#9
Offline
#149 2006-08-10 15:27:25
Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview
Hi Jon!
I think you’re talking about 0.2 and 0.3 respectively :)
You need these earlier version because you like to skip the preview, right?
I’m not sure but there might be some problems because these versions have been written for TXP 4.0.2 and the comment handling changed fundamentally in TXP 4.0.3. I’m not sure if this could result in this error message because the plugin does not return any <?php ... ?> things. I hope I have the time to look more into it, but I havn’t installed the plugin on my site at the moment.
Is there anybody else experiencing this problem?
Nils
Offline
#150 2006-08-10 20:36:46
Re: [plugin] [ORPHAN] nhn_livecommentpreview: JavaScript live comment preview
You’re right – sorry!
Yes, I prefer to skip the preview if possible. If I updated to the new beta that you’re offering, would that avoid the problem do you think?
Cheers,
Jon VC#9
Offline