Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#37 2008-09-02 20:31:32
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: rah_comments // Pagination for comments
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>
Offline
#38 2008-09-02 20:47:34
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: rah_comments // Pagination for comments
Hay Els,
I removed it but still the same problem.
But thanks for the help.
Roelof
Offline
Offline
Re: rah_comments // Pagination for comments
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:
- Cause it is comments, and as we know, the page counting slows the page very little down.
- Plus there were (and still are if i remember right) some comment rendering bugs when the tag is used outside individual article context.
- Cause the current version doesn’t work on messy url mode ;)
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):
- Removed attributes: break_nav and break_pages.
- Fixed messy url mode’s error: now works fully on messy.
- Added attributes: pg_break, pg_break_class, prepend and append.
- Now works in article lists, same way like <txp:comments />.
- Better documention.
Offline
#41 2008-09-03 13:10:39
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: rah_comments // Pagination for comments
Hello Gocom,
Thank you for your help.
Here’s the tag trace.
<!— Runtime: 0.0661 —>
<!— Query time: 0.040291 —>
<!— Queries: 24 —>
<!— Memory: 3372Kb, <txp:site_url /> —>
<!— txp tag trace:
[SQL (0.003167): select name, data from txp_lang where lang=‘en-gb’ AND ( event=‘public’ OR event=‘common’)]
[SQL (0.000817): select name, code, version from txp_plugin where status = 1]
[SQL (0.000281): select ID,Section from textpattern where ID = 4 and Status >= 4 limit 1]
[SQL (0.000339): select * from txp_section where name = ‘articles’ limit 1]
[SQL (0.004004): select *, unix_timestamp(Posted) as uPosted from textpattern where ID=4 and Status in (4,5)]
[article 4]
[SQL (0.001816): select ID, Title, url_title, unix_timestamp(Posted) as uposted
from textpattern where Posted > ’2008-09-02 19:44:46’ and Section = ‘articles’ and Status=4 and Posted < now() order by Posted asc limit 1]
[SQL (0.000400): select ID, Title, url_title, unix_timestamp(Posted) as uposted
from textpattern where Posted < ’2008-09-02 19:44:46’ and Section = ‘articles’ and Status=4 and Posted < now() order by Posted desc limit 1]
[SQL (0.003564): select host from txp_log where ip=‘82.75.40.237’ limit 1]
[SQL (0.000322): insert into txp_log set `time`=now(),page=’/index.php?id=4’,ip=‘82.75.40.237’,host=‘82.75.40.237’,refer=’‘,status=‘200’,method=‘GET’]
[SQL (0.000480): select user_html from txp_page where name=‘archive’]
[Page: archive]
<txp:page_title/>
<txp:site_url/>
<txp:feed_link flavor=“atom” format=“link” label=“Atom” />
<txp:feed_link flavor=“rss” format=“link” label=“RSS” />
<txp:css format=“link” />
<txp:section/>
<txp:text item=“go_content” />
<txp:text item=“go_nav” />
<txp:text item=“go_search” />
<txp:link_to_home>
<txp:site_name/>
</txp:link_to_home>
<txp:site_slogan/>
<txp:section_list wraptag=“ul” break=“li” />
[SQL (0.000362): select name, title from txp_section where name != ‘default’ order by name ASC]
<txp:search_input wraptag=“p” />
[SQL (0.000264): select form from txp_form where `name` = ‘search_input’ limit 1]
<txp:feed_link label=“RSS” />
<txp:feed_link flavor=“atom” label=“Atom” />
<txp:linklist wraptag=“p” />
[SQL (0.009740): select *, unix_timestamp(date) as uDate from txp_link where 1=1 order by linksort asc ]
[SQL (0.000353): select Form from txp_form where name=‘plainlinks’]
[Form: plainlinks]
<txp:linkdesctitle/>
[Form: plainlinks]
<txp:linkdesctitle/>
[Form: plainlinks]
<txp:linkdesctitle/>
<txp:site_url/>
<txp:if_article_list>
[<txp:if_article_list>: false]
</txp:if_article_list>
<txp:article listform=“article_listing” limit=“5” />
[SQL (0.002760): select Form from txp_form where name=‘default’]
[Form: default]
<txp:if_individual_article>
[<txp:if_individual_article>: true]
<txp:permlink>
<txp:title/>
</txp:permlink>
</txp:if_individual_article>
<txp:posted/>
<txp:body/>
<txp:author/>
[SQL (0.000203): select RealName from txp_users where `name` = ‘roelof’ limit 1]
<txp:category1 title=“1” link=“1” />
[SQL (0.000188): select title from txp_category where name=‘zwangerschap’ and type=‘article’]
<txp:category2 title=“1” link=“1” />
[SQL (0.000238): select title from txp_category where name=‘Category1’ and type=‘article’]
<txp:comments_invite wraptag=“p” />
<txp:site_url/>
[SQL (0.000297): select Form from txp_form where name=‘comments_display’]
[Form: comments_display]
<txp:text item=“comment” />
<txp:comments_invite textonly=“1” showalways=“1” showcount=“0” />
<txp:comments/>
[SQL (0.002555): select *, unix_timestamp(posted) as time from txp_discuss where parentid=4 and visible=1 order by posted ASC ]
[SQL (0.004094): select Form from txp_form where name=‘comments’]
[Form: comments]
<txp:comment_message/>
<txp:comment_name/>
<txp:comment_time/>
<txp:comment_permlink>
</txp:comment_permlink>
[Form: comments]
<txp:comment_message/>
<txp:comment_name/>
<txp:comment_time/>
<txp:comment_permlink>
</txp:comment_permlink>
<txp:if_comments_preview>
[<txp:if_comments_preview>: false]
</txp:if_comments_preview>
<txp:if_comments_allowed>
[<txp:if_comments_allowed>: true]
<txp:comments_form isize=“25” msgcols=“45” msgrows=“15” />
[SQL (0.002071): select ip from txp_discuss_ipban where `ip` = ’82.75.40.237’ limit 1]
[SQL (0.001506): select Form from txp_form where `name` = ‘comment_form’ limit 1]
<txp:comments_error wraptag=“ul” break=“li” />
<txp:text item=“comment_name” />
<txp:text item=“comment_email” />
<txp:text item=“comment_web” />
<txp:text item=“comment_message” />
<txp:comments_help/>
</txp:if_comments_allowed>
<txp:if_individual_article>
[<txp:if_individual_article>: true]
<txp:site_url/>
<txp:link_to_prev>
</txp:link_to_prev>
<txp:link_to_next>
</txp:link_to_next>
</txp:if_individual_article>
[ ~~~ secondpass ~~~ ]
—>
En here’s the path : index.php?id=4
Regards,
Roelof
Offline
Re: rah_comments // Pagination for comments
Roelof, either I’m blind (and editors search doesn’t work) but I don’t see there any traces of rah_comments
tag, only a <txp:comments />
nor a query that would even limit the comments.
Therefor, are you sure you are using the <txp:rah_comments />
-tag? Cause it ain’t called according that tag trace :-)
Last edited by Gocom (2008-09-03 14:14:38)
Offline
#43 2008-09-03 15:07:03
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: rah_comments // Pagination for comments
yes, im sure,
Here a piece of the page template :
<txp:article />
<txp:if_comments>
<txp:rah_comments wraptag=“ol” break=“li” limit=“1” />
</txp:if_comments>
Roelof
Offline
Offline
#45 2008-09-03 15:21:27
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: rah_comments // Pagination for comments
pfff, tpx can be a big puzzle.
According to what you see im a using the right piece ?
Roelof
Offline
Re: rah_comments // Pagination for comments
There is this:
<txp:comments/>
[SQL (0.002555): select *, unix_timestamp(posted) as time from txp_discuss where parentid=4 and visible=1 order by posted ASC ]
When there should be similiar to this:
<txp:rah_comments />
[SQL (0.000614): select val from txp_prefs where name='permlink_mode'] // This extra query comes in next release.
[SQL (0.002656): select *, unix_timestamp(posted) as time from txp_discuss where parentid=4 and visible=1 order by posted asc limit 0, 10]
[SQL (0.000486): select Form from txp_form where name='comments']
Last edited by Gocom (2008-09-03 15:35:16)
Offline
#47 2008-09-03 15:52:46
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: rah_comments // Pagination for comments
oke,
let me ask me on another way :
In the piece of code. Am i using the plugin on the right way.
Im trying to understand why the plugin isn’t used.
Roelof
Offline
Re: rah_comments // Pagination for comments
In the piece of code. Am i using the plugin on the right way.
Im trying to understand why the plugin isn’t used.
Possibly reasons:
- You have pasted wrong tag trace (but seems that it is right one, cause there is two comments, like you said earlier).
- You are using the
<txp:rah_comments />
in wrong place.
roelof, if it isn’t local site, you can email me (plus send me logins if you trust me enough) and I can possibly look your templates, and fix the problem with blasting speed :)
Last edited by Gocom (2008-09-03 16:11:19)
Offline