Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-05-24 19:32:02
- tompie
- New Member
- Registered: 2005-01-21
- Posts: 7
comment_invite not working properly?
Hello,
I’ll make it short:
The first article on my frontpage (http://tom.pycke.be/mav) doesn’t show the comment_invite. The others do.
Code in the page:
<txp:article listform="default" limit="5"/>
Anybody an idea why? Or how to solve it?
Thx,
Tom
Offline
#2 2006-05-24 20:57:04
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: comment_invite not working properly?
You didn’t accidentally turn comments off for this article?
And may I ask you how you managed to get the dates in dutch?
Offline
#3 2006-05-24 21:54:58
- tompie
- New Member
- Registered: 2005-01-21
- Posts: 7
Re: comment_invite not working properly?
Comments are on, it’s just always the first article that doesnt show the comment_invite :(
For the dutch language: I’m using the zem_posted plugin, you can manually change the locale in the code…
Offline
#4 2006-05-24 23:48:26
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: comment_invite not working properly?
Hm. Check that you’re not using an override form somewhere?
Offline
#5 2006-05-25 00:34:04
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: comment_invite not working properly?
Thanks, didn’t know that plugin.
Wild guess: did you leave the ‘invitation’ field empty for this article?
Edit: no that can’t be it if it’s always the first article… I suppose you don’t have an if_first_article tag somewhere?
Last edited by els (2006-05-25 00:37:04)
Offline
#6 2006-05-25 08:17:03
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: comment_invite not working properly?
Can you post a tag trace please?
Offline
#7 2006-05-25 10:11:05
- tompie
- New Member
- Registered: 2005-01-21
- Posts: 7
Re: comment_invite not working properly?
Thanks for trying to help me!
He’s the tag trace:
<code>
<!— Runtime: 0,1631 —>
<!— Queries: 39 —>
<!— Memory: no info available —>
<!— txp tag trace:
<txp:css />
<txp:page_title />
<txp:link_to_home>
<img src=“http://tom.pycke.be/textpattern/skin1/headertxt.jpg” class=“floatleft”/>
</txp:link_to_home>
<txp:search_input size=“33” />
<txp:article listform=“default” limit=“5”/>
<txp:upm_image type=“image” image_id=“47” class=“image” />
<txp:permlink><txp:title /></txp:permlink>
<txp:title />
<txp:body />
<txp:zem_posted tz=“GMT+1:00” format=”%e %B %Y %Hu%M” />
<txp:permlink>Link</txp:permlink>
<txp:upm_image type=“image” image_id=“42” class=“image” />
<txp:upm_image type=“image” image_id=“43” class=“image” />
<txp:upm_image type=“image” image_id=“44” class=“image” />
<txp:upm_image type=“image” image_id=“45” class=“image” />
<txp:upm_image type=“image” image_id=“46” class=“image” />
<txp:permlink><txp:title /></txp:permlink>
<txp:title />
<txp:body />
<txp:zem_posted tz=“GMT+1:00” format=”%e %B %Y %Hu%M” />
<txp:permlink>Link</txp:permlink>
<txp:comments_invite />
<txp:upm_image type=“image” image_id=“41” class=“image” />
<txp:permlink><txp:title /></txp:permlink>
<txp:title />
<txp:body />
<txp:zem_posted tz=“GMT+1:00” format=”%e %B %Y %Hu%M” />
<txp:permlink>Link</txp:permlink>
<txp:comments_invite />
<txp:upm_image type=“image” image_id=“39” class=“image” />
<txp:permlink><txp:title /></txp:permlink>
<txp:title />
<txp:body />
<txp:zem_posted tz=“GMT+1:00” format=”%e %B %Y %Hu%M” />
<txp:permlink>Link</txp:permlink>
<txp:comments_invite />
<txp:permlink><txp:title /></txp:permlink>
<txp:title />
<txp:body />
<txp:zem_posted tz=“GMT+1:00” format=”%e %B %Y %Hu%M” />
<txp:permlink>Link</txp:permlink>
<txp:comments_invite />
secondpass
<txp:comments_invite />
<txp:glx_if_not_section_frontpage>
<br />
<dl>
<dt>» Related articles</dt>
<dd>
<ul class=“dotlist”>
<txp:related_articles label=”“ limit=“5” break=“li” />
</ul>
</dd>
</dl>
As you see, there’s no <code><txp:comments_invite /></code> after the first article!
Last edited by tompie (2006-05-25 10:13:04)
Offline
#8 2006-05-26 19:21:51
- tompie
- New Member
- Registered: 2005-01-21
- Posts: 7
Re: comment_invite not working properly?
Anybody?
Offline
#9 2006-05-26 22:40:06
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: comment_invite not working properly?
Is it only with this article: “Kalman filtering of IMU data” or does the problem move to the first article if you add a new one?
Last edited by els (2006-05-26 22:40:33)
Offline
#10 2006-05-27 07:59:39
- tompie
- New Member
- Registered: 2005-01-21
- Posts: 7
Re: comment_invite not working properly?
It’s always the first article. I added a “test” article ont the frontpage.
On the frontpage section and the mav (http://tom.pycke.be/mav) section, the first article have no comment_invite, even though they are different articles!
Last edited by tompie (2006-05-27 07:59:58)
Offline
#11 2006-05-27 12:23:25
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: comment_invite not working properly?
Hmm… I notice in the tag trace that the 5th article seems to have two comment_invite tags:
<code>
<txp:comments_invite /> secondpass
<txp:comments_invite />
</code>
But to be honest, I don’t know what that means or if it could be related to your problem. If you’re not using a <txp:if_first_article>
tag, or maybe the zem_nth plugin, then I can’t think of a reason why this would happen, sorry. I hope Mary will come back to this thread…
Offline
Re: comment_invite not working properly?
Good catch, Els.
If you look at the tag-trace, then during the parsing of the first article, the comments_invite-tag is never called. It is only after the page is completely parsed for the frist time, that in the second parse it is encountered – of course then all the context is missing (which article the tags tag relates to).
This indicates that you are using something – maybe php? – that outputs the comments-invite tag. If my guess about using php is correct, then you should switch to txp:php
instead of using regular php-style delimiters – you may have to change your code a bit, too, there is an entry on using php in the FAQ.
Offline