Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2005-10-09 09:34:09

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

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

Okay! I can’t reproduce the error at the moment, but I’ll see what I can do :)

Offline

#38 2005-10-09 09:37:49

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

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

I’ll post the diagnostics, perhaps that’ll help. These are on the “real” webserver where it doesn’t work. The local test server runs on windows, php5, apache2.

<pre><code>
Version Textpattern: 4.0.1 (r996)
last_update: 2005-10-04 20:10:41/2005-10-04 20:09:28
Absoluter Pfad der Seite: /www/htdocs/exzoegli/ (/www/htdocs/exzoegli)
$path_to_site: /www/htdocs/exzoegli
Pfad Textpattern: /www/htdocs/exzoegli/textpattern
Schema der URLs: section_title
open_basedir: /www/htdocs/exzoegli/:/tmp:/usr/bin:/www/htdocs/exzoegli:/bin:/usr/local/bin:/usr/share/php
Temporäres Verzeichnis: /tmp
Seiten-URL: ex.zoegling.de
PHP-Version: 4.3.1
Register globals: 1
server_time: 2005-10-09 11:36:45
MySQL: 4.0.24-Max-log
Regionale Einstellungen: de_DE.UTF-8
Server: Apache/1.3.27 (Linux/SuSE) mod_fastcgi/2.4.2 FrontPage/4.0.4.3 PHP/4.3.1 mod_perl/1.27 mod_ssl/2.8.12 OpenSSL/0.9.6i

Inhalt der .htaccess-Datei:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

AddDefaultCharset utf-8

<IfModule mod_rewrite.c> RewriteEngine On

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L] RewriteRule ^textpattern/(login|schreiben|profil)/?(.*)$ textpattern/user_config/index.php$2 [NC,L] RewriteRule ^(.*) index.php </IfModule> ———————————— </code></pre>

Last edited by zoeglingjulian (2005-10-09 09:44:54)

Offline

#39 2005-10-09 10:16:07

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

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

Can you please download the plugin again (version 0.3.1) and tell me if this fixes the problem?

Offline

#40 2005-10-09 10:20:10

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

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

Works! Thanks!

Offline

#41 2005-10-11 06:05:22

rgx
New Member
Registered: 2005-02-25
Posts: 2

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

How can I prevent the 2 div’s from showing up after the comment is submitted and it says “Thank you for adding your comment.” ?

edit: oh yeah, I’m also on debugging mode and I am getting this error on the page after installing this pluin : Notice: Undefined variable: out in /home/.odzanends/username/domain.com/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 277

Last edited by rgx (2005-10-11 06:08:01)

Offline

#42 2005-10-11 07:55:08

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

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

@ rgx: What do you mean? “The 2 div’s”?! The notice has been fixed and won’t appear in the next releases.

@ ma_smith: I totally forget about that one.
The main problem is, that you are not using the build in textpattern tags to create the input boxes – that why some attributes are missing.
If you want to use the comment form the way it seems, please add the attributes “id” and “onkeyup” to your textarea:

<textarea class="txpCommentInputMessage" name="message" cols="25" rows="5" tabindex="1" id="nhn_message" onkeyup="ReloadTextDiv();"></textarea>

After that make sure that you have inserted the javascript in the right page template (<txp:nhn_livecommentpreview_js />).

Last edited by Skubidu (2005-10-11 07:56:54)

Offline

#43 2005-10-11 13:52:53

rgx
New Member
Registered: 2005-02-25
Posts: 2

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

Skubidu,
Sorry, it’s actually one div.
I edited this part of the plugin to output as so, instead of the comment class.
<code>$nhn_form = parse(fetch(‘form’,‘txp_form’,‘name’,doSlash(‘nhn_livecommentpreview’))); return ‘<div class=“commwrap”>’.$nhn_form.’</div>’;</code>

There is a <code><div></code> outputted before the <code><div class=“commwrap”></div></code> only after submit is hit.

Last edited by rgx (2005-10-11 14:11:20)

Offline

#44 2005-10-11 14:17:59

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

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

Hm, I can’t see another div there or I’m still not really understanding what you’re talking about…
There is the div that wraps the live comment preview: <div class="comment"></div>. You are not talking about that one, right? But I don’t see any other…

Offline

#45 2005-10-11 16:21:04

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

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

Hi Skubidu,

I hacked your plugin a bit and changed the tabindex of the comment form because the weird tabindex order (described here and here).

Since nhn_comments_form overides the default comments form, perhaps you may want to include the small hacks and package it as an additional ‘feature’ of your plugin, ie live_commentspreview also fixes the weird tabindex for the comments form.

it’s just my small suggestion, something for you to consider. Anyway, thanks for the great plugin!

Offline

#46 2005-10-11 20:36:33

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

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

Hi David!

I’m working on a version of the plugin where you will be able to set tab-index and classes via tag-atts, e.g. <txp:comment_input tab-index="2" class="tralala" />. So if you’ve got any wishes feel free to post it here :)

Nils

Last edited by Skubidu (2005-10-11 20:39:01)

Offline

#47 2005-10-19 22:51:20

Simplexposure
New Member
Registered: 2005-08-08
Posts: 5

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

My submit button doesn’t show up on my site. Not really sure why. http://www.simplexposure.com/

Offline

#48 2005-10-20 06:46:48

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

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

Can you please tell us a bit more? What’s the code you’re using in comments_display and comments_form? Which plugin version? Thanks!

Offline

Board footer

Powered by FluxBB