Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2008-02-18 04:34:03

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: rah_comments // Pagination for comments

Good Idea. I was scratching my head about this recently. Now, would there be any solution, to make this work on 4.0.5 ?

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#17 2008-02-18 04:44:29

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: rah_comments // Pagination for comments

marios, if I’m not mistaken, you would need to add the limit and offset attributes to the core comments tag. If you replace you comments function in taghandlers.php with 4.0.6’s, it should work. (I’m making an uneducated guess).

Last edited by jm (2008-02-18 04:44:49)

Offline

#18 2008-02-18 10:45:58

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

Re: rah_comments // Pagination for comments

jm wrote:

marios, if I’m not mistaken, you would need to add the limit and offset attributes to the core comments tag. If you replace you comments function in taghandlers.php with 4.0.6’s, it should work. (I’m making an uneducated guess).

Jm is right :) Yep, it would work.

Offline

#19 2008-02-18 12:42:17

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,424
Website GitHub

Re: rah_comments // Pagination for comments

Gocom wrote:

zero> And one further thing: in the Help you have some &lt; and &gt; where it should be < and >
Maybe it’s cause ied_plugin_composer…

OT: Eek, maybe. I have a minor bugfix version I’m sitting on until I’m happy with it. Is your help written entirely in Textile? (does it start with an h1.?) Are you using the plugin composer in DB mode or from the cache directory?

Would you please let me know via my contact page in the first instance and once I’ve had a chance to review the plugin composer code, if you could send me your plugin .php file (save as php) I’ll see if I can find out why it’s doing it.

If it’s a bug I’ll squash it and roll the fix into the currently unreleased version. Sorry to pollute your thread.

Last edited by Bloke (2008-02-18 12:43:36)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#20 2008-02-18 13:02:01

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

Re: rah_comments // Pagination for comments

Bloke,

I kinda sorted it out. It’s just cause I don’t use Textile in the help, but the help is Textiled. But I can’t get that Textiling bug happen on 4.0.5 (I don’t yet use full 4.0.6 – only last revision before 4.0.6. came out).

So possibly it’s my fault, as I use zero textile. But why it doesn’t come up with 4.0.5?

Offline

#21 2008-02-18 15:05:39

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: rah_comments // Pagination for comments

bq.Gocom wrote:

jm wrote:

marios, if I’m not mistaken, you would need to add the limit and offset attributes to the core comments tag. If you replace you comments function in taghandlers.php with 4.0.6’s, it should work. (I’m making an uneducated guess).

Jm is right :) Yep, it would work.

jm wrote:

marios, if I’m not mistaken, you would need to add the limit and offset attributes to the core comments tag. If you replace you comments function in taghandlers.php with 4.0.6’s, it should work. (I’m making an uneducated guess).

That guess should be enough to get me starting, thanks. ( Thanks also for putting this together )

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#22 2008-02-25 23:39:51

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

Re: rah_comments // Pagination for comments

this plugin do not work for me. i have this tag <txp:rah_comments /> in the comment form and i get this error: Tag error: <txp:rah_comments/> -> Notice: Undefined variable: pagination on line 71


<txp:Ruhh />

Offline

#23 2008-02-26 10:55:55

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

Re: rah_comments // Pagination for comments

this plugin do not work for me. i have this tag <txp:rah_comments /> in the comment form and i get this error: Tag error: <txp:rah_comments/> -> Notice: Undefined variable: pagination on line 71

Possibly because you are trying to use the plugin on article list and not on single article. In example your output the comment_form to article list, and not using it on permlink-pointing-direction.

Offline

#24 2008-02-26 11:34:25

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

Re: rah_comments // Pagination for comments

What? I am not using it on article list. I am using it on a single article so how would I do that?

This is the form I have with the rah_comments tag in.

<txp:if_comments>
   <txp:if_article_id id="29"><!-- 29 is your guestbook article -->
      <txp:rah_comments wraptag="ol" break="li" limit="10" />
   <txp:else />
      <txp:comments form="questions" />
   </txp:if_article_id>
</txp:if_comments>
<txp:if_comments_allowed>
   <txp:comments_form form="ask_form" />
</txp:if_comments_allowed>

Last edited by Ruhh (2008-02-26 21:08:48)


<txp:Ruhh />

Offline

#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: 638
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

Board footer

Powered by FluxBB