Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-06-15 23:56:33

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Stray characters in comment-form field.

I couldn’t find this anywhere (if it is somewhere obvious I apologize).

I am getting some stray characters appearing in the comment form when viewing an individual article. What is happening is when you view an article that has commenting enables, the commentor’s name, email and website fields have ‘nnn’, nnnn’ and ‘nnn’ respectively appearing in them.

I’m probably missing something pretty basic. The test site is at <a href=“http://www.ve1cbf.ca/ve1cbf” title=“VE1CBF – The Yak Shack”>http://www.ve1cbf.ca/ve1cbf</a>. Either of the top two articles have comments enabled so you can see the form in action.

The following is the comment_form I am using:

<code>
<div>
<br />
<hr style=“width: 50%; text-align: center;” /><br />
<txp:if_comments_error>
<txp:comments_error wraptag=“ul” break=“li” />
</txp:if_comments_error>
<table cellpadding=“3” cellspacing=“3” border=“0”><tbody>
<tr>
<td align=“right” valign=“top”><label for=“name”><txp:text item=“Author:” /></label></td>
<td valign=“top” align=“left”><txp:comment_name_input /></td>
<td align=“right” valign=“top”><label for=“email”><txp:text item=“E-Mail: “ /></label></td>
<td valign=“top” align=“left”><txp:comment_email_input /></td>
</tr>
<tr>
<td align=“right” valign=“top”><label for=“web”>Web Site: </label></td>
<td valign=“top” align=“left”><txp:comment_web_input /></td>
<td valign=“top” align=“center” colspan=“2”><txp:comment_remember /></td>
</tr>
<tr>
<td valign=“top” align=“right”><label for=“message”><txp:text item=“Comment: “ /></label></td>
<td valign=“top” colspan=“3”><txp:comment_message_input /></td>
</tr>
<tr>
<td align=“right” valign=“top”>&nbsp;</td>
<td valign=“top” align=“left”><txp:comments_help /></td>
<td align=“right” valign=“top”><txp:comment_preview /><txp:comment_submit /></td>
<td align=“right” valign=“top”>&nbsp;</td>
</tr>
</tbody></table>
<br /><hr style=“width: 50%; text-align: center;” /><br />
</div>
</code>

Last edited by NyteOwl (2006-06-15 23:57:47)


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

#2 2006-06-16 00:23:48

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

Re: Stray characters in comment-form field.

Er, I don’t see any ‘n’s?

Offline

#3 2006-06-16 00:38:45

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: Stray characters in comment-form field.

Very strange. <a href=“http://www.caisteal.net/misc/commentformcapture.jpg”>Here’s what I see .</a>


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

#4 2006-06-16 00:59:51

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

Re: Stray characters in comment-form field.

That’s weird. Yeah, I don’t see those at all, the form looks like it’s supposed to.

I’ve checked in Firefox, Opera and IE. No n’s. Do you have more than one browser you can check in?

Offline

#5 2006-06-16 01:29:35

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: Stray characters in comment-form field.

OK, I found the problem with the “nnnn”. I had experimented in entering some test comments earlier and it saved the state information in a cookie. Mea Culpa :(

Unfortuantely the form doesn’t look right in IE or Opera for a different reason. In IE and Opera it shows an entire input field rather than a simple checkbox.

<a href=“http://www.caisteal.net/misc/ieform.jpg”> IE </a>
<a href=“http://www.caisteal.net/misc/operaform.jpg”> Opera </a>

Is there any way to manipulate the <code><txp:comments_remember /></code> tag other than hacking the underlying code?

Last edited by NyteOwl (2006-06-16 01:34:04)


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

#6 2006-06-16 04:23:53

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

Re: Stray characters in comment-form field.

In IE and Opera it shows an entire input field rather than a simple checkbox… Is there any way to manipulate the <txp:comments_remember /> tag other than hacking the underlying code?

Sure. It’s because of the CSS you’re using for the input element. Just an addition:

input#remember, input#forget {
margin-right: 5px;
width: auto;
background-color: inherit;
border: none;
}

:)

Offline

#7 2006-06-16 19:35:03

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: Stray characters in comment-form field.

OI! That will teach me to try and find problems on 2 hours sleep. Thanks Mary :)


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

Board footer

Powered by FluxBB