Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-10-15 15:08:53
- Richard2005
- New Member
- Registered: 2005-04-11
- Posts: 8
Guestbook and double comment forms...
Hi,
I wanted a guestbook for my page so I tried to build one.
First I created a new section, and then I wrote an article to this. It shows up just like it should and you can write comments to it.
But I wanted the comments and the comments input form to be directly on the guestbook page so you don’t have to click “write a comment” or something like that.
That also went well just by editing the article form. But when I click the comments permalinks another the comments and the input form shows up one more time under the first ones. They are doubled! How can I solve this and get a page that you can comment directly to?
Offline
Re: Guestbook and double comment forms...
The way you have done it means that you have the comment form appearing as per your added tags but because you have the comment_invite tag in your article the default is also showing. In order for it to work as you want you would have to turn off “auto append comments” in preferences. Trouble with that is that it is global and would mess up other parts of your site such as your blog. What I would suggest is that you use the guestbook plug-in. It has been updated and works well. I use it myself.
Last edited by thebombsite (2005-10-15 15:24:26)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2005-10-16 11:56:24
- Richard2005
- New Member
- Registered: 2005-04-11
- Posts: 8
Re: Guestbook and double comment forms...
Thanks for taking time and answer. I turned off “auto append comments” and the guestbook worked fine. But how do I get the normal articles to display comments as before, when visiting their own “page”? Hope you understand…
Offline
Re: Guestbook and double comment forms...
Yes I understand but that was why I was hesitant about suggesting switching “auto append” off. As I don’t use this method myself I’m unsure about how you go about adding them back into your normal articles but again I believe it’s a case of adding the appropriate tags to the “individual_article” view code. In fact I think you could call the “comments_display” form itself with the “output_form” tag. “I think”.
Last edited by thebombsite (2005-10-16 16:28:56)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#5 2005-10-16 17:10:14
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Guestbook and double comment forms...
I’ve got ‘auto append comments’ switched off. In my single article form is this (for this example I replaced my dutch text with english but otherwise it’s exactly this):
<code><txp:if_comments><a id=“comment”></a><h4>Comments</h4></txp:if_comments>
<br />
<txp:comments />
<txp:if_comments_allowed>
<txp:comments_form />
</txp:if_comments_allowed>
<txp:glx_if_comments_closed_comments>
<p>Comments closed.</p>
</txp:glx_if_comments_closed_comments></code>
Offline
#6 2005-10-17 13:41:05
- Richard2005
- New Member
- Registered: 2005-04-11
- Posts: 8
Re: Guestbook and double comment forms...
THANKS!
It’s working great now. What I did was to turn off “auto append comments” and then add the display_comments form if its a individual article, just like you said.
Last edited by Richard2005 (2005-10-17 13:43:14)
Offline
Pages: 1