Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#436 2006-04-01 10:55:55
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
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
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
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
#445 2006-04-01 14:31:15
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Offline
#446 2006-04-01 14:34:10
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: Plug-in: zem_contact_reborn
Ok, I tell you what,
I ‘m going to start from the default fallback template, and build up attribute by attribute,
May be that brings us a little further after allmost 500 posts on this topic.
regards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#447 2006-04-01 15:03:32
Re: Plug-in: zem_contact_reborn
Sorry marios. I was going back through the thread to see what we were still missing. I’ve mentioned your problem to Tranquillo so hopefully he can spot something that may be wrong. From my point-of-view, other than that “from” attribute problem, I can’t see anything wrong with your form, indeed it is extremely similar to the one I test with isn’t it, so I’m a bit stumped. :(
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#448 2006-04-01 15:46:08
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: Plug-in: zem_contact_reborn
First test run with self enclosed default tag:
Results, starting from using just default self enclosing tag,
<h2>Attributes tested</h2>| Nr | Attributes | results | remarks |
| 1. | subject=“any” | passed | – |
| 2. | copysender=“yes” | passed | Feature request: It would be nice, if you could custumize the copy sender e-mail body that get’s returned with a form.E.g.: Your request has been quewed at speedy.com,we will act very quickly, You received this e-mail because,bla bla |
| 3. | form=“custom” | passed together with options 1. and 2. above | using output form with default form elements |
| 4. | from=“humphrey@borgard.com” | passed with options 1.,2.,3. | still same form elements |
| 5. | from_form=”?” | not tested | I still don’t understand the use of that one |
| 6. | Label=“any” | works | - |
| 7. | redirect=“testpage” | passed | - |
| 8. | send_article | I skip that for now | - |
| 9. | thanks_form | passed | - |
| 10. | to_form | passed | allthough again I don’t understand the use for this one |
| 11. | show_input & show_error | skip for now | I assume that can be used only on a page template, but does it work within an output form? Please confirm. |
<hr />
<h2>Adding more tags to contact form</h2>
| 12. | added <code> <txp:zem_contact_text /></code> with attr. label | fails | <del>no e-mails get sent out,</del> no error report message in this case, because I deleted the default values from array variables , EDIT.:strange, e-mail gets processed only for copysender but not for recipient,I think, this has been reported before as well, |
| 13. | same as above but with textarea | fails | - |
| 14. | same as above but copysender removed att removed | fails | no e-mail gets out |
| 15. | same as above, but this time with required=“yes” for all input fields except e-mail | fails | e-mail gets sent out, but instead of recipient, copysender receives,allthough the copysender attribute is still omitted . |
| 16. | Same as above, but this time with copysender attribute set to no | fails | e-mail goes to copysender instead |
| 17. | Same as above but removed to-form | passes | it seems as if the plugin uses the to form |
| 18. | added drop down list | passed | - |
Last edited by marios (2006-04-01 20:40:36)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#449 2006-04-01 18:39:03
Re: Plug-in: zem_contact_reborn
@marios:
The name attribute of the textarea called “play data” has a white space. Replace it with an underscore.
Doing that, the form works perfectly for me.
Please, note, that the zem_contact_text with the label “Subject” is not used as the subject of the email. You have to set the subject in the zem_contact tag.
Last edited by tranquillo (2006-04-01 18:44:47)
Offline
#450 2006-04-01 18:55:39
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: Plug-in: zem_contact_reborn
So far understood, allso verified above and works, but it seems as for now that adding any additional text input tag to the contact form, will stop the plugin from mailing to recipient, just copysender e-mail only is received.See above test results, Im still trying some more combinations and attributes to definitely verify this.
@tranquillo,
Is there any way, how we could implement an e-mail template form, like it has in mem_self_register?
that would be much more convenient to sort out the submission info on receival.
regards, marios
Last edited by marios (2006-04-01 19:05:53)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline