Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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
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”>— <txp:comment_name /> · <txp:comment_time /> · <txp:comment_permlink>#</txp:comment_permlink></p>
Offline
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
Offline