Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-11-23 14:46:24

younglee
New Member
Registered: 2007-11-21
Posts: 2

Comments listing and preview

Is there anyway to use limit tag in comments. Like in articles (txp:article limit) and then could use <txp:older / newer> in comments ? So it wouldnt list all comments in same page.. is it possible?

Im tryin to make guestbook from comments… and it would be nice if there was some kind limit. Also how can i do a preview comment that dissapears other comments, i saw it on http://www.hicksdesign.co.uk/journal/ .

Thanks!

Last edited by younglee (2007-11-23 14:47:36)

Offline

#2 2007-11-23 16:00:13

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Comments listing and preview

Comment pagination has been a request for some time now. Ruud at some point was working on a plugin for it but I don’t know what stage it is at.

Regarding your second question, Jon is most probably using the txp:if_comment_preview tag


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2007-11-26 12:46:06

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Comments listing and preview

Related to this – I cannot seem to get the Comment Preview to display… it all seems to work, but no message is displayed – this is my code

<txp:if_comments_preview>

<p>*Please Review your comment and then press "Submit"*</p>
<p><txp:comment_message /></p>

<txp:else />

<p><txp:comment_message /></p>
<p class="small">— <txp:comment_name /> · <txp:comment_time /> · <txp:comment_permlink>#</txp:comment_permlink></p>

</txp:if_comments_preview>

Offline

#4 2007-11-26 13:05:07

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Comments listing and preview

Offline

#5 2007-11-26 14:30:54

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: Comments listing and preview

a little current topic related question:

where i can edit this text “Thank you for adding your comment. Your comment is pending moderation. It will appear after it has been approved.”? I can’t see it in any comments form

Offline

#6 2007-11-26 16:03:13

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

Re: Comments listing and preview

Tye – Where you have the first <p><txp:comment_message /></p> you need to use the comment_preview tag something like <txp:comments_preview form="comments_preview" /> and the form will include the tags and styling hooks for the information you want displayed from the comment.

Last edited by thebombsite (2007-11-26 16:04:43)


Stuart

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

Offline

#7 2007-11-26 17:36:00

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: Comments listing and preview

Gallex wrote:

a little current topic related question:
where i can edit this text “Thank you for adding your comment. Your comment is pending moderation. It will appear after it has been approved.”? I can’t see it in any comments form

You need to edit the strings called 'comment_posted' and 'comment_moderated' in the txp_lang table (You can use something like phpmyadmin for this).


Steve

Offline

#8 2007-11-28 21:47:59

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Comments listing and preview

By the way, please don’t hijack other people’s threads. Create one of your own. :)

Offline

#9 2007-11-29 03:58:32

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Comments listing and preview

Thanks Mary – Debug it very useful – I didn’t know about that :)

Thanks thebombsite – that worked a treat – well it put me in the right direction – I think I need to look at comments in more detail.

Apologies for hijacking… I thought it was related

Offline

Board footer

Powered by FluxBB