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

#511 2006-07-06 11:04:26

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Re: Plug-in: zem_contact_reborn

I’m building a contact page for a client using this plugin. The page in its current state can be seen here. I’ve got this code on a page:
<code>
<div id=“content”>
<txp:zem_contact to=“email addr protected” subject=“Find a SouthWare Dealer” copysender=“yes” form=“contact” label=”“ />
</div>
</code>

And, I’ve got this code in a form:
<code>
<p><txp:zem_contact_text required=“yes” label=“Name” /></p>
<p><txp:zem_contact_text required=“no” label=“Company Name” /></p>
<p><txp:zem_contact_text required=“no” label=“Address 1” /></p>
<p><txp:zem_contact_text required=“no” label=“Address 2” /></p>
<p><txp:zem_contact_text required=“yes” label=“City” /></p>
<p><txp:zem_contact_select list=” ,AL,AK,AZ,AR,CA,CO,CT,DE,etc” required=“yes” label=“State” /></p>
<p><txp:zem_contact_text required=“yes” label=“Zip” max=“10” /></p>
<p><txp:zem_contact_text required=“yes” label=“Telephone” /></p>
<p><txp:zem_contact_email required=“no” /></p>
What is your current system?
<p><txp:zem_contact_textarea required=“no” label=” “ /></p>
Why are you considering a change?
<p><txp:zem_contact_textarea required=“no” label=” “ /></p>
<p><txp:zem_contact_text required=“no” label=“Type of Business” /></p>
<p><txp:zem_contact_text required=“no” label=“Number of Users” /></p>
<p><txp:zem_contact_text required=“no” label=“Budget” /></p>
<p><txp:zem_contact_submit label=“Send” /></p>
</code>

Here are my questions:
  1. What can I do to get rid of all those validation errors?
  2. How do I add a “from address” to the email my client receives from a sender/submitter?
  3. How do I add “Thanks. Someone will contact you shortly.” to the email the page sends to a sender/submitter?

As always, thanks. Next, I’ve got to tackle the CSS. Any tips?


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#512 2006-07-06 13:11:27

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

Re: Plug-in: zem_contact_reborn

Its all in this forum 6sigma :)
Have a decent read through,
give yourself ten good minutes.
YOu’l find all your answers there.
If not, ask again.


Offline

#513 2006-07-06 19:59:02

akokskis
Plugin Author
From: Baltimore-ish, USofA
Registered: 2004-11-28
Posts: 230
Website

Re: Plug-in: zem_contact_reborn

maniqui wrote:

Is there any way to specify the sender’s name (usually, our name) in the “copysender” sent email?
I’m testing the contact form, and as “visitor”, I have received a copy of the e-mail. There, in the sender e-mail it shows: “info@mydomain.com”, but I would like something more personalized, like “Julián / Mydomain.com”.
Another reason for this request: there are services like Google Mail that, in the sender column, hides the domain of the e-mail address.
So, an address like “info@mydomain.com” looks like “info” <—very spam-look-like

I should think it’s very do-able. Can’t say that I’ve looked at the code at all, but I’m assuming that this uses the php mail() function, and the to parameter (and presumably any other email address related headers, such as sender / reply-to, etc) take emails in the RFC 2822 format. What that means, without having to look at that document, is that it should take a normal email, (<code>user@example.com</code>), or one with a name, (<code>User <user@example.com></code>).

So, it should be a slight change. Not really sure who’s maintaining the code (I know that I can’t read through this whole thread), but whoever’s doing it, I would suggest implementing this change.

As maniqui said, it would make it look a lot less spammy. And that’s always good.


My Photoblog, and my personal site. Got nav? ako_nav.
Thanks for taking the time to look…

— vc3 —

Offline

#514 2006-07-06 20:36:06

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: Plug-in: zem_contact_reborn

http://wufoo.com/ is a nice form alternative if you have a couple of $

Offline

#515 2006-07-07 01:38:12

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Re: Plug-in: zem_contact_reborn

marios wrote:

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.

I think someone-in-the-know was able to extract an answer from this, but can someone tell me more explicitly what to change to make sure the “input type of validation errors” go away. I’m still fighting with this problem. Thanks very much.


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#516 2006-07-07 04:02:58

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

Re: Plug-in: zem_contact_reborn

6sigma,
What’s your doctype?
What version of the plugin are you using?
What are your validation errors?

:)

Matthew


Offline

#517 2006-07-07 11:10:38

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Re: Plug-in: zem_contact_reborn

ma_smith wrote:

6sigma,
What’s your doctype?
What version of the plugin are you using?
What are your validation errors?

On this page, I’m faced with 14 errors:

doctype: <code><!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”></code>

version: zem_contact_reborn 4.0.3.17; zem_contact_lang 4.0.3.03; pap_contact_cleaner 0.1

errors: # Error Line 96 column 15: syntax of attribute value does not conform to declared value.
<code>
<p><label for=”“ class=” “> </label><br /><textarea id=”“ class=”“ name=”“ cols=
</code>
<em>The value of an attribute contained something that is not allowed by the specified syntax for that type of attribute. For instance, the “selected” attribute must be either minimized as “selected” or spelled out in full as “selected=“selected””; the variant “selected=”“” is not allowed.</em>


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#518 2006-07-07 12:51:14

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

Re: Plug-in: zem_contact_reborn

6sigma,

try this thread.

for css, I’d drop the bottom padding in the p tags that surround your labels.
maybe 8px would do the trick, or if you need to continue working with ems,
find a lower amount.

otherwise, the form is looking good. coming along.

I still submit, that this stuff was findable through searching.
Your best bet for searching is not the forum search but a google search, which can be made easier

I typed in the words “zem contact select”, and then “zem contact validation” and found the answer above in seconds.
Just FYI. Folks are here to help. Definitely. But we can help more, when you’ve done some good searching on your own too.
If its seems like I’m grumpy… I probably am today :)

Good luck bro.


Offline

#519 2006-07-08 06:34:32

6sigma
Member
From: Memphis, TN, USA
Registered: 2004-05-24
Posts: 184
Website

Re: Plug-in: zem_contact_reborn

Thanks, Matthew. After a day that began at 7:00a.m. and ended at 1a.m. the next morning with no breaks, grumpy is probably the way my weekend will go. But, hey, I got to talk to three guys at Microsoft named Ankit, Kapil and Rakesh. The problem they couldn’t solve will resume on Monday.

You – on the other hand – have pointed me to valuable help. I appreciate it.


“Well, I, uh, don’t think it’s quite fair to condemn a whole program because of a single slip-up, sir.” General ‘Buck’ Turgidson

Offline

#520 2006-07-12 17:10:06

jbrew
Member
From: Imperial Beach, California
Registered: 2004-03-04
Posts: 78
Website

Re: Plug-in: zem_contact_reborn

Is there any way to send the email to mulitple receipients using this plug-in? I have been searching all over the forum and cant find anything about doing this.

Thanks.


To even the least of these…

Offline

#521 2006-07-14 23:52:25

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plug-in: zem_contact_reborn

@jbrew: multiple recipients are possible. Simply use a comma to separate the recipients.

Perhaps I’m doing something wrong, but I can’t get ‘checked=“yes”’ working for the checkbox tag. Looking at the code, I see these two lines in the checkbox function:

<notextile>
<pre><code>$value = ps(‘zem_contact_submit’) ? (bool) ps($name) : ‘’;
( ( ($checked = = ‘yes’) and $value) ? ‘ checked=“checked” />’ : ‘ />’).$break.</code></pre>
</notextile>

From what I understand, $value is an empty string if the form is not being submitted (displayed instead), so (checked = = ‘yes’ and $value) cannot be true if the form is just displayed.
Shouldn’t that first line be something like this:

<notextile><pre><code>$value = ps(‘zem_contact_submit’) ? (bool) ps($name) : TRUE;</code></pre></notextile>

Last edited by ruud (2006-07-22 16:26:54)

Offline

#522 2006-07-15 13:04:48

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

Re: Plug-in: zem_contact_reborn

Is it possible to do a multi variable form that calls up parts of the form based on what is selected ia an drop down?


Grrr RRR nnndth grrr Skeek!

Offline

#523 2006-07-18 23:46:58

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: Plug-in: zem_contact_reborn

I wanted to second DaveR’s comment about keeping the auxiliary plugin API.

DaveR,

How’s your work coming on a plugin to post the data into mysql tables? I’m interested in perhaps repurposing your efforts for use with the Email-on-Post and Newsletter Manager plugins.

Thanks,

– Ben

Offline

#524 2006-07-19 03:22:15

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: Plug-in: zem_contact_reborn

Are there any good code examples of zem contact reborn. The documentation is confusing to me and I have I have browsed through this forum thread.

Maybe a tutorial or how to?


Art Rogue – Fine Art Photography

Offline

#525 2006-07-20 19:49:34

Plaz
Member
From: Minnesota
Registered: 2004-06-02
Posts: 33

Re: Plug-in: zem_contact_reborn

I am getting a site set up using the ZEM_CONTACT_REBORN plug-in. It’s working.

I am using it on a job site for users to inquire about particular jobs. What I want to do is to have the job title and job description sent in the email with the contact information that they submit, so that the person receiving the contact form data can make no mistake about which job the the site visitor was referring to.

How do I add the <txp:title/> and the <txp:body /> to the email that is sent?


If you want something you have never had, then you must be willing to do something you have never done.

Offline

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

Board footer

Powered by FluxBB