Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-13 23:30:54

terceiro
New Member
Registered: 2005-02-18
Posts: 4

txp:comment_submit broken?

I’m trying to turn my overly-ambitious, amateur site into something more boring. I’ve rolled back to the default templates, but the default comment template doesn’t work. Literally. There’s no input button, nor even one generated in the processed page.

My form (straight off the textbook) , does indeed include the txp:comment_submit tag, but it is not generated.

Is this a known issue? Have I broken something? Help!

Offline

#2 2006-11-13 23:41:18

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: txp:comment_submit broken?

Make sure you have both of these in:

<txp:comment_preview /> <txp:comment_submit />

you can’t remove the preview button.

Offline

#3 2006-11-14 00:47:02

terceiro
New Member
Registered: 2005-02-18
Posts: 4

Re: txp:comment_submit broken?

Yeah, I’ve got them both comment_preview and comment_submit in there. I’m using the default form, without modification, from textbook: http://textpattern.net/wiki/index.php?title=Default_Forms#comment_form.

If you want to see the output, see http://12easypieces.com/2006/11/11/on-internet-procrastination

Offline

#4 2006-11-14 01:10:32

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

Re: txp:comment_submit broken?

Post a tag trace, please.

Offline

#5 2006-11-14 03:35:59

terceiro
New Member
Registered: 2005-02-18
Posts: 4

Re: txp:comment_submit broken?

Here’s the tag trace.

<!— txp tag trace:
<txp:page_title />
<txp:css />
<txp:link_to_home><txp:sitename /></txp:link_to_home>
<txp:sitename />
<txp:search_input label=“Search” wraptag=“p” />
<txp:feed_link label=“RSS” />
<txp:feed_link flavor=“atom” label=“Atom” />
<txp:article />
<txp:permlink><txp:title /></txp:permlink>
<txp:title />
<txp:posted />
<txp:body />
<txp:comments_invite wraptag=“p id=comments_main” />
<txp:site_url />
<txp:comments_invite textonly=“1” showalways=“1” showcount=“0” />
<txp:comments />
<txp:if_comments_preview>
<div id=“cpreview”>
<txp:comments_preview />
</div>
</txp:if_comments_preview>
<txp:if_comments_allowed>
<txp:comments_form />
<txp:else />
<p><txp:text item=“comments_closed” /></p>
</txp:if_comments_allowed>
<txp:comments_form />
<txp:comments_error wraptag=“ul” break=“li” />
<txp:text item=“comment_name” />
<txp:text item=“comment_email” />
<txp:text item=“comment_web” />
<txp:text item=“comment_message” />
<txp:comments_help />
<txp:if_individual_article> <p class=“prevnext”><txp:link_to_prev>&lt; <txp:prev_title /></txp:link_to_prev> | <txp:link_to_next><txp:next_title /> &gt;</txp:link_to_next></p>
<txp:else /> <p class=“prevnext”><txp:older>Previous</txp:older> <txp:newer>Next</txp:newer></p>
</txp:if_individual_article>
<txp:link_to_prev>&lt; <txp:prev_title /></txp:link_to_prev>
<txp:prev_title />
<txp:link_to_next><txp:next_title /> &gt;</txp:link_to_next> secondpass

—>

And there ya go. I notice that the tag trace does not include the comment_submit tag in the list. It is there in the comment_form form, as I mentioned previously, exactly cut-and-pasted from the default template at textbook. I won’t bother with the whole form, but the relevant section (I think) is:

<td align=“right”> <txp:comment_preview /> <txp:comment_submit /> </td>


Which is what they have at textbook (the code above is copied from my own template, just to make sure I really did have it there).

by the way, the top of the page gave me a warning:

tag_error <txp:comments_error wraptag=“ul” break=“li” /> -> Textpattern Warning: unknown_tag

Which is undoubtedly true, but hey, I got the tag from the default template.

Does this help?

—jw

Offline

#6 2006-11-14 09:42:21

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: txp:comment_submit broken?

Is it possible that your installation is not uptodate (v4.0.4)? If so, please update first (there have been considerable improvements to comment-handling).

Offline

#7 2006-11-14 14:07:32

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

Re: txp:comment_submit broken?

One mistake I found, though I don’t think it is causing the problem:

<txp:comments_invite wraptag="p id=comments_main" />

The “p” is missing a closing quotation mark.

Offline

#8 2006-11-18 02:25:01

terceiro
New Member
Registered: 2005-02-18
Posts: 4

Re: txp:comment_submit broken?

I am ashamed to discover that the problem was that I was running 4.0.2. Apparently, those loonies over at textbook are so on the ball, they’ve already updated their templates to work in 4.0.4 only. As soon as I upgraded, everything worked.

Score one for the good guys.

suggestion: For dopes like me, seeking help, you might want to include the version number in the tag trace. Just, you know, in case.

Sencer wrote:

Is it possible that your installation is not uptodate (v4.0.4)? If so, please update first (there have been considerable improvements to comment-handling).

Last edited by terceiro (2006-11-18 02:27:14)

Offline

Board footer

Powered by FluxBB