Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-11 13:02:41

damienhasselhoff
New Member
Registered: 2005-09-09
Posts: 6

Obvious? comments in single article

I’m sorry, I just can’t seem to get this to work… I must have the syntax of if_individual_article wrong, or it’s in the wrong place or something, but I can’t seem to get my comments to show on single articles, only on the front page articles… Where did I screw up?

www.pathetica.net

thanks much!

Offline

#2 2007-07-12 02:23:01

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Obvious? comments in single article

Tag trace please.

Offline

#3 2007-07-12 02:37:39

damienhasselhoff
New Member
Registered: 2005-09-09
Posts: 6

Re: Obvious? comments in single article

Thanks, Mary. Here it is. I thought I’d get rid of some of the sidebar and stuff (just links, really) to make it, well, smaller… but just in case the problem is elsewhere, here is the rest

Thanks for your help

<!-- txp tag trace: 
[SQL (0.000343): select name from txp_lang where lang='en-us' limit 1]
[SQL (0.003668): select name, data from txp_lang where lang='en-us' AND ( event='public' OR event='common')]
[SQL (0.002499): select name, code, version from txp_plugin where status = 1]
[SQL (0.003290): select ID,Section from textpattern where url_title like 'stilltime' AND Section='article' and Status >= 4 limit 1]
[SQL (0.000232): select * from txp_section where name = 'article' limit 1]
[SQL (0.000414): select *, unix_timestamp(Posted) as uPosted from textpattern where ID=162 and Status = 4]
[article 162]
[SQL (0.000421): select ID, Title, url_title, unix_timestamp(Posted) as uposted
			from textpattern where Posted > '2007-07-11 06:45:03' and Section = 'article' and Status=4 and Posted < now() order by Posted asc limit 1]
[SQL (0.004665): select ID, Title, url_title, unix_timestamp(Posted) as uposted
			from textpattern where Posted < '2007-07-11 06:45:03' and Section = 'article' and Status=4 and Posted < now() order by Posted desc limit 1]
[SQL (0.000371): select host from txp_log where ip='74.65.196.54' limit 1]
[SQL (0.000261): insert into txp_log set `time`=now(),page='/article/stilltime',ip='74.65.196.54',host='cpe-74-65-196-54.nyc.res.rr.com',refer='',status='200',method='GET']
[SQL (0.000213): select user_html from txp_page where name='default']
[Page: default]
<txp:css/>
<txp:css n="showhide.js"/>
<txp:page_title/>
	[SQL (0.000196): select title from txp_section where name='article']
	[SQL (0.000180): select Title from textpattern where ID = 162]
<txp:link_to_home>
	<txp:sitename/>
</txp:link_to_home>
<txp:mdp_calendar_small section="article" />
	[SQL (0.000730): select *, unix_timestamp(Posted) as posted from textpattern where Posted BETWEEN FROM_UNIXTIME('1183262400') AND FROM_UNIXTIME('1185854399') AND Status='4'  AND Section='article'  AND Posted < now() ORDER BY Posted ASC]
<txp:article_custom form="recent_posts" section="article" limit="5" offset="1" />
	[SQL (0.002767): select *, unix_timestamp(Posted) as uPosted from textpattern where 1 and Status = 4 and Posted <= now() and Section = 'article' order by Posted desc limit 1, 5]
	[SQL (0.000208): select Form from txp_form where name='recent_posts']
	[Form: recent_posts]
	[article 161]
	<txp:permlink>
		<txp:title/>
	</txp:permlink>
	[article 160]
	<txp:permlink>
		<txp:title/>
	</txp:permlink>
	[article 159]
	<txp:permlink>
		<txp:title/>
	</txp:permlink>
	[article 157]
	<txp:permlink>
		<txp:title/>
	</txp:permlink>
	[article 156]
	<txp:permlink>
		<txp:title/>
	</txp:permlink>
<txp:category_list label="archives:" />
	[SQL (0.000342): select name, title from txp_category where type = 'article' and name not in('default','root')  order by name]
<txp:article_custom form="now_playing2" limit="1" />
	[SQL (0.000591): select *, unix_timestamp(Posted) as uPosted from textpattern where 1 and Status = 4 and Posted <= now() order by Posted desc limit 0, 1]
	[SQL (0.000200): select Form from txp_form where name='now_playing2']
	[Form: now_playing2]
	[article 162]
	<txp:knd_amazonlist 
	asins="B000KQF71Q,B000M06K84" 
	links="Papercuts<br />Can't Go Back,Loney Dear<br />Loney, Noir"
	tld="com" 
	class="amzThumbs" 
	wraptag="ul" 
	break="li" />

<txp:article limit="7" />
	[SQL (0.000470): select *, unix_timestamp(Posted) as uPosted from textpattern where ID = 162 and Status = 4 limit 1]
	[article 162]
	[SQL (0.000225): select Form from txp_form where name='default']
	[Form: default]
	<txp:site_url/>
	<txp:permlink>
		<txp:posted/>
	</txp:permlink>
	<txp:permlink>
		<txp:title/>
	</txp:permlink>
	<txp:body/>
		<txp:image id="364" class="image" />
			[SQL (0.000263): select * from txp_image where id = 364 limit 1]
	<txp:if_comments_allowed>
		[<txp:if_comments_allowed>: true]
		<txp:comments_invite/>
	</txp:if_comments_allowed>
	<txp:if_individual_article>
		[<txp:if_individual_article>: true]
		<txp:comments_invite wraptag="p" />
	</txp:if_individual_article>
	<txp:site_url/>
	<txp:site_url/>
<txp:if_individual_article>
	[<txp:if_individual_article>: true]
	<txp:link_to_prev>
		[SQL (0.000443): select *,ID as thisid, unix_timestamp(Posted) as posted from textpattern where ID=161]
		<txp:prev_title/>
	</txp:link_to_prev>
	<txp:link_to_next>
	</txp:link_to_next>
</txp:if_individual_article>
<txp:if_article_list>
	[<txp:if_article_list>: false]
</txp:if_article_list>
[ ~~~ secondpass ~~~ ]
 -->

Offline

#4 2007-07-12 02:57:00

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Obvious? comments in single article

Typically the comments_invite tag only shows up on lists, and relies on having the comments form on individual pages, even when you specify popups as your comment mode. Just add showalways="1" to comments_invite and you should be good.

Offline

#5 2007-07-12 04:46:34

damienhasselhoff
New Member
Registered: 2005-09-09
Posts: 6

Re: Obvious? comments in single article

Thank you thank you, Mary! That did it….

Now is there some syntactical thing I just don’t understand correctly? The assumption is that individual articles should have a comments form appended, even if popups are selected…? Is this the way it’s meant to be done, or a workaround for my amateur coding?

Last edited by damienhasselhoff (2007-07-13 17:33:08)

Offline

#6 2007-07-14 04:16:46

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Obvious? comments in single article

Yes, it’s kind of muddled how it works right now. I’m guessing what we should be doing is making the comments_invite account for popups too.

Offline

Board footer

Powered by FluxBB