Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-12-22 10:26:18

glenelkins
Member
Registered: 2008-08-28
Posts: 29

Problem With Comments

Hi

I have the following code, which works on one site but not another.

[code]
<txp:article id=“25” />
<txp:comments id=“25” />
<txp:comments_form id=“25” />
[/code]

On the first site its fine, on the new one i just setup i get: “Commenting is closed for this article.” even though I have gone into the preferences, allowed commenting and switched on commenting for the article with id 25

Ideas?

Offline

#2 2008-12-22 10:55:07

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: Problem With Comments

You say you’ve allowed comments in the preferences section, but have you also made sure that comments ‘Disabled after’ is set to ‘never’?

Offline

#3 2008-12-22 10:56:00

glenelkins
Member
Registered: 2008-08-28
Posts: 29

Re: Problem With Comments

yes its set to Never…its a strange one

Offline

#4 2008-12-22 11:04:57

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

Re: Problem With Comments

comments and comments_form do not have an id attribute, so that’s probably why you don’t see anything.

Offline

#5 2008-12-22 11:08:51

glenelkins
Member
Registered: 2008-08-28
Posts: 29

Re: Problem With Comments

well it works fine in another installation

Offline

#6 2008-12-22 11:10:41

glenelkins
Member
Registered: 2008-08-28
Posts: 29

Re: Problem With Comments

iv just taken the ID out, still doesnt work

Offline

#7 2008-12-22 11:13:04

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

Re: Problem With Comments

Can you post the form names and contents?

Offline

#8 2008-12-22 11:15:58

glenelkins
Member
Registered: 2008-08-28
Posts: 29

Re: Problem With Comments

its just using the standard “comments” form..i dont remember changing it though im not the only web developer here so it may be different from the original…here it is:

<txp:message />

<p class=“small”>&#8212; <txp:comment_name /> &#183; <txp:comment_time /> &#183; <txp:comment_permlink>#</txp:comment_permlink></p>

Offline

#9 2008-12-22 11:24:01

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

Re: Problem With Comments

No, I meant the form in your first post.

Offline

#10 2008-12-22 11:25:19

glenelkins
Member
Registered: 2008-08-28
Posts: 29

Re: Problem With Comments

you mean the page code?

Offline

#11 2008-12-22 11:25:52

glenelkins
Member
Registered: 2008-08-28
Posts: 29

Re: Problem With Comments

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” lang=“en”>

<head>
<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” />
<meta name=“Keywords” content=“Old Coach House,Hotel,Luxury,North Yorkshire,The Dales,Ripon,North Stainley” />
<meta name=“description” content=“The Old Coach House is a small luxury hotel near Ripon North Yorkshire” />
<title><txp:page_title separator=” : “ /></title>
<link rel=“shortcut icon” href=“favicon.ico” />

<link href=”/css/style.css” rel=“stylesheet” type=“text/css” media=“screen” />

</head>

<body id=“home”>

<div id=“container”>
<div id=“masthead-home”><h1>The Old Coach House – Welcome</h1></div>
<div id=“logo”><h1><a href=”/”>The Old Coach House – Welcome</a></h1>
</div>
<!— START: Main Nav —>
<txp:output_form form=“mainNav” />
<!— END: Main Nav —>

<div id=“holder”>

<div id=“content”>

<txp:article_custom id=“25” />
<txp:comments form=“comments” />
<txp:comments_form />

</div> <!— CLOSE: #content —>

<div id=“secondary-content”>

<div id=“secondary-content-panel”>
<img class=“editorial” src=”/i/img-sec-content-01.jpg” alt=”“ />
<p>Designed with modern living in mind, the luxury guest house offer rustic charm with all the modern facilities and sophistication guests are looking for.</p>
<a href =”/outandAbout” title=“Out and About”><img class=“editorial” src=”/i/img-sidepanel-01.jpg” alt=“Idilyic countryside” border=“0” /></a>
<p>Picture post card villages, a vast range of country walks and areas of outstanding natural beauty, all within a short driving distance.</p>

</div>
</div> <!— CLOSE: #secondary-content —>

</div> <!— CLOSE: #holder —>

</div> <!— CLOSE: #container —>
<txp:output_form form=“footer” />
<!— END: Footer —>
<script type=“text/javascript”>
var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(unescape(“%3Cscript src=’” + gaJsHost + “google-analytics.com/ga.js’ type=‘text/javascript’%3E%3C/script%3E”));
</script>
<script type=“text/javascript”>
try {
var pageTracker = _gat._getTracker(“UA-684165-17”);
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>

Offline

#12 2008-12-22 11:46:44

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

Re: Problem With Comments

And what is in your default form?

Offline

Board footer

Powered by FluxBB