Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2008-09-14 10:06:55

saccade
Plugin Author
From: Neubeuern, Germany
Registered: 2004-11-05
Posts: 521

Re: rah_comments // Pagination for comments

Another question:
Is there any way to have the current page’s link marked?
I didn’t find anything.
Best way would be to have an additional attribute for class-setting, e.g. class_current="classname"
and to be able to “unlink” the current page’s ‘link’-number – so that from the view of accessibility a clearly marked current state is possible. Also an attribute, e.g. unlink_current="yes/no"

Just thinking – and hoping :-)

Offline

#62 2008-10-08 14:15:35

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

Re: rah_comments // Pagination for comments

Hello,

The pagination doesn’t work here.

I have the form comments_display who looks like this :
bc.. <h2 id=”<txp:text item=“comment” />”>
<txp:comments_invite textonly=“1” showalways=“1” showcount=“0” /></h2>

<txp:rah_comments wraptag=”“ break=”“ limit=“20” />

<txp:if_comments_preview>
<div id=“cpreview”>
<txp:comments_preview />
</div>
</txp:if_comments_preview>

<txp:if_comments_allowed>
<txp:comments_form isize=“25” msgcols=“45” msgrows=“15” />
<txp:else />
<p><txp:text item=“comments_closed” /></p>
</txp:if_comments_allowed>

And a form comments which look like this :
bc. <h2 id=”<txp:text item=“comment” />”>
<txp:comments_invite textonly=“1” showalways=“1” showcount=“0” /></h2>

<txp:rah_comments wraptag=”“ break=”“ limit=“20” />

<txp:if_comments_preview>
<div id=“cpreview”>
<txp:comments_preview />
</div>
</txp:if_comments_preview>

<txp:if_comments_allowed>
<txp:comments_form isize=“25” msgcols=“45” msgrows=“15” />
<txp:else />
<p><txp:text item=“comments_closed” /></p>
</txp:if_comments_allowed>

But the number which i put into limit makes that that number of comments are displayed and the rest is not displayed.

What went wrong here.

Roelof

Offline

#63 2008-10-10 11:46:47

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

Re: rah_comments // Pagination for comments

Nobody ??

Roelof

Offline

#64 2008-11-09 14:24:52

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: rah_comments // Pagination for comments

I’m surprised this gives you anything Roelof! Assuming the information you have posted above is correct you have the plug-in calling the plug-in. I think the comments_display form is OK but the comments form needs to have the code required to display the comment data in the way you want it. That is it should contain tags such as <txp:comment_message />, <txp:comment_name /> and <txp:comment_time /> etc.

Last edited by thebombsite (2008-11-09 14:31:24)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#65 2008-11-09 14:43:36

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

Re: rah_comments // Pagination for comments

hello,

The tags you’re talking about are in the comments form which looks like this :

<div class=“date_box”>
<div class=“date_box_month”><txp:comment_time format=”%B” /></div>
<div class=“date_box_day”><txp:comment_time format= “%d” /></div>
</div>
<h3 class=“entry-title”><txp:comment_name /></h3>
<div class=“entry-content”>
<txp:comment_message />
</div>

Roelof

Offline

#66 2008-11-09 19:34:58

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

Re: rah_comments // Pagination for comments

roelof,

  1. You are using <txp:rah_comments />-tag twice.
  2. I already once directly fixed your installation, but now you broked it again. In that case you used tag really wrongly: in a completely wrong place (you weren’t even using it). Maybe you are doing it again.

Last edited by Gocom (2008-11-09 19:35:38)

Offline

#67 2008-11-09 20:05:58

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

Re: rah_comments // Pagination for comments

Hoi Gocom,

Sorry for the confusing, but i use it one time.

I use the comments-display which looks like this :

<h2 id=”<txp:text item=“comment” />”>
<txp:comments_invite textonly=“1” showalways=“1” showcount=“0” /></h2>

<txp:rah_comments wraptag=”“ break=”“ limit=“20” />

<txp:if_comments_preview>
<div id=“cpreview”>
<txp:comments_preview />
</div>
</txp:if_comments_preview>

<txp:if_comments_allowed>
<txp:comments_form isize=“25” msgcols=“45” msgrows=“15” />
<txp:else />
<p><txp:text item=“comments_closed” /></p>
</txp:if_comments_allowed>

That is what you did.

I made a comments form who looks like this :

<div class=“date_box”>
<div class=“date_box_month”><txp:comment_time format=”%B” /></div>
<div class=“date_box_day”><txp:comment_time format= “%d” /></div>
</div>
<h3 class=“entry-title”><txp:comment_name /></h3>
<div class=“entry-content”>
<txp:comment_message />
</div>

If a broke it , I must apolize for that.
I try to make it work and look like i have it on my mind.

I hope you are willing to help me now.

Roelof

Offline

#68 2008-11-09 23:16:44

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: rah_comments // Pagination for comments

I’m pretty sure that the <txp:comments_invite /> can’t go into the comments_display form. It should be part of the article form otherwise it can’t connect article to comments. You have the “showcount” attribute set to “0”. If you set it to “1” does it display the number of comments?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#69 2008-11-10 11:32:32

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

Re: rah_comments // Pagination for comments

Hello,

It shows reageren [19] .

Now it becomes really weird. I change the limit to 5 and pages show up as earlier nothing happens.
And i changed nothing.

I can’t find one thing in the manual.
All the <li> have a class name. I want to have no class name.
How to do that ?

Second question the ul has only class tag. can i make this a id tag ?

Regards,

Roelof

Last edited by roelof (2008-11-10 13:44:27)

Offline

#70 2008-11-10 15:56:33

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

Re: rah_comments // Pagination for comments

roelof wrote:

All the <li> have a class name. I want to have no class name. How to do that ?
Second question the ul has only class tag. can i make this a id tag ?

  • 19 is below 20.
  • Those classes can stay there; they don’t matter anything.
  • In some cases classes are better than ids; Classes can not be reserved, when id’s always become reserved when first defined. In example article listings or multiple comment calls. And you can do all same styling/javascript things with classes than with ids.

Last edited by Gocom (2008-11-10 15:58:03)

Offline

#71 2008-11-10 16:46:57

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

Re: rah_comments // Pagination for comments

oke,

Thank you for the help.
I understand your remarks conderning id and classes. But i have to rewrite my css because it now works with id.

Roelof

Offline

#72 2008-12-14 10:15:02

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

Re: rah_comments // Pagination for comments

hey!
how do i add the Attribute ‘count’ with the value ‘down’ to the ‘sed_comment_number’ fix code please?
(count=“down”)

<txp:php>
	if(gps('pg')){
		$dif = gps('pg')*10;
		$dif = $dif-10;
	} else {
		$dif = '0';
	}
	$number = sed_comment_number(array())+$dif;
	echo $number;
</txp:php>

Offline

Board footer

Powered by FluxBB