Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#241 2008-02-26 21:20:05

Phlip
Member
Registered: 2005-03-10
Posts: 36

Re: zem_contact_reborn 4.0.3.20

I did that, getting this error:
Parse error: syntax error, unexpected ‘@’ in D… \txplib_misc.php(574) : eval()’d code on line 1

Offline

#242 2008-02-26 21:54:49

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

If you’re using ‘this’ type of quotes, it won’t work. Copy paste this:

ini_set('sendmail_from', 'user@domain.com');

Offline

#243 2008-02-26 22:06:35

Phlip
Member
Registered: 2005-03-10
Posts: 36

Re: zem_contact_reborn 4.0.3.20

Duh, I should have known that. Thanks for your help. Got it working.

Offline

#244 2008-02-27 21:39:07

robhert
Member
From: Perú
Registered: 2007-04-27
Posts: 209
Website

Re: zem_contact_reborn 4.0.3.20

HellO!

There is a way to do this:

Rather than:
<txp:zem_contact_text label="Nombre" break="" /><br /> <input type="text" maxlength="100" name="Name" class="zemText zemRequired" id="Name" /><br />

do this:
<input name="Name" id="Name" class="normal" onblur="toggleColor(this)" onfocus="toggleColor(this)">

Any idea?

Thanks in advance.

Last edited by robhert (2008-02-27 21:39:32)

Offline

#245 2008-02-27 22:00:42

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

Not without hacking plugin code…. well, actually, you could do it with some Javascript. Modify the tag attributes in the browser after the page has loaded. Since these attributes you want to add are only relevant on the client side, it’s okay to add them client side.

Offline

#246 2008-02-27 23:32:04

robhert
Member
From: Perú
Registered: 2007-04-27
Posts: 209
Website

Re: zem_contact_reborn 4.0.3.20

Thanks ruud, now I see the source code of the plugin and I know what I must change :D

Thanks a lot.

Regards,
Rob

Offline

#247 2008-03-05 16:09:01

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,559
Website GitHub Twitter

Re: zem_contact_reborn 4.0.3.20

Hi every ones,

I think there are a little bug on ZCR i can’t send mail to mails that have this form : xxx@xxx-xxx.com zcr tell me it s not a valid host! why?

PS: sorry I re submitted the form and the mail has been sent!

Last edited by Dragondz (2008-03-05 16:16:40)

Offline

#248 2008-03-06 06:07:24

Joey
Member
From: Netherlands
Registered: 2005-01-19
Posts: 257

Re: zem_contact_reborn 4.0.3.20

Is it not possible to set the required attribute to <txp:zem_contact_radio />?

By the way, what happened with the txp site? Only the homepage is working but the rest doesn’t work.


Regards,

Joey

Offline

#249 2008-03-06 07:09:41

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

No, because ZCR makes radio buttons required by default. You can select which radio button should be checked by default. Homepage problems should hopefully be fixed later today. We’re having clean url problems ;)

Offline

#250 2008-03-06 10:54:59

Joey
Member
From: Netherlands
Registered: 2005-01-19
Posts: 257

Re: zem_contact_reborn 4.0.3.20

Hmm, okay. But when radio buttons are required, why don’t I get a message that the radio button is empty when I don’t fill in one?


Regards,

Joey

Offline

#251 2008-03-06 15:03:19

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

If you did not specify a default option in the form template (and you really should specify one), ZCR assumes it’s the first one if the user didn’t select anything.

Offline

#252 2008-03-07 12:43:57

crowleyr
Member
From: Tallinn
Registered: 2006-04-04
Posts: 27

Re: zem_contact_reborn 4.0.3.20

ok getting this error:

Tag error: <txp:zem_contact to=“mail@mydomainhere.com” /> -> Warning: mail(): Bad parameters to mail() function, mail not sent. on line 230

I have checked mail.php this works fine.

what next ?

cheers

Offline

#253 2008-03-09 22:08:59

Joey
Member
From: Netherlands
Registered: 2005-01-19
Posts: 257

Re: zem_contact_reborn 4.0.3.20

ruud wrote:

If you did not specify a default option in the form template (and you really should specify one), ZCR assumes it’s the first one if the user didn’t select anything.

But how can I then let the user know that if he didn’t select one, he should do that?

Maybe I should switch to a Select element.


Regards,

Joey

Offline

#254 2008-03-09 22:19:47

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

You should always set one of the radio buttons to be selected by default. Some browsers do that for you, but for some you have to set the default selection.

Offline

#255 2008-03-11 10:46:58

erlando
New Member
Registered: 2008-03-10
Posts: 2

Re: zem_contact_reborn 4.0.3.20

Hi,

I’m using Postmaster for sending out newsletters. Ben Bruce of Postmaster asked me to look at ZCR for answers to the following question.

How do I send a confirmation e-mail (possibly with a confirmation-link) to users when they submit their e-mail to my mailing-list?

Thanks.

Søren Erland Vestø
Klean A/S
http://klean.dk

Offline

Board footer

Powered by FluxBB