Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-11-08 00:16:28

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: From Troubleshooting forum: My comment form doesn't work...

Can you post a tag trace from a page containing your comment form please? See the sticky post for details.


Alex

Offline

#14 2005-11-08 01:32:42

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

Re: From Troubleshooting forum: My comment form doesn't work...

Whoopsie, missed that rogue textarea tag.

Did your form work before you tried changing it? or did you not check then?

Offline

#15 2005-11-08 04:03:32

dada78
Member
From: New York
Registered: 2005-10-27
Posts: 138
Website

Re: From Troubleshooting forum: My comment form doesn't work...

Thanks guys.
Here is the tag trace:

<code>
<!— txp tag trace:
<txp:link_to_home>Home</txp:link_to_home> —>
</code>

Does this mean the comment form doesn’t work because I have a link in there to the index?

Offline

#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

#17 2005-11-08 05:38:43

dada78
Member
From: New York
Registered: 2005-10-27
Posts: 138
Website

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

#19 2005-11-08 06:07:12

dada78
Member
From: New York
Registered: 2005-10-27
Posts: 138
Website

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

#21 2005-11-08 06:37:51

dada78
Member
From: New York
Registered: 2005-10-27
Posts: 138
Website

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

#23 2005-11-08 07:28:09

dada78
Member
From: New York
Registered: 2005-10-27
Posts: 138
Website

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

Board footer

Powered by FluxBB