Textpattern Forum

You are not logged in. Register | Login | Help

#31 2008-04-24 15:27:25

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 542
Website

Re: rah_comments // Pagination for comments

thanks but now it is limit the comments,
but for some reason i don’t see the paging links anymore :/
this is my form:
<txp:if_comments_allowed>
<txp:comments_preview form="comments_fbgb_preview" />
<txp:comments_form form="comment_form_fbgb" />
<txp:rah_comments form="comments_fbgb" sort="posted desc" limit="1" />
<txp:else />
</txp:if_comments_allowed>

and that is my page’s article code:
<txp:article form="fbgb" allowoverride="0" limit="1" pgonly="0" status="4" />

they are only 3 comments in the article
I made the test before on other page, and now i’m trying it in my “guestbook” page.

Offline

#32 2008-07-30 07:56:33

oliverker
Plugin Author
From: Huddersfield
Registered: 2008-07-14
Posts: 90
Website

Re: rah_comments // Pagination for comments

hi,
I posted the ‘one million comments’ and I’m testing your lovely pluggin, but is there a way of showing the most recent comment first? If I use sort=“desc” nothing is displayed. Can you help please.

Just seen the post above this one and seen sort=“posted desc” and works perfect. Ta

Oliver

Last edited by oliverker (2008-07-30 08:00:15)

Offline

#33 2008-09-02 02:42:18

jan
Member
From: Utrecht, The Netherlands
Registered: 2006-08-31
Posts: 71
Website

Re: rah_comments // Pagination for comments

Very nice plugin!

I’ve improved one line of code so that the current page number is printed as a plain number instead of an anchor, just like the pagination in this topic.

Line 48:

$number[] = (($break_pages) ? '<'.$break_pages.'>' : '').'<a href="?pg='.$i.'">'.$i.'</a>'.(($break_pages) ? '</'.$break_pages.'>' : '');

Becomes:

$number[] = (($break_pages) ? '<'.$break_pages.'>' : '').(($pg != $i) ? '<a href="?pg='.$i.'">'.$i.'</a>' : $i).(($break_pages) ? '</'.$break_pages.'>' : '');

Furthermore, I wondered why you put in the conditional that checks if the context is an individual article… that shouldn’t matter, should it?

Anyway, thanks for your effort!


Kensington TXP powered rock

Offline

#34 2008-09-02 18:30:22

roelof
Member
Registered: 2005-03-27
Posts: 645

Re: rah_comments // Pagination for comments

Hello,

I have one question.
I also want to use this plugin as a guestbook.

I have this in my page :

<div class=“date_box”>
<div class=“date_box_month”>Jan</div>
<div class=“date_box_day”>18</div>
</div> <txp:article /> <txp:if_comments> <txp:rah_comments wraptag=“ol” break=“li” limit=“1” /> </txp:if_article_id>
</txp:if_comments>
<txp:if_comments_allowed> <txp:comments_form form=“ask_form” />
</txp:if_comments_allowed>
</div>

For testing purposes i have made two comments.
But they appear under each other instead of on two seperate pages.

What am i doing wrong ?

Roelof

Offline

#35 2008-09-02 18:59:18

Els
Admin
From: The Netherlands
Registered: 2004-06-06
Posts: 7,374
Website

Re: rah_comments // Pagination for comments

I doubt if this will solve your problem, but I think that </txp:if_article_id> doesn’t belong there. If you have an opening <txp:if_article_id> somewhere before the code you posted, it still should be somewhere else, at least outside the if_comments tags, but probably at the very bottom, just before the closing </div>.


<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields

Offline

#36 2008-09-02 19:48:59

roelof
Member
Registered: 2005-03-27
Posts: 645

Re: rah_comments // Pagination for comments

Hey Els,

I’m not using that tag anywhere.

Roelof

Offline

#37 2008-09-02 20:31:32

Els
Admin
From: The Netherlands
Registered: 2004-06-06
Posts: 7,374
Website

Re: rah_comments // Pagination for comments

roelof wrote:

I’m not using that tag anywhere.

Then you’d better remove it ;)

<div class="date_box">
<div class="date_box_month">Jan</div>
<div class="date_box_day">18</div>
</div>
<txp:article />
<txp:if_comments>
<txp:rah_comments wraptag="ol" break="li" limit="1" />
</txp:if_article_id> <— this one
</txp:if_comments>
<txp:if_comments_allowed>
<txp:comments_form form="ask_form" />
</txp:if_comments_allowed>
</div>


<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields

Offline

#38 2008-09-02 20:47:34

roelof
Member
Registered: 2005-03-27
Posts: 645

Re: rah_comments // Pagination for comments

Hay Els,

I removed it but still the same problem.
But thanks for the help.

Roelof

Offline

#39 2008-09-03 05:27:17

Gocom
Developer
Registered: 2006-07-14
Posts: 4,410
Website

Re: rah_comments // Pagination for comments

roelof, could you:

  • Paste a tag trace from that unworking page.
  • Paste the path of your unworking thingy (no need for domain, only requested path, ie. section/title).

Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

Offline

#40 2008-09-03 05:38:38

Gocom
Developer
Registered: 2006-07-14
Posts: 4,410
Website

Re: rah_comments // Pagination for comments

Furthermore, I wondered why you put in the conditional that checks if the context is an individual article… that shouldn’t matter, should it?

Two (or three) reasons:

  • Cause it is comments, and as we know, the page counting slows the page very little down.
  • Plus there were (and still are if i remember right) some comment rendering bugs when the tag is used outside individual article context.
  • Cause the current version doesn’t work on messy url mode ;)

But to say, i have new release coming up. It is ready, but the plugin repo is under updating, so it should be up tomorrow/today. Version 0.3 comes with (fixes all those issues):

  • Removed attributes: break_nav and break_pages.
  • Fixed messy url mode’s error: now works fully on messy.
  • Added attributes: pg_break, pg_break_class, prepend and append.
  • Now works in article lists, same way like <txp:comments />.
  • Better documention.

Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

Offline

Board footer

Powered by FluxBB