Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-03-09 10:07:35

daphna
Member
Registered: 2009-02-22
Posts: 18

please help me understand this erroe

i’m in the process of adding the zem contact form.

i get this error :
Tag error: <txp:zem_contact_textarea rows=“10” cols=“30” label=“Message” required=1 /> -> Textpattern Warning: Attribute values must be quoted on line 916

(At the top page)

i have no idea what it means tho, can anyone help ?
(line 916 of what ? :-/)

thx

Offline

#2 2009-03-09 10:17:58

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,453
Website GitHub

Re: please help me understand this erroe

daphna wrote:

Textpattern Warning: Attribute values must be quoted on line 916

It means that any attributes you use in tags must have their values surrounded with double (or single) quotes. Look again at your zem_contact tag:

<txp:zem_contact_textarea rows="10" cols="30" label="Message" required=1 />

and compare it to this (correct) one:

bc. <txp:zem_contact_textarea rows="10" cols="30" label="Message" required="1" />

Notice that the ‘required’ value has quotes round it? Do that and the warning will disappear.

Since TXP 4.0.7, you need to make sure that all attributes conform to this convention. Some older plugins (written for TXP versions prior to 4.0.7) could get away without the quotes, so some examples in plugin documentation and on the fourm are now ‘incorrect’.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2009-03-09 10:32:36

daphna
Member
Registered: 2009-02-22
Posts: 18

Re: please help me understand this erroe

cool, fixed, thx.

still not getting the email tho. but i assume thats some more complicated problem.

i have another q, the labels of the contact form are awfully big.
can i add an internal syle in the form telling the font size to be Xpx ?
(what would be the code if its possible)

Offline

#4 2009-03-09 16:49:19

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: please help me understand this erroe

You can certainly style everything zem_contact_reborn puts out — everything gets one or more class names added automatically. There’s a helpful bit in the plugin help text on styling. You might have a CSS rule along the lines of:

label.zemRequired {font-size: 9px;}

Code is topiary

Offline

#5 2009-03-10 08:38:48

daphna
Member
Registered: 2009-02-22
Posts: 18

Re: please help me understand this erroe

worked. thx.

Offline

Board footer

Powered by FluxBB