Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2005-11-08 05:23:11
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: From Troubleshooting forum: My comment form doesn't work...
> “Here is the tag trace…”
Uh, that is the entire contents of the trace?
> “Does this mean…”
No, it means you’ve apparently removed everything from your page template. Why did you do that?
Offline
Re: From Troubleshooting forum: My comment form doesn't work...
Hi Mary,
I am not sure what you mean with “you apparently have removed everything from your page template”?
Here is the archive page with the comment form:
http://www.hirschen-newyork.com/article/1/first-post
After I set the site to “debugging” under admin>preferences I traced the tag and that’s all I got.
When I did the same thing for the home page I got the following results:
<code>
<!— txp tag trace:
<txp:link_to_home>Home</txp:link_to_home>
<txp:article limit=“5” />
<txp:permlink><txp:title /></txp:permlink>
<txp:title />
<txp:category1 title=“1” link=“1” />
<txp:author />
<txp:posted />
<txp:if_article_list>
<txp:if_excerpt>
<txp:excerpt />
<!— post comment & continue reading start —>
<div class=“comment-box”>
<div class=“comment-left”><txp:else />
<txp:body />
</txp:if_excerpt>
<txp:else />
<txp:body />
</txp:if_article_list>
<txp:if_excerpt>
<txp:excerpt />
<!— post comment & continue reading start —>
<div class=“comment-box”>
<div class=“comment-left”><txp:else />
<txp:body />
</txp:if_excerpt>
<txp:excerpt />
<txp:comments_invite />
<txp:permlink>But there is more…</txp:permlink>
—>
</code>
Sorry for being so difficult, but I am really new to this as you can tell.
Last edited by dada78 (2005-11-08 05:45:18)
Offline
#18 2005-11-08 05:49:49
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: From Troubleshooting forum: My comment form doesn't work...
That’s a really strange thing with the tag trace, but now I can see your source, I see what’s wrong: you must keep the contents of your comment form within the Textpattern form, “comment_form”, and you must keep the contents of “comments_display” as follows:
<code><txp:comments />
<txp:if_comments_allowed>
<txp:comments_form />
<txp:else />
<p><txp:text item=“comments_closed” /></p>
</txp:if_comments_allowed></code>
What’s happened is you’ve moved the comment form stuff somewhere else – maybe you’ve put it in the “default” form? – and so the full form isn’t being generated by Textpattern, because the appropriate form is not being used.
Offline
Re: From Troubleshooting forum: My comment form doesn't work...
Hi Mary!
Thanks very, very much for your help!
I pasted the code into the comments_display form, but it still won’t work. ;-(
Could it be a problem that the comments_display is set to an “article” type instead of “comment”, like so:
comments_display article
In the “comments” form (which is set to “comment”) I have this:
<code>
<div class=“comment-container>
<ul>
<li><txp:comment_name /></li>
<li><txp:comment_time /></li>
</ul>
<p><txp:message /></p>
</div>
</code>
In the “comments_display” form (which is set to article) I have this:
<code>
<txp:comments />
<txp:if_comments_allowed>
<txp:comments_form />
<txp:else />
<p><txp:text item=“comments_closed” /></p>
</txp:if_comments_allowed>
</code>
And in the “comment_form”, which is set to “comment” I have this:
<code>
<fieldset>
<legend>legend</legend>
<p>* Required fields. Your e-mail address will not be published on this site</p>
<p><label>Name*</label><txp:comment_name_input /></p>
<p><label>Mail*</label><txp:comment_email_input /></p>
<p><label>Website</label><txp:comment_web_input /></p>
<p><label>Comments</label><txp:comment_message_input /></p>
<txp:comment_preview />
<p><txp:comment_submit /></p>
</fieldset>
</code>
I think I am going to lose hair over this…
Last edited by dada78 (2005-11-08 06:08:06)
Offline
#20 2005-11-08 06:20:59
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: From Troubleshooting forum: My comment form doesn't work...
The type of form shouldn’t make a difference – its there to help the tagbuilder windows. So at at least you can rest assured that won’t ever screw up anything. :)
Your forms all look correct now.
I do wonder at your tag trace not being more complete, it may be there is an underlying problem that will prevent us getting any further until whatever it is, is fixed. Does your admin > diagnostics tab give you any error messages?
Offline
Re: From Troubleshooting forum: My comment form doesn't work...
I just noticed that I have no tags in the area where the full article should show up on the ARCHIVE PAGE! (I have placed a tag that calls the excerpt on the home page but I don’t know what tags to use to show the full article on the ARCHIVE PAGE)
Could that be a reason? I only have the html there with the dummy text instead of a textpattern tag.
<code>
<!— post area begin —>
<div class=“post”>
<h1><a href=“http://www.hirschen-newyork.com/article/1/first-post” title=“Permanent link to this article”>First Post</a></h1>
<div class=“date”>Friday, 09 September 2005</div>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec rutrum est eu mauris. In volutpat blandit felis. Suspendisse eget pede. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Quisque sed arcu. Aenean purus nulla, condimentum ac, pretium at, commodo sit amet, turpis. Aenean lacus. Ut in justo. Ut viverra dui vel ante. Duis imperdiet porttitor mi. Maecenas at lectus eu justo porta tempus. Cras fermentum ligula non purus. Duis id orci non magna rutrum bibendum. Mauris tincidunt, massa in rhoncus consectetuer, lectus dui ornare enim, ut egestas ipsum purus id urna. Vestibulum volutpat porttitor metus. Donec congue vehicula ante.</p>
</code>
I THINK THAT WAS MY PROBLEM ALL ALONG. I DIDN’T KNOW WHAT TO PUT IN THE AREA WHERE THE FULL ARTICLE SHOULD APPEAR (between the post div tags)
Thank you!
Last edited by dada78 (2005-11-08 06:51:22)
Offline
#22 2005-11-08 07:04:51
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: From Troubleshooting forum: My comment form doesn't work...
Use the original templates provided as a guide. The manual has a list of tags and what each does.
Offline
Re: From Troubleshooting forum: My comment form doesn't work...
Thank you Mary. These are great links to have!
What I still don’t understand is how to reference to the FULL article in the ARCHIVE PAGE when I have this in the DEFAULT Page:
<code>
<!— post area begin —>
<txp:article limit=“5” />
<!— post area end —>
</code>
AND This in my DEFAULT FORM:
<code>
<div class=“post”>
<h1><txp:permlink><txp:title /></txp:permlink></h1>
<div class=“date”>Filed under: <txp:category1 title=“1” link=“1” /> by <txp:author /> on <txp:posted /></div>
<txp:if_article_list>
<txp:if_excerpt>
<txp:excerpt />
<!— post comment & continue reading start —>
<div class=“comment-box”>
<div class=“comment-left”><txp:else />
<txp:body />
</txp:if_excerpt>
<txp:else />
<txp:body />
</txp:if_article_list>
<txp:comments_invite />
</div>
<div class=“reading-right”><txp:permlink>But there is more…</txp:permlink>
</div>
</code>
What would go in the ARCHIVE page in order to display the full article?
I hope this is the last question I will pst. At least for today ;-O
You are very knowledgable and helpful. Thanks for everything!
Last edited by dada78 (2005-11-08 07:29:22)
Offline
#24 2005-11-08 07:39:24
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: From Troubleshooting forum: My comment form doesn't work...
If you use the default pages and forms, it works out of the box, you don’t need to do anything. Judging by what you’ve pasted here, you don’t need to do anything either.
Offline
Re: From Troubleshooting forum: My comment form doesn't work...
Somehow I have same issue on my site : the submit button has disappeared …but I do not remember what was the change I made to have this and the way to came in a previous state
Here is the trace I have :
<code>
<txp:css />
<txp:page_title />
<txp:link_to_home><txp:sitename /></txp:link_to_home>
<txp:sitename />
<txp:site_slogan />
<txp:article />
<txp:posted />
<txp:permlink><txp:title /></txp:permlink>
<txp:title />
<txp:author link=“0” />
<txp:category1 link=“y” />
<txp:comments_invite />
<txp:body />
<txp:comments />
<txp:ajw_comment_alt even=“alt” odd=”“ />
<txp:comment_name />
<txp:comment_permlink><txp:comment_time /></txp:comment_permlink>
<txp:comment_time />
<txp:message />
<txp:ajw_comment_alt even=“alt” odd=”“ />
<txp:comment_name />
<txp:comment_permlink><txp:comment_time /></txp:comment_permlink>
<txp:comment_time />
<txp:message />
<txp:if_comments_allowed>
<txp:comments_form msgcols=“50”/>
</txp:if_comments_allowed>
<txp:comments_form msgcols=“50”/>
<txp:text item=“name” />
<txp:text item=“email” />
<txp:text item=“message” />
<txp:comments_help />
<txp:if_individual_article>
<p>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /></txp:link_to_next>
</p>
</txp:if_individual_article>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
<txp:prev_title />
<txp:link_to_next><txp:next_title /></txp:link_to_next>
<txp:if_article_list>
<p>
<txp:older>Previous</txp:older>
<txp:newer>Next</txp:newer>
</p>
</txp:if_article_list>
<txp:cbs_category_list break=“li” wraptag=“li” showcount=“true”/>
<txp:jnm_recent_comments_unique break=“li” showcomments=“n” commlimit=“5” section=“Sports,Aventures,Presse” />
<txp:linklist form=“plainlinks” limit=“5” wraptag=“ul” break=“li” />
<txp:search_input label=“Recherche” size=“15” />
<txp:feed_link label=“RSS” flavor=“rss” wraptag=“li” />
<txp:feed_link label=“Atom” flavor=“atom” wraptag=“li” />
—>
</code>
Offline
#26 2005-11-09 22:45:34
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: From Troubleshooting forum: My comment form doesn't work...
The default forms, including comment_form, are available here.
Alex
Offline
Re: From Troubleshooting forum: My comment form doesn't work...
Yes, But I have checked and I do not see where the mistake come from
Offline
Re: From Troubleshooting forum: My comment form doesn't work...
I had the same problem and after reviweing the code of published page in the browser I found some stray <code><ol></code> and <code><li></code> tags but couldn’t find them in neither the form nor the page codes. So I updated the newest version of Textpattern and now the comment form seems to work.
Last edited by dada78 (2005-11-10 06:16:59)
Offline
Re: From Troubleshooting forum: My comment form doesn't work...
ok! will update from 4.0.1 to 4.0.2
Offline
Re: From Troubleshooting forum: My comment form doesn't work...
Just checked my published archive page and the comment form sure works but some weird tags are still showing and messing up my layout! Strange enough they are nowhere to be found in my html structure or forms!!! Where are these coming from???
This is waht is displayed in the code on the published page:
<code>
<ol class=“comments”><li><!— comment area start —>
<div class=“comment-container”>
<ul>
<li><a href=“http://example.com” title=“example.com”>Donald Swain</a></li>
<li>Jul 22, 03:11 PM</li>
</ul>
<p>I enjoy your site very much.</p>
<!— comment area end —>
</div>
</li></ol>
</code>
These don’t belong:
<code><ol class=“comments”><li></code> AND <code></li></ol></code>
HEEELP!
Last edited by dada78 (2005-11-10 06:47:55)
Offline