Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#85 2007-01-22 09:21:34

forgethisname
New Member
Registered: 2007-01-22
Posts: 5

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Excuse me if this has been answered already but I can’t find a solution in the forums.

I have a validation error: ID “Excellent” already defined.
I’m creating a feedback form with radio buttons i.e.

<p>What was your overall experience like?</p>
<txp:zem_contact_radio name="overall" label="Excellent" /><br />
<txp:zem_contact_radio name="overall" label="Good" /><br />
<txp:zem_contact_radio name="overall" label="Satisfactory" /><br />
<txp:zem_contact_radio name="overall" label="Poor" /><br />
<txp:zem_contact_textarea name="comment_overall" label="Tell us about your experience" max=1024 rows=3 cols="45" />
<p>How did you find the coffee?</p>
<txp:zem_contact_radio name="coffee" label="Excellent" /><br />
<txp:zem_contact_radio name="coffee" label="Good" /><br />
<txp:zem_contact_radio name="coffee" label="Satisfactory" /><br />
<txp:zem_contact_radio name="coffee" label="Poor" /><br />

How do I get a unique ID for the radio buttons without changing the label value?

Any advice would be much appreciated.

(Using ZCR 4.0.3.18 on 4.0.4)

Offline

#86 2007-01-22 09:39:35

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

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

forgethisname, I suppose this problem only occurs with radio buttons because for all other form fields the name attribute can be used to create unique IDs. I’ll combine the name+label of the radio button to create a unique ID in the next version of ZCR (should be ready within a few weeks, still busy cleaning up the help). Thanks for pointing this out!

Offline

#87 2007-01-22 09:55:14

forgethisname
New Member
Registered: 2007-01-22
Posts: 5

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Thanks Ruud, that would be great.

Offline

#88 2007-01-22 18:27:07

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

>rudd
Sorry to leave this so long, but I forgot to subscribe to this thread.

Here’s what’s happening…

  1. When the user hits send it produces a 500 page.
  2. It sends a copy to the user (as per copysender)
  3. It does not send a copy to the “to” person.

my ZCR call:

<txp:zem_contact to="a@bcd.com" copysender="yes" form="page-email" />

my ZCR form:

<txp:zem_contact_text break="" label="Name" />
<txp:zem_contact_email break="" label="Email" />
<txp:zem_contact_text break="" label="Phone" required="no" />
<txp:zem_contact_textarea break="" label="Message" rows="5" />
<span class="button"><txp:zem_contact_submit label="Send to C*2" /></span>

Not Sure what’s happening. I’m at TextDrive and all otrher versions of ZCR have worked as implemented

Offline

#89 2007-01-22 19:00:25

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

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

mrdale, what happens if you don’t use copysender and/or if you use the built-in standard form?

No need to be sorry, it took me till yesterday to answer your question (I don’t subscribe either).

Last edited by ruud (2007-01-22 19:01:37)

Offline

#90 2007-01-22 19:05:09

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

>rudd

Same result on both counts

[update] Looks like it is specific to a “to” email. l perhaps it is blacklisted by ISP or someplace else?

Last edited by mrdale (2007-01-22 19:09:38)

Offline

#91 2007-01-23 07:31:52

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

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

That could make mail delivery fail, but the local mailserver should still accept the mail and attempt to send it. And even if the local mailserver didn’t accept it, it shouldn’t cause a HTTP 500 error. Yet it does. If you can be sure that it is the TO email address, perhaps you can try a minimal custom PHP script that just sends and email to that address. If that crashes as well, at least we know it’s not something in ZCR that’s buggy:

<?php mail('to@example.com', 'my subject', 'my message'); ?>

Last edited by ruud (2007-01-23 07:32:14)

Offline

#92 2007-01-23 15:45:20

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

ruud wrote:

zanza, let me think about making customizable email messages. I think just one form will suffice, combined with a conditional tag to differentiate between recipients (to vs. cc)

Thanks ruud for thinking about that. It would be useful also for other related plugins, i.e, web-survey. This hypotetical plugin could build questions via your API, and at the end send a thanks mail to the user without all the data he filled.

And so on.

Bye

Z-

Offline

#93 2007-01-25 10:34:41

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

I upgraded my plugins, restyled css and made this simple form:

<txp:zem_contact to=“margusson@hot.ee”>
<txp:zem_contact_email />
<txp:zem_contact_text label=“Phone” min=7 />
<txp:zem_contact_textarea label=“Enquiry” />
<txp:zem_contact_submit label=“Enquire” />
</txp:zem_contact>

but I got this error:
Fatal error: Call to undefined function zem_contact_gTxt() in /www/06/muinasjutupidu.ee/textpattern/textpattern/lib/txplib_misc.php(512) : eval()’d code on line 12

Offline

#94 2007-01-25 10:37:36

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

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

gallex, I think you didn’t install zem_contact_lang or that plugin is not yet active.

Offline

#95 2007-01-25 11:10:02

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

ruud wrote:

gallex, I think you didn’t install zem_contact_lang or that plugin is not yet active.

of course I didn’t activate it!…idiot me , ohjah :)

Offline

#96 2007-01-25 14:34:29

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

please help me to style <txp:zem_contact_radio /> , <txp:zem_contact_select /> and <txp:zem_contact_checkbox /> in my form!

I’m watching my page source and I just don’t get it what classes I have to create. I’m going crazy allready :(

my page

opera actually displays all correctly, but ie and firefox doesn’t

Offline

Board footer

Powered by FluxBB