You are not logged in.
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
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
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
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
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
Hey Els,
I’m not using that tag anywhere.
Roelof
Offline
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
Hay Els,
I removed it but still the same problem.
But thanks for the help.
Roelof
Offline
roelof, could you:
Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />
Offline
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:
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):
Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />
Offline