Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: rah_comments // Pagination for comments
Basically sed_comment_number(array('count'=>'down'))
, but you probably should reserve the counting too, because now it starts from top, so replace +
sign with -
too.
PS. use edit, don’t push topics intentionally up :)
Last edited by Gocom (2008-12-16 11:08:04)
Offline
Re: rah_comments // Pagination for comments
great!
thanks ;)
can I wrap the paging with <tr><td>
paging links </td></tr>
?
example:
<table>
<tr>
<td>
<a href="#">1</a>
<a href="#">2</a>
<a href="#">3</a>
</td>
</tr>
<tr>
<td>
comment
</td>
</tr>
<tr>
<td>
<a href="#">1</a>
<a href="#">2</a>
<a href="#">3</a>
</td>
</tr>
</table>
Offline
Re: rah_comments // Pagination for comments
THE BLUE DRAGON wrote:
can I wrap the paging with
<tr><td>
paging links</td></tr>
?
Not, but you can style it in a way you want. For example you can wrap comments with table and then styling pagination in a way you want.
Last edited by Gocom (2008-12-16 17:14:31)
Offline
Re: rah_comments // Pagination for comments
Thanks for this excellent plugin.
FYI, made improvement appending an anchor (#comment) to page links. When used with appropriate placed “name” tag, this causes page links to jump to the comments, rather than the top of the article.
For example, this:
$number[] = doTag($i,'a','page-'.$i,' href="'.permlink(array()).$sep.'pg='.$i.'"');
becomes this:
$number[] = doTag($i,'a','page-'.$i,' href="'.permlink(array()).$sep.'pg='.$i.'#comment"');
Offline
Re: rah_comments // Pagination for comments
I’m helping some friends and I am trying to implement this plugin for their pages.
At the moment this is what they have a comments
comment form to display the comments:
<h3 class="commenttitle"><txp:comment_name /> said,</h3>
<p class="commentmeta"><txp:comment_time /> <txp:comment_permlink>#</txp:comment_permlink></p>
<txp:comment_message />
Maybe I’m thinking about this all wrong as I never used the txp:comments
tag.
What would the replacement code be so as to allow pagination of their comments?
Last edited by colak (2009-10-19 14:12:26)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: rah_comments // Pagination for comments
colak
the code you post here has nothing to do with this plugin
you just post here the comments style txp-form
you need to add the plugin code to the article-form that include the commenting-form
for example:
<txp:title />
<br /><txp:body />
<txp:if_comments_allowed>
<br />add a comment:
<txp:comments_preview form="comment_preview" />
<txp:comments_form form="comment_form" />
<txp:rah_comments form="comments" limit="10" />
</txp:if_comments_allowed>
Offline
Re: rah_comments // Pagination for comments
Thanks Gil,
Got it! One problem, even with the code above the comments still appear on the same page like so:
- 1-30 page links
- 1-10 comments
- 1-30 page links
- 1-600 comments
How do I get them to paginate?
Last edited by colak (2009-10-19 16:28:25)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: rah_comments // Pagination for comments
colak wrote:
How do I get them to paginate?
By using the tag, <txp:rah_comments />
instead of the standard <txp:comments />
. That’s it. There is nothing more to do or change.
If it doesn’t work, atleast post the code your using or tag trace. My 2cents; you’re probably just using auto-append, plus the code itself in article context. If you are using <txp:rah_comments />
, or any other comment tag straight inside article form, please turn auto-appending off. That way you do not end up with double comment listing. Alternatively, use the code inside comment_display form.
It sounds that the plugin itself is working just fine. It outputs limited amount of comments and pagination links. And probably the pagination also works.
Last edited by Gocom (2009-10-19 16:40:59)
Offline
Re: rah_comments // Pagination for comments
Gocom wrote:
turn auto-appending off. That way you do not end up with double comment listing.
bingo , thanks Jukka!
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: rah_comments // Pagination for comments
Is there any chance of having an “active” class for the current page number link?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#83 2010-03-01 09:31:46
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: rah_comments // Pagination for comments
Hello Gocom,
I have a little problem.
Can I have all the comments in one class instead of every comment wrapped in a class ?
Roelof
Last edited by roelof (2010-03-01 09:34:51)
Offline
#84 2010-03-06 18:25:44
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: rah_comments // Pagination for comments
Hello Gocom,
I still have one problem.
I have 18 comments total but <comments_count> gives 19.
So the pagination is 10 instead of 9.
Do you know why this happens ?
Roelof
Offline