Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#241 2007-06-24 07:04:12

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

Hello Ruud,

I managed to create the columns I wanted with CSS:

.row { border: 0px; height: 40px;
}

.column1 { border: 0px; width: 200px; height: 40px; float: left; margin: 0; padding: 0;
}

.column2 { border: 0px; width: 400px; height: 40px; float: left; margin: 0; padding: 0;
}

How can I put the label in the first column and the inputbox in the second column?

At first I typed the name of the field in the first column, and the inputfield (f.i. <txp:zem_contact_text name=Naam label=” “ break=”“ required=1/>) in the second column. Unfortunatly the fieldname is not mentioned in the email anymore.

How can I solve this?

Last edited by keukenkikker (2007-06-24 07:38:17)

Offline

#242 2007-06-24 10:00:46

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

Re: zem_contact_reborn 4.0.3.19 (old version)

<div class="row"><txp:zem_contact_text label="Naam" break=" " /></div>
.row { border: 0px; height: 40px; }
.row label { border: 0px; width: 200px; height: 40px; float: left; margin: 0; padding: 0; }
.row input { border: 0px; width: 400px; height: 40px; float: left; margin: 0; padding: 0; }

Last edited by ruud (2007-06-24 10:01:22)

Offline

#243 2007-06-24 19:27:09

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

Thank you Ruud, it’s working perfectly!

Is it also possible to make an overview in columns?

Label field1 Label field2 Label field3
——————————————————————————-
Input field1 Input field2 Input field3
Input field4 Input field5 Input field6
Input field7 Input field8 Input field9
etc.

I would like to use a separate contactform to register courses. Each course has a code, a description and a pricefield to fill out (3 fields). Visitors kan sign up to 5 courses at once (5 rows).

Kind regards,
Sharon

Offline

#244 2007-06-24 20:52:20

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

Re: zem_contact_reborn 4.0.3.19 (old version)

Hmm… currently, the only way I can think of doing that is using a table, manually add the labels in the top row, and hide the labels for the input fields using CSS.

Offline

#245 2007-06-25 17:33:35

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

Ruud, wonder if you can advise on best practice….

I have a site with various ZCR forms. In the resulting emails, I would like to specify where the enquiry form is coming from, for example, the products form or the sales form.

My worry is that the “User selectable subject field” might be incorrectly filled by the user submitting the form, so its best we set it our end.

For example, if sending the form from the products page, something like this in the email:

Products > Inquiry

Do you advise using the zem_contact_secret value for this, or another way?

Edit: zem_contact_secret works great in the email, guess my question would now be what is the best way to change the “subject” line for each form, without making it user-selectable (which might be prone to error if the user selects the wrong item…!!)

Last edited by jstubbs (2007-06-25 17:49:00)

Offline

#246 2007-06-25 21:35:03

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

Re: zem_contact_reborn 4.0.3.19 (old version)

If you don’t mind having the secret field in both subject as in the email itself, use subject form containing this (assuming ‘secret’ is the attribute value of the ‘zem_contact_secret’ name attribute):

<txp:php>echo $GLOBALS['zem_contact_values']['secret'];</txp:php>

Offline

#247 2007-06-26 15:05:35

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,626
GitHub Twitter

Re: zem_contact_reborn 4.0.3.19 (old version)

Hi Ruud.

Just one question : how many zem_contact_secret tags can be used within a mail former?

I’m trying to used many secret tags but I have always only the last one in my e-mail.

Regards,


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#248 2007-06-26 16:47:57

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

Re: zem_contact_reborn 4.0.3.19 (old version)

As long as you set the name for each of the secret tags to a different value, there should be no limit.

Offline

#249 2007-06-26 16:51:51

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,626
GitHub Twitter

Re: zem_contact_reborn 4.0.3.19 (old version)

Fine!


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#250 2007-06-27 05:49:56

castanet
Member
From: Oxford
Registered: 2005-03-19
Posts: 97

Re: zem_contact_reborn 4.0.3.19 (old version)

Thanks for a great plugin. Is it possible to attach a file to the message? Sorry if this has been answered elsewhere – I couldn’t find it.

Offline

#251 2007-06-27 10:01:36

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

Re: zem_contact_reborn 4.0.3.19 (old version)

No, attaching a file would require the email to be MIME encoded, while we currently use a normal plain/text email. It’s not impossible to write such a thing, but it does add a lot of extra complexity.

Last edited by ruud (2007-06-27 10:01:56)

Offline

#252 2007-06-27 13:27:36

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,626
GitHub Twitter

Re: zem_contact_reborn 4.0.3.19 (old version)

…[deleted] post error…

Last edited by Pat64 (2007-06-27 17:55:39)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

Board footer

Powered by FluxBB