Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-12-14 22:03:01

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Comment invite working in 4.07?

Along with my other post, the <txp:comments_invite /> tag does not seem to be working for me in a 4.07 install. Its in the comments_display form which looks like this:

<txp:if_comments_preview>
<div id="comments_form" class="clearfix">
<txp:comments_preview form="comments_preview" />
<txp:comments_form preview="1" />
</div>
<txp:else />
<txp:if_comments>
<h2 id="comment"><txp:comments_count /> Comments for <txp:title /></h2>
</txp:if_comments>
<txp:comments_invite />
<txp:comments />
<txp:if_comments_allowed>
<div id="comments_form" class="clearfix">
<txp:comments_form />
</div>
</txp:if_comments_allowed>
</txp:if_comments_preview>

Everything else is fine, just not comments_invite. Comments are on for the article, and an invite text is set. ?

Offline

#2 2008-12-14 22:58:19

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Comment invite working in 4.07?

Tag trace please.

Offline

#3 2008-12-15 07:43:25

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Comment invite working in 4.07?

I just turned on Debugging and see that I am using a deprecated tag, not surprising since I used an older comments form from another project.

Here is the tag trace:

<!-- Runtime:    0.1179 -->
<!-- Query time: 0.049611 -->
<!-- Queries: 20 -->
<!-- Memory: 2885Kb, <txp:if_comments_error> -->
<!-- txp tag trace: 
[SQL (0.00022292137145996): select name, data from txp_lang where lang='en-gb' AND ( event='public' OR event='common')]
[SQL (0.00076794624328613): select name, code, version from txp_plugin where status = 1 AND type IN (0,1) order by load_order]
[SQL (0.00016188621520996): select ID,Section from textpattern where url_title like 'water-view' and Status >= 4 limit 1]
[SQL (5.6028366088867E-5): select page, css from txp_section where name = 'article' limit 1]
[SQL (0.00010490417480469): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where ID=14 and Status in (4,5)]
[article 14]
[SQL (0.014226913452148): select ID, Title, url_title, unix_timestamp(Posted) as uposted
			from textpattern where Posted > '2008-12-14 14:15:39' and Section = 'article' and Status=4 and Posted < now() and (now() <= Expires or Expires = 0) order by Posted asc limit 1]
[SQL (0.00049781799316406): select ID, Title, url_title, unix_timestamp(Posted) as uposted
			from textpattern where Posted < '2008-12-14 14:15:39' and Section = 'article' and Status=4 and Posted < now() and (now() <= Expires or Expires = 0) order by Posted desc limit 1]
[SQL (6.2942504882812E-5): select user_html from txp_page where name='default']
[Page: default]
<txp:output_form form="header" />
	[SQL (0.0001220703125): select Form from txp_form where name='header']
	[Form: header]
	<txp:css n="default" format="link" />
	<txp:page_title />
<txp:link_to_home>
	<txp:site_name />
</txp:link_to_home>
<txp:article limit="1" />
	[SQL (0.00011396408081055): select Form from txp_form where name='default']
	[Form: default]
	<txp:article_image />
		[SQL (8.8930130004883E-5): select * from txp_image where id = 33]
	<txp:permlink>
		<txp:title />
	</txp:permlink>
	<txp:body />
	<txp:output_form form="prev_next" />
		[SQL (5.6982040405273E-5): select Form from txp_form where name='prev_next']
		[Form: prev_next]
		<txp:link_to_prev>
			[SQL (5.8889389038086E-5): select ID as thisid, Section as section, Title as title, url_title, unix_timestamp(Posted) as posted from textpattern where ID = 18]
			<txp:prev_title />
		</txp:link_to_prev>
		<txp:link_to_next>
		</txp:link_to_next>
	[SQL (0.031803846359253): select Form from txp_form where name='comments_display']
	[Form: comments_display]
	<txp:if_comments_preview>
		[<txp:if_comments_preview>: false]
		<txp:if_comments>
			[<txp:if_comments>: true]
			<txp:comments_count />
			<txp:title />
		</txp:if_comments>
		<txp:comments_invite />
		<txp:comments />
			[SQL (0.00017595291137695): select *, unix_timestamp(posted) as time from txp_discuss where parentid=14 and visible=1 order by posted ASC ]
			[SQL (0.00026607513427734): select Form from txp_form where name='comments']
			[Form: comments]
			<txp:comment_name />
			<txp:message />
				Tag error:  <txp:message /> -> Textpattern Notice: tag is deprecated  on line 1948
			<txp:comment_time />
			<txp:comment_permlink>
			</txp:comment_permlink>
			[Form: comments]
			<txp:comment_name />
			<txp:message />
				Tag error:  <txp:message /> -> Textpattern Notice: tag is deprecated  on line 1948
			<txp:comment_time />
			<txp:comment_permlink>
			</txp:comment_permlink>
		<txp:if_comments_allowed>
			[<txp:if_comments_allowed>: true]
			<txp:comments_form />
				[SQL (0.00015997886657715): select ip from txp_discuss_ipban where `ip` = '88.7.201.94' limit 1]
				[SQL (0.00035500526428223): select Form from txp_form where `name` = 'comment_form' limit 1]
				<txp:comments_help />
				<txp:text item="Name" />
				<txp:text item="Email" />
				<txp:text item="Website" />
				<txp:text item="Your comments" />
				<txp:if_comments_error>
					[<txp:if_comments_error>: false]
				</txp:if_comments_error>
		</txp:if_comments_allowed>
	</txp:if_comments_preview>
<txp:output_form form="footer" />
	[SQL (8.9883804321289E-5): select Form from txp_form where name='footer']
	[Form: footer]
	<txp:site_url />
	<txp:site_url />
	<txp:site_url />
	<txp:link_to_home>
		<txp:site_name />
	</txp:link_to_home>
	<txp:php>
	</txp:php>
[ ~~~ secondpass ~~~ ]
 -->

Offline

#4 2008-12-15 11:48:18

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Comment invite working in 4.07?

Just to be sure, changing the deprecated tag doesn’t solve the problem?
Can you provide an URL for the page that demonstrates the problem?

Offline

#5 2008-12-15 21:45:37

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Comment invite working in 4.07?

Changing the deprecated <txp:message /> did not change the lack of output of the <txp:comments_invite /> tag.

It might be me missing something, but I can’t work on this tonight to double-check. I’ll send the URL by email.

Offline

#6 2008-12-16 13:27:38

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Comment invite working in 4.07?

The URL you provided doesn’t show the comment_invite tag in the tag trace.
If I’m not mistaken you’re using the comments_invite tag only on the individual article page. It won’t show up there unless you set the showalways attribute to 1.

Offline

#7 2008-12-16 18:12:38

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Comment invite working in 4.07?

Thanks for the email and post here Ruud. I did indeed miss the showalways attribute in the comments_invite tag! ;-)

Offline

Board footer

Powered by FluxBB