Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#781 2010-06-08 22:51:10

spgriffee
Member
Registered: 2004-12-21
Posts: 38
Website

Re: zem_contact_reborn 4.0.3.20

Is there any way to add an attribute to zem_contact inputs such as type="email"?

Eg: <txp:zem_contact_email type="email" />

Offline

#782 2010-06-10 09:33:30

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

Re: zem_contact_reborn 4.0.3.20

Simon, that’s a HTML5 attribute. You can edit the plugin to make that change. HTML5 is still in development, as I understand it.

Offline

#783 2010-06-10 09:50:31

spgriffee
Member
Registered: 2004-12-21
Posts: 38
Website

Re: zem_contact_reborn 4.0.3.20

Rudd, thank you. I am trying to make form fields more friendly toward the ipad.

Offline

#784 2010-06-10 10:21:16

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: zem_contact_reborn 4.0.3.20

Simon, untested on this particular tag, but if you don’t like to hack zcr try rah_replace


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#785 2010-06-10 11:27:25

spgriffee
Member
Registered: 2004-12-21
Posts: 38
Website

Re: zem_contact_reborn 4.0.3.20

Uli,

Thank you for the suggestion—it worked!

I used the following code and the input was changed from type=“text” to type=“email”:

<txp:rah_replace from="text" to="email"><txp:zem_contact_email label="Your Email" size="35" /></txp:rah_replace>

I also tested the email form with the word ‘text’ in an email address and it was not affected, so all is good. Thanks again (and thanks for rah_replace, Jukka—I can see it may be very useful in other situations)!

Offline

#786 2010-06-10 12:50:01

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: zem_contact_reborn 4.0.3.20

spgriffee wrote:

I can see it may be very useful in other situations

Yup. It is :)
OT: For those other situations you can search for more unambiguous phrases by combining single and double apostrophes like in

<txp:rah_replace from='type="text"' to='type="email"'><txp:zem_contact_email label="Your Email" size="35" /></txp:rah_replace>

In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#787 2010-06-10 14:17:09

spgriffee
Member
Registered: 2004-12-21
Posts: 38
Website

Re: zem_contact_reborn 4.0.3.20

Uli,

Thanks, that is good to know!

Cheers!

Offline

#788 2010-06-14 19:27:28

ibob
Member
From: Finland
Registered: 2010-06-14
Posts: 35

Re: zem_contact_reborn 4.0.3.20

For some reason i cant get zem_contact_reborn to send any mail. It did send one mail but only once.

After submit it shows that everything is okay but mail never arrives.
I’ve been trying to fix this for few days, found few html -errors, fixed em but didnt seem to help and i’m not getting any errors so its getting frustrating.

Here’s the stuff in page:

<txp:zem_contact to_form="my_zem_contact_to_form" label="" thanks="Kiitos yhteydenotostasi!">
<txp:zem_contact_select label="Haluan" list="lähettää palautetta,kysyä tuotteesta" /><br />
<txp:zem_contact_textarea label="Palautteeni on" rows="6" />
<txp:zem_contact_text label="Nimesi on" />
<txp:zem_contact_text label="Puhelinnumerosi on" required="0"  />
<txp:zem_contact_email label="Sähköpostiosoitteesi on"  />
<txp:zem_contact_checkbox label="Haluan jatkossa saada tietoja ajankohtaisista asioista." required="0" />
<txp:zem_contact_submit><img src="/img/button_laheta.gif" alt="submit"></txp:zem_contact_submit>
</txp:zem_contact>

And here’s the form (my_zem_contact_to_form – type: misc):

<txp:php>
  global $zem_contact_form;
  switch($zem_contact_form['Haluan'])
  {
    case 'lähettää palautetta':
      echo 'mikko.rajala(t)liekeissa.com';
      break;
    case 'tiedustella tuotteesta':
      echo 'mikko.rajala(t)liekeissa.com';
      break;
    default:
      echo 'mikko.rajala(t)liekeissa.com';
  }
</txp:php>

Any ideas? I’ve tried without form to=“mikko.rajala@liekeissa.com” but nothing.

Last edited by ibob (2010-06-14 19:33:51)

Offline

#789 2010-06-14 23:14:22

argentounce
New Member
Registered: 2010-06-14
Posts: 3

Re: zem_contact_reborn 4.0.3.20

Hello everyone I have a problem with the plugin. I would really appreciate your gentle help. I have two foms in a page, each one is a different block, called by include. Named contact_bottom and contact_side. The problem is, two emails are sent to my inbox, in other words the two forms are responding and sending email, and of course I am filing just one form. Any help? suggestions? Thanks in advance.

Contact sidebar

<txp:zem_contact to="contacto@edumac.com.mx" subject="Contacto eduMac: Formulario de la barra lateral" redirect="gracias_sidebar" label="">
<p><txp:zem_contact_text label="Nombre" break="" /></p>
<p><txp:zem_contact_email label="E-Mail" break="" /></p>
<p><txp:zem_contact_select list=" ,Copilco,Condesa,Interlomas,Lomas Verdes,Lindavista,Reforma" name="Sucursal" label="Sucursal" /></p>
<p><txp:zem_contact_select list=" ,Diplomado Diseño Grafico,Diplomado Diseño Web, Curso Avanzado de Web, Diplomado Fotografía, Curso Modelado Arquitectónico, Curso Diseño Gráfico,Curso Ilustración Digital,Curso Diseño Web,Curso Sistema Operativo,Diplomado Video Digital,Diplomado ProTools,Curso ActionScript,Diplomado Maya Básico,Diplomado Maya Avanzado,Curso After Effects,Diplomado Reason,Curso Preprensa, Curso Efectos Especiales PS" name="diplomado_o_curso" label="Interesado en" /></p><br />
<p><txp:zem_contact_textarea label="Comentarios" break="" cols="20" /></p>
<txp:zem_contact_submit label="enviar" />
<txp:zem_contact_serverinfo name="HTTP_REFERER" label="Forma enviada desde" />
</txp:zem_contact>

Contact Bottom

<txp:zem_contact to="contacto@edumac.com.mx" subject="eduMac forma columna central" redirect="gracias_bottom" label="">
<p><txp:zem_contact_text label="Nombre" break="" /></p>
<p><txp:zem_contact_email label="E-Mail" break="" /></p>
<p><txp:zem_contact_select list=" ,Diplomado Diseño Grafico,Diplomado Diseño Web, Curso Avanzado de Web, Diplomado Fotografía, Curso Modelado Arquitectónico, Curso Diseño Gráfico,Curso Ilustración Digital,Curso Diseño Web,Curso Sistema Operativo,Diplomado Video Digital,Diplomado ProTools,Curso ActionScript,Diplomado Maya Básico,Diplomado Maya Avanzado,Curso After Effects,Diplomado Reason,Curso Preprensa, Curso de Efectos Especiales en Photoshop" name="diplomado_o_curso" label="Interesado en" /></p><br />
<p><txp:zem_contact_select list=" ,7:00 a 9:00,9:00 a 12:00,12:00 a 15:00,16:00 a 19:00,19:00 a 22:00,Sábado de 9:00 a 16:00,Curso de Domingo" name="Horario" label="Horario" /></p>
<p><txp:zem_contact_select list=" ,Copilco,Condesa,Interlomas,Lomas Verdes,Lindavista,Reforma" name="Sucursal" label="Sucursal" /></p>
<p><txp:zem_contact_textarea label="Comentarios" break="" /></p>
<txp:zem_contact_submit label="enviar" />
<txp:zem_contact_serverinfo name="HTTP_REFERER" label="Forma enviada desde" />
</txp:zem_contact>

Last edited by argentounce (2010-06-15 04:37:00)

Offline

#790 2010-06-15 15:34:50

ibob
Member
From: Finland
Registered: 2010-06-14
Posts: 35

Re: zem_contact_reborn 4.0.3.20

ibob wrote:

For some reason i cant get zem_contact_reborn to send any mail. It did send one mail but only once.

We found out that this is a mailserver issue, everything with zem_contact_reborn is working fine.

Offline

#791 2010-06-15 19:59:24

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

Re: zem_contact_reborn 4.0.3.20

argentounce wrote:

Hello everyone I have a problem with the plugin. I would really appreciate your gentle help. I have two foms in a page, each one is a different block, called by include. Named contact_bottom and contact_side. The problem is, two emails are sent to my inbox, in other words the two forms are responding and sending email, and of course I am filing just one form. Any help? suggestions? Thanks in advance.

I’m guessing this is either an old version of zem_contact_reborn, which didn’t yet support multiple forms per page, or it’s zem_contact, which is a completely different plugin.

Offline

#792 2010-06-17 03:10:11

argentounce
New Member
Registered: 2010-06-14
Posts: 3

Re: zem_contact_reborn 4.0.3.20

ruud wrote:

I’m guessing this is either an old version of zem_contact_reborn, which didn’t yet support multiple forms per page, or it’s zem_contact, which is a completely different plugin.

Thanks for your answer. Im using version 4.0.3.16 Where I can find if this version support multiple forms? Thanks!

Last edited by argentounce (2010-06-17 03:11:00)

Offline

Board footer

Powered by FluxBB