Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Comment previews doubled and misplaced
So i did a bunch of forum searches and still cant find any info on this. When you go to preview a comment it puts it on the page twice, and not where it’s supposed to be. I unchecked the “auto-append” thing already. Just wondering if anyone else had any ideas.
Try it for yourself.
DIAGNOSTIC:
Textpattern version: 4.0.1 (r888)
Last Update: 2006-08-03 17:17:38/2006-08-03 15:22:20
Document root: /home/freetxp/public_html/cscott
$path_to_site: /home/freetxp/public_html/cscott
Textpattern path: /home/freetxp/public_html/cscott/textpattern
Permanent link mode: section_title
Temp folder: /home/freetxp/public_html/cscott/textpattern/tmp
Site URL: cscott.freetxp.com
PHP version: 4.4.2
Magic quotes: 1/0
MySQL: 4.1.19-standard
Locale: en_GB.UTF-8
Server: Apache/1.3.36 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.27 OpenSSL/0.9.7a PHP-CGI/0.1b
Pre-flight check:
————————————
/home/freetxp/public_html/cscott/textpattern/setup/ still exists
————————————
.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php </IfModule> ————————————Last edited by wazzupflow (2006-08-07 22:05:30)
Offline
#2 2006-08-07 22:28:57
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Comment previews doubled and misplaced
You need to add preview="1" to your comments_form tag.
Offline
Re: Comment previews doubled and misplaced
ok so this is whats going on. apparently the comment previews always puts the preview above the <txp:article> and not down with the other comments. i read somewhere that in the latest version of txp we can put previews wherever we want, my version is: Textpattern · 4.0.1 My question is, am i stuck with comment previews like this . Or is there some way around the madness. I have auto-append turned off, and display comments as ordered list off. this is how I call comments from my page:
<code>
<div id=“article_comments”>
<txp:comments /><br /><br />
<txp:if_comments_allowed>
<txp:comments_form preview=“1”/>
</txp:if_comments_allowed>
</div>
</code>
I just use those tags on the page, maybe thats my mistake. im not sure. And I’m sorry to be so much of a bother, this is the only part of learning TXP that has given me any trouble. Thanks a ton guys
Last edited by wazzupflow (2006-08-13 16:32:21)
Offline
#4 2006-08-13 18:49:14
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Comment previews doubled and misplaced
Add to your form <txp:comments_preview />. By default, it will use the same form as <txp:comments />, but it can also be passed a different one to use through the “form” attribute. :)
Remember when 4.0.4 comes out, you won’t need this finagling anymore. :)
Offline
Pages: 1