Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2010-05-28 00:57:54

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: adi_contact – Form field validation, spam prevention & more

Thanks. :)

Offline

#26 2010-06-02 02:52:13

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,357
Website

Re: adi_contact – Form field validation, spam prevention & more

Version 0.3 available for download:

  • enhancement: new adi_contact_validate option – type=“equal” (for Kevin Potts)
  • fix: adi_contact_combo now processes an unticked checkbox correctly (as not being a field of interest) (thanks Logoleptic)
  • fix: adi_contact_validate coding error (thanks planeth)

Usual terms & conditions apply.

Offline

#27 2010-07-25 21:59:33

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: adi_contact – Form field validation, spam prevention & more

Adi

Salutations from the UK and thanks for this plugin. Looks good. I’m using it for the first time on a site now. Could you let me know if the adi_contact_spam tag changes the class of any spam-laden form item too?


Steve

Offline

#28 2010-07-25 22:55:51

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,357
Website

Re: adi_contact – Form field validation, spam prevention & more

net-carver wrote:

Salutations from the UK and thanks for this plugin. Looks good. I’m using it for the first time on a site now. Could you let me know if the adi_contact_spam tag changes the class of any spam-laden form item too?

Greetings. The short answer is “no it doesn’t”, the long answer is “it probably should, so let me look into it”.

Offline

#29 2010-07-25 22:59:35

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: adi_contact – Form field validation, spam prevention & more

gomedia wrote:

Greetings. The short answer is “no it doesn’t”, the long answer is “it probably should, so let me look into it”.

Those are both great answers. I thought I was doing something wrong — thanks Adi.


Steve

Offline

#30 2010-10-27 06:34:44

roelof
Member
Registered: 2005-03-27
Posts: 647

Re: adi_contact – Form field validation, spam prevention & more

Hello,

I want to use your plugin but instead fof a container I use this : <txp:zem_contact to=“postmaster@tamarawobben.nl” thanks_form=“thanks” />

Must I know made a container of can I work this way ?

Roelof

Offline

#31 2010-10-27 08:49:58

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,357
Website

Re: adi_contact – Form field validation, spam prevention & more

Hi Roelof,

Yes, you need to use ZCR in container mode in order to use adi_contact.

Offline

#32 2010-12-29 11:35:58

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Re: adi_contact – Form field validation, spam prevention & more

Bonjour Adi,

I’ve the same problem as Logoleptic

The form presents the error message regardless of whether the checkbox is checked.

<fieldset id="type-reservation" class="">
	<legend>Type de réservation<br />
		<span class="fieldset-info">My Legend</span>
	</legend>	
	<div><txp:zem_contact_checkbox label="One" name="one" required="0" /></div>
	<div><txp:zem_contact_checkbox label="Two" name="two" required="0" /></div>
</fieldset>
<fieldset id="if_one" class="">
	<legend>IF ONE</legend>	
	<div><txp:zem_contact_text label="Three" name="three" min="1" max="2" default="1" required="0"/></div>
	<div><txp:zem_contact_text label="Four" name="four" required="0" /></div>	
</fieldset>
<fieldset id="if_two" class="">
	<legend>IF TWO</legend>	
	<div><txp:zem_contact_text label="Five" name="five" min="1" max="2" default="1" required="0"/></div>
	<div><txp:zem_contact_text label="Six" name="six" required="0" /></div>	
</fieldset>
<txp:adi_contact_combo names="one,two" checkbox="1" restrict="min" number="1" />
<txp:adi_contact_combo names="one" checkbox="1" require="three,four" />
<txp:adi_contact_combo names="two" checkbox="1" require="five,six" />

Yet I use version 0.3 of your plug’in.
The problem was he able back with textpattern 4.3?

Offline

#33 2010-12-29 12:00:53

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Re: adi_contact – Form field validation, spam prevention & more

The debug message for <txp:adi_contact_combo names="one,two" checkbox="1" restrict="min" number="1" debug="1" />

DEBUG for adi_contact_combo

SUBMITTED FORM LABEL/VALUE ($zem_contact_form):

array (
  'One' => 'oui',
  'Two' => 'non',
)

SUBMITTED FORM NAME/LABEL ($zem_contact_labels):

array (
  'one' => 'One',
  'two' => 'Two',
)

SUBMITTED FORM NAME/VALUE ($zem_contact_values):

array (
  'one' => 'oui',
  'two' => 'non',
)

ERROR LIST ($zem_contact_error):

array (
  0 => 'At least 1 of “<strong>One, Two</strong>” required.',
)

SUPPLIED ATTRIBUTES:

array (
  'names' => 'one,two',
  'checkbox' => '1',
  'restrict' => 'min',
  'number' => '1',
  'debug' => '1',
)

FIELDS OF INTEREST:

array (
  0 => 'one',
  1 => 'two',
)

SUPPLIED LABELS FROM adi_contact_labels:

array (
)

VERSIONS

adi_contact: 0.3 (active)
zem_contact_reborn: 4.0.3.20 (active)
pap_contact_cleaner: not installed
TXP: 4.3.0
PHP: 5.2.6
MySQL: 5.0.41

LABELS OF INTEREST:

One, Two

VALID FIELD COUNT:

0

MISSING LIST:

{"one":1,"two":1}

Offline

#34 2010-12-29 12:08:30

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Re: adi_contact – Form field validation, spam prevention & more

SUBMITTED FORM LABEL/VALUE ($zem_contact_form):
array (
  'One' => 'oui',
  'Two' => 'non',
)

oui and non ???

I change the language in English in the textpattern pref and your plug’in works fine. :D
But he does not like other languages.

Offline

#35 2011-01-11 23:02:14

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,357
Website

Re: adi_contact – Form field validation, spam prevention & more

sacripant wrote:

I change the language in English in the textpattern pref and your plug’in works fine.

Whoops … how very British of me!

I’ve sent you an email with a link to a beta version which should fix this (together with other checkbox problems). Let me know how you get on.

Offline

#36 2011-01-12 11:05:14

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Re: adi_contact – Form field validation, spam prevention & more

Thnks Adi,
I send you a feedback.

Offline

Board footer

Powered by FluxBB