Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2008-03-10 17:22:25

der_jens
New Member
Registered: 2007-06-18
Posts: 5

Re: rah_comments // Pagination for comments

Hello,

I have the same problem as Ruhh, can you help me?

Thank you

<pre><code>tag_error <txp:rah_comments limit=“2” /> -> Notice: Undefined variable: pagination on line 71</code></pre>

<pre><code><txp:if_section name=“guestbook”> <txp:article form=“guestbook” />
</txp:if_section>
</code></pre>

Last edited by der_jens (2008-03-10 17:25:09)

Offline

#26 2008-04-22 16:48:03

rainer
New Member
Registered: 2008-03-15
Posts: 8

Re: rah_comments // Pagination for comments

Hello,

same problem here: I’m trying to do a paginated guestbook and am stuck at the same point as Ruuh and der_jens. I’m having a section “gaestebuch” that loads the article-form “gaestebuch” like so:

<txp:if_section name="gaestebuch">
<txp:article form="gaestebuch" limit="1" sort="Posted desc"  />
</txp:if_section>

the gaestbuch form has the following content:

<h3><txp:title /></h3>
<txp:body />
<txp:rah_comments break="li"  sort="posted desc" wraptag="ul" limit="3" pg_wraptag="p" />
<txp:comments_form form="comment_form" />

As I understand it, section-links (http://domain.tld/index.php?s=gaestebuch) default to article-lists, so how do I change that to output an individual article instead (which after all it is. for my understanding of it)? This is really frustrating for a newbie, takes way too long for a thing that should work like a breeze. Serious understanding problem of the inner workings of txp, I feel like an idiot after wrestling with this tiny problem for days… So any help and clarification would be really appreciated!

Offline

#27 2008-04-22 18:09:10

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_comments // Pagination for comments

rainer, the individual article is the actual article’s address, in example: http://domain.tld/index.php?id=1

Offline

#28 2008-04-22 18:40:31

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: rah_comments // Pagination for comments

It is working perfectly for me.

Is there a way to not show the page number when there is no more than 1 page?


<txp:Ruhh />

Offline

#29 2008-04-23 14:36:14

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

Re: rah_comments // Pagination for comments

Hi need some help please.
First thanks for your plugin it works for me :)

But I don’t know what are the tags of the pagination links “<< 123 >>”
I want to relocation the links, right now they are at the top of my page
and I want them at the bottom
and to be able to design them.

If for an article pagination I’m using:
<txp:older><txp:text item="older" /></txp:older> <txp:newer><txp:text item="newer" /></txp:newer>

so what are the tags for your plugin please?

Offline

#30 2008-04-23 20:44:10

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: rah_comments // Pagination for comments

THE BLUE DRAGON, read the help file. As you can see there are the attributes and the actual tag: <txp:rah_comments />. It’s the one and only tag. For styling, use the attributes, XHTML and CSS.

With attributes you can change labels, XHTML-tags and classes in example.

Last edited by Gocom (2008-04-23 20:45:50)

Offline

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

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 619
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: 647

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
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

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>.

Offline

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

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

Re: rah_comments // Pagination for comments

Hey Els,

I’m not using that tag anywhere.

Roelof

Offline

Board footer

Powered by FluxBB