Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-12-03 22:43:55

reuben
Member
From: Melbourne, Australia
Registered: 2005-05-09
Posts: 18
Website

Duplicate comment previews

Hi folks

I’ve got a wee issue with the comment preview function wherein previews show up twice. I’ve had this issue at my live site for a while now and it’s had me stumped. Now that I’m working on a new one, I’d like to sort it out. I’ve upgraded to 4.0.7 and it still happens.

So, here’s where you can see it happening if you test the comments function: http://www.rocketfuelled.com/blog/bike#leave-a-comment – if you scroll up, you’ll see that the preview is duplicated above the comments form.
And here’s the code I’m using to output comments, etc. (I’ve taken some of the presentational code out here):

<code>
<txp:if_comments>
<h3>Comments:</h3>
<txp:comments />
<txp:else />
</txp:if_comments>

<txp:if_comments_allowed>
<h3 id=“leave-a-comment”>Leave a comment:</h3>
<txp:comments_form />
<txp:else />
</txp:if_comments_allowed>
</code>

Thanks in advance!


Reuben Whitehouse ~ Rocketfuelled

Offline

#2 2008-12-03 22:57:59

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Duplicate comment previews

Do you also have a <txp:comments_preview /> tag somewhere? Have a look at this FAQ, it may help you find what is wrong.

Offline

#3 2008-12-03 23:08:22

reuben
Member
From: Melbourne, Australia
Registered: 2005-05-09
Posts: 18
Website

Re: Duplicate comment previews

Thanks Els

I didn’t have a <txp:comments_preview /> tag in there but anyways, <txp:comments_form show_preview=“0” /> seems to have done the trick!

Appreciated!


Reuben Whitehouse ~ Rocketfuelled

Offline

Board footer

Powered by FluxBB