Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2010-03-03 17:11:50
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: comments and comments form on different pages.
oke,
It worked.
Now figure out why the font has changed.
Roelof
Edit : I looked at the page in Firefox and there everything is allright.
Any CSS expert here ?
Edit 2: I see another problem. I use paginated comments and if i use the pagination everything is messed up.
Deleting hide=1 for the comments-display doesn’t solve the problem.
How to solve that ?
Roelof
Last edited by roelof (2010-03-04 09:42:03)
Offline
#14 2010-03-04 15:55:59
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: comments and comments form on different pages.
Hello,
Nobody who knows the answer to these problems ?
Roelof
Offline
Re: comments and comments form on different pages.
Are we still talking about this page?: http://test.tamarawobben.nl/index.php?id=171
Because all I can see there is a total mess.
(Double comments-form and double comments-list)
And because you use paging for your comments, you better use the persist=1
attribute so when you will move between comments-pages it will remember to display the comments-list.
( animatedcollapse.addDiv('comments_display', 'fade=1,speed=400,group=txpcomments,hide=1,persist=1')
)
Offline
#16 2010-03-05 22:45:58
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: comments and comments form on different pages.
Hello The Blue Dragon,
We still talking about that page.
I added persist=1 as you said but when I change between comments page it’s still a mess.
Roelof
Offline
Re: comments and comments form on different pages.
Can you please post all your article-form here, so we will be able to see what’s wrong?
And I don’t see the persist=1
attribute in your code.
Offline
#18 2010-03-06 09:22:09
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: comments and comments form on different pages.
Hello THE BLUE DRAGON.
My article form looks like this :
<txp:article_image />
<h3> <txp:title /> </h3>
<txp:body />
<txp:output_form form="prev_next" />
<txp:output_form form="comments_display" />
Roelof
Offline
Re: comments and comments form on different pages.
Please post your “comments_display” & “prev_next” forms.
Offline
#20 2010-03-06 11:58:25
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: comments and comments form on different pages.
Oke,
Here the comments_display form.
<txp:if_comments_allowed>
<!-- THE LINKS ON TOP -->
<div>
<a href="#" rel="toggle[comments_form]">Schrijf in het gastenboek </a>
<a href="#" rel="toggle[comments_display]">Lees gastenboek(<txp:if_comments><txp:comments_count /></txp:if_comments>)</a>
</div>
<!-- THE COMMENTS FORM AND PREVIEW -->
<div id="comments_form">
<txp:comments_preview />
<txp:comments_form />
</div>
<!-- THE COMMENTS DISPLAY -->
<div id="comments_display">
<txp:rah_comments wraptag="" break="" pg_wraptag="ul" limit="2" pg_class="navlist" sort="posted desc" />
</div>
</div>
<txp:else />
Comments are turned off for this article.
</txp:if_comments_allowed>
and here the prev-next form :
<div id="prevnext" class="clearfix">
<div id="prev">
<p><txp:link_to_prev>Previous: « <txp:prev_title /></txp:link_to_prev></p>
</div>
<div id="next">
<p><txp:link_to_next>Next: » <txp:next_title /></txp:link_to_next></p>
</div>
</div>
Roelof
Last edited by roelof (2010-03-06 11:58:43)
Offline
Re: comments and comments form on different pages.
OK 2 things:
1. there is a one extra </div>
tag you need to delete in:
</div>
</div>
<txp:else />
Comments are turned off for this article.
</txp:if_comments_allowed>
2. I don’t think that rah_comments output any comments-form, it just output the comments-list.
so the problem can be 2 things:
A. You may added the comments-form to the “comments_display” form, and you need to delete it from there.
B. Go to Admin > Preferences > Basic > Comments, and change the Automatically append comments to articles?
to No! and click on Save.
Offline
#22 2010-03-06 16:16:08
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: comments and comments form on different pages.
Oke,
B did it.
Now the last problem.
I have 9 pages of comments and rah_comments says there a 10 pages.
Can I be that rah_comments want to put the comment form on the last page ?
Or is it something else.
Roelof
Edit 1 : I see something strange. I have 18 comments according to the database but comments_count gives 19.
Last edited by roelof (2010-03-06 17:01:49)
Offline
Re: comments and comments form on different pages.
I have no Idea, maybe because the limit of only 2 comments per page, and no one loves to be caged lol.
Try to change the limit to something real like 5/10 per page.
if not working so ask this in the rah_comments topic.
Offline
#24 2010-03-06 18:23:56
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: comments and comments form on different pages.
Oke,
I will ask there.
When I make a limit of 5 then the comments_count is still not right.
Thank you very much for all the help.
Roelof
Offline