Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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>&raquo; Related articles</dt> <dd> <ul class=“dotlist”> <txp:related_articles label=”“ limit=“5” break=“li” /> </ul> </dd> </dl>

</txp:glx_if_not_section_frontpage> <txp:article_custom form=“article_li_list” category=“general” section=“mav” sortby=“Posted” sortdir=“desc” /> <txp:upm_image type=“image” image_id=“47” class=“image” /> <txp:permlink><txp:title /></txp:permlink> <txp:title /> <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:upm_image type=“image” image_id=“41” class=“image” /> <txp:permlink><txp:title /></txp:permlink> <txp:title /> <txp:upm_image type=“image” image_id=“39” class=“image” /> <txp:permlink><txp:title /></txp:permlink> <txp:title /> <txp:permlink><txp:title /></txp:permlink> <txp:title /> <txp:permlink><txp:title /></txp:permlink> <txp:title /> <txp:output_form form=“syndicate_box_EN” /> <txp:feed_link label=“Atom” section=“mav” flavor=“atom” /> <txp:feed_link label=“XML” flavor=“rss” /> <txp:feed_link label=“Atom” flavor=“atom” /> <txp:output_form form=“overzicht_box_EN” /> <txp:zem_link href=”/”> Frontpage </txp:zem_link> <txp:zem_link href=”/mav”> MAV </txp:zem_link> <txp:zem_link href=”/album”> Photo gallery </txp:zem_link> <txp:zem_link href=“4”> About this site </txp:zem_link> <txp:zem_link href=“5”> Contact </txp:zem_link> <txp:output_form form=“footer” /> —> </code>

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

#12 2006-05-27 13:06:18

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

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

Board footer

Powered by FluxBB