Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-05 22:13:15

KurtRaschke
Plugin Author
Registered: 2004-05-16
Posts: 275

Table-less comment form

Has anyone reworked the default TXP comment form so that it doesn’t use tables for positioning, and if so, would they care to share their code?

-Kurt


kurt@kurtraschke.com

Offline

#2 2005-12-06 02:50:35

Infi
Member
Registered: 2005-05-28
Posts: 75

Re: Table-less comment form

Here’s an interesting take: aplus – Styling forms
And another: CSS Only, Table-less Forms
And another: Form Layout Templates

Actually, try this: Form Elements … Lots more there.

Hope this helps.

Offline

#3 2005-12-06 03:28:41

reid
Member
From: Atlanta, Ga.
Registered: 2004-04-04
Posts: 224
Website

Re: Table-less comment form

And there’s this one from Paul Armstrong specifically for Txp, though it needs some help to work in IE below certain widths.


TextPattern user since 04/04/04

Offline

#4 2005-12-06 08:59:26

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Table-less comment form

The one I use on my site is complicated by the “if_cookie” plug-in but I use this simple version in my ports:-

<code>
<h3 id=“postcomment”>Leave A Reply</h3>
<p><label for=“name”><txp:text item=“name” /></label><br /><txp:comment_name_input /></p>
<p><label for=“email”><txp:text item=“email” /></label><br /><txp:comment_email_input /></p>
<p><label for=“web”>website</label><br /><txp:comment_web_input /></p>
<p><txp:comment_remember /></p>
<p><txp:comments_help /></p>
<p><txp:comment_message_input /></p>
<p><txp:comment_preview /> <txp:comment_submit /></p></code>
<br />

Of course you could get tetchy about semantics and accessibility but that’s something for you to decide on. It is very easy to style and it does validate Strict. In fact the one on my site validates to 1.1 and this version might well do too.

Last edited by thebombsite (2005-12-06 09:00:56)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#5 2005-12-12 03:49:47

paularms
Member
From: University of Minnesota
Registered: 2004-10-21
Posts: 155
Website

Re: Table-less comment form

Regarding my comment form that Reid has pointed at, the issues with IE stem from the sibling selectors (in the CSS) and a weird bug that IE has a pixel-jog on the right-side of textarea objects.

Offline

Board footer

Powered by FluxBB