Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-05 17:30:22

stirman
Member
Registered: 2005-12-02
Posts: 36

Displaying Comments

A new site I am setting up will feature ONE and only one post on the main page. I need the comments to always dispay below it, meaning: I don’t want a link to the comments, I want all comments and the comment form to display by default… is there a way for txp to do this?

Recently switched from WP and I am really growing to like TXP, it’s elegantly simple, although I still feel a little limited, which I’m sure will resolve itself as I learn more…

Great community here, looking forward to getting involved.

-stirman
www.stirman.net

Offline

#2 2005-12-05 21:41:40

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Displaying Comments

Go to Preferences and switch “Auto append comments” off then you need to add the comments and comments form tags to your article form template. You will find the tags in the “comments_display” form. You will have to have a look at the “preview” as well to check it’s behaviour.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2005-12-05 22:27:25

stirman
Member
Registered: 2005-12-02
Posts: 36

Re: Displaying Comments

many thanks!

Offline

#4 2005-12-05 22:29:13

stirman
Member
Registered: 2005-12-02
Posts: 36

Re: Displaying Comments

tag_error <txp:comment_name /> -> Warning: extract(): First argument should be an array

???

Thanks!

-stirman
www.stirman.net

Offline

#5 2005-12-05 22:52:52

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Displaying Comments

Need to see the code. Put it inside < code>< /code> tags (without the spaces) to display here properly.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#6 2005-12-05 22:55:47

stirman
Member
Registered: 2005-12-02
Posts: 36

Re: Displaying Comments

<code>
<div id=“main”> <txp:body />
</div>

<div id=“comments”>
<txp:message /><br />
<txp:comment_name /><txp:comment_time />
</div>
</code>

Offline

#7 2005-12-06 17:14:51

stirman
Member
Registered: 2005-12-02
Posts: 36

Re: Displaying Comments

Maybe I’m missing something obvious to non-txp-newbs, but I have searched through lots of documentation and can’t seem to find what I’m doing wrong. Although, I did see that error associated with a 4.0.2 bug… anyone know what’s going on here?

Many thanks…
-stirman

Offline

#8 2005-12-06 19:33:45

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Displaying Comments

Ah. No. I don’t think you can do it like that. I think you need to use the tags <code><txp:comments /></code> and <code><txp:comments_form /></code>.

The tags you are using belong in the “comments” form template to format the style of the comments and will be used by the <code><txp:comments /></code> tag to format it’s output.

Last edited by thebombsite (2005-12-06 19:38:14)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#9 2005-12-06 20:33:55

stirman
Member
Registered: 2005-12-02
Posts: 36

Re: Displaying Comments

ahh, good to know.. heh. Thanks again..

Offline

#10 2005-12-06 20:35:52

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Displaying Comments

No problem. I’d be more interested to know if you get it working properly. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB