Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Plug-in: zem_contact_reborn

#433 2006-04-01 03:15:57

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Plug-in: zem_contact_reborn

Stuart,
I’ve got another one for ya (the name= worked fine by the way = thanks)

Why am I getting a validation error and how can I fix it? I’m stumped.
Its an “input” type error, but must have something to do with the layout of my form?

See here for invalid page:

Here’s the TXP code I am using:

<code>
<div id=“comment_form”>

<div class=“right”>
<p><txp:comment_message_input /></p>
<p><txp:comment_preview /> <br/><txp:comment_submit /></p>
</div>

<div class=“left”>
<txp:if_comments_error>
<txp:comments_error class =“cpreview” break=“br” wraptag=“p” />
</txp:if_comments_error>
<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 /> my info please</p>
<p><txp:comments_help /></p>
</div>
</div>
<div class=“clear”></div>
</code>

Any ideas?


Offline

#434 2006-04-01 06:17:28

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Plug-in: zem_contact_reborn

ma_smith wrote:

)

Why am I getting a validation error and how can I fix it? I’m stumped.
Its an “input” type error, but must have something to do with the layout of my form?

That’s because the two hidden input elements used for the comment form are not wrapped by block level elements.
That’s a rather a TXP native problem.
The comment form does this, not the plugin.

regards, marios

Last edited by marios (2006-04-01 06:18:28)


⌃ ⇧ < ⌃ ⇧ >

Offline

#435 2006-04-01 06:31:00

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Plug-in: zem_contact_reborn

Now ,I have another question,may be I have overlooked something, but:

WHERE can I customize my e-mail template,???

The only submission data that I receive back , is name e-mail and message.
And then I would like to customize allso an e-mail template, with specific data that gets diplayed only in the body of the e-mail,
inbetween the submission data.

BTW.: The subject field allways returns Inquiry regardless if you specify your own or not.

regards marios

Last edited by marios (2006-04-01 07:43:12)


⌃ ⇧ < ⌃ ⇧ >

Offline

#436 2006-04-01 10:55:55

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

Re: Plug-in: zem_contact_reborn

@Matthew – I’m not sure what you have done there. The 2 hidden fields at the bottom should still be sitting inside the <code><div id=“comment_form”></code> div tag but you seem to have managed to drag them outside it. :(

How did you manage that?


Stuart

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

Offline

#437 2006-04-01 12:13:08

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Plug-in: zem_contact_reborn

Still testing,another problem:
I get the following error messages even if all forms get filled:
Required field, “Message”, is missing.
Required field, “play data”, is missing.
Required field, “CSS: ”, is missing.
Required field, “HTML: ”, is missing.
Required field, “PHP: ”, is missing.

For testing purposes, I use this form <code><div id=“emailform”>
<txp:zem_contact to=“dummy@tld.com” copysender=“yes” subject=“Greenplay.org Evaluation project” thanks_form=“mrs_contact_response” from=“greenplayproject”>
<p><txp:zem_contact_text label=“Name” size=“30” /></p>
<p><txp:zem_contact_email size=“30” /></p>
<p><txp:zem_contact_text label=“Subject” required=“no” size=“30” /></p>
<p><txp:zem_contact_textarea label=“message” name=“comments” /></p>
<p><txp:zem_contact_text label=“mobile” min=“7” /></p>
<p><txp:zem_contact_textarea label=“play data” name=“play data” /></p>
<p>What coding experience do you have?</p>
<txp:zem_contact_select label=“CSS: “ list=”,None,Okay,Guru” />
<txp:zem_contact_select label=“HTML: “ list=”,None,Okay,Guru” />
<txp:zem_contact_select label=“PHP: “ list=”,None,Okay,Guru” />
<p>What do you think of the site?</p>
<p><txp:zem_contact_radio name=“Site” label=“Bad” /></p> <txp:zem_contact_radio name=“Site” label=“OK” />
<p><txp:zem_contact_radio name=“Site” label=“Good” /></p>
<p>Have you found it useful?</p>
<p><txp:zem_contact_radio name=“Useful” label=“Yes” />
<txp:zem_contact_radio name=“Useful” label=“No” /></p>
<p><txp:zem_contact_submit label=“submit” /></p>
<p><txp:zem_contact_serverinfo name=‘HTTP_ACCEPT_CHARSET’ label=“charset” /></p>
</txp:zem_contact></div>
<!— close emailform —></code>

and I call it with an output form on the sections contact page.
Any Ideas ?

regards, marios

Last edited by marios (2006-04-01 12:14:13)


⌃ ⇧ < ⌃ ⇧ >

Offline

#438 2006-04-01 12:22:54

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

Re: Plug-in: zem_contact_reborn

@marios – I’m not sure if this is the cause but the “from” attribute in the <code><txp:zem_contact /></code> tag is supposed to be an email address.

Last edited by thebombsite (2006-04-01 12:23:24)


Stuart

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

Offline

#439 2006-04-01 12:35:24

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Plug-in: zem_contact_reborn

ok, just changed that, but still returns
Required field, “Message”, is missing.
Required field, “play data”, is missing.
allthough required=yes is not specified for those additional fields

regards


⌃ ⇧ < ⌃ ⇧ >

Offline

#440 2006-04-01 12:36:19

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

Re: Plug-in: zem_contact_reborn

Required=“yes” is the default so you need to set required=“no”.


Stuart

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

Offline

#441 2006-04-01 12:45:51

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Plug-in: zem_contact_reborn

I see, must have overlooked that, As you can see I started off from your default example form and started adding on one by one to see, what’s going wrong,but my impression is, each time it doesn’t fall back to the default form provided by the plugin, it won’t fetch the additional tags, that you specify(In the e-mail body)
I’m trying this on Textdrive,next I’ll try another host as well.

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#442 2006-04-01 12:53:01

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Plug-in: zem_contact_reborn

It is still complaining,about empty fields, allthough there aren’t any,
and it shouldn’t even without required=“no” attribute, no?

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#443 2006-04-01 13:20:18

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

Re: Plug-in: zem_contact_reborn

Mmmm. I’m wondering if having 2 “textarea” tags is causing a conflict. Would you like to try removing one of them and seeing what happens just as a test?


Stuart

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

Offline

#444 2006-04-01 13:38:52

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Plug-in: zem_contact_reborn

In the meanwhile bofore reading your reply, I went back all the I don’t know how many hundrets of posts, to scan for the suspicious symptoms,
This had been reported before, Destry reports so and soulship I thingk confirms it too.
Next I set all the required attribute values to yes,—> same result.
I now removed the socond textarea tag, —> same result.
I allso tried the tag combination on a different host.Same result.

To summarize,
1) Symptom No 1., if all fields have data, error message field requiered, no matter if attributes set to yes, no , or ommitted.
2)Symtom No2., field data does not make it into the e-mail body,(reported before as well)

I am allso repeatedly reading the plugin code in an attempt to try to understand, where the values of the variables change,
but no result yet (php=0)

Ah, before I forget it, the name variable is defined twice in the basic plugins functions Array,
(Is theree any special reason for that ?)

More symptoms:
3)Symptom No three, Subject headers in e-mails allways fall back to inquiry, regardless wether attribute specified or not

EDIT.: At least removing the default ‘yes’ values from the required array :variables prevent the error messages from beeing generated, but
that’s just a temporaryily solution.
regards, marios

Last edited by marios (2006-04-01 14:15:57)


⌃ ⇧ < ⌃ ⇧ >

Offline

  1. Index
  2. » Archives
  3. » Plug-in: zem_contact_reborn

Board footer

Powered by FluxBB