Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1009 2011-05-09 17:02:22

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: zem_contact_reborn 4.0.3.20

ruud wrote:

@benang:

  1. use the german alternative for zem_contact_lang
  2. read the plugin help

Is there an Italian version for zem_contact_lang

I have not seen one ?


…. texted postive

Offline

#1010 2011-05-09 19:15:16

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

^^ I don’t know, but you can easily create one yourself by editing the existing zem_contact_lang plugin.

Offline

#1011 2011-05-09 20:27:29

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: zem_contact_reborn 4.0.3.20

ruud wrote:

^^ I don’t know, but you can easily create one yourself by editing the existing zem_contact_lang plugin.

i’ll try again;-0 . yesterday when i edited and changed “Contact” to “Contattaci” it broke the plugin. Not sure what is “language” and what is “instructions / code”

Last edited by bici (2011-05-09 20:27:51)


…. texted postive

Offline

#1012 2011-05-09 21:53:22

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: zem_contact_reborn 4.0.3.20

You need to change the part after the =>, like this:

'contact'		=> 'Contattaci',

Offline

#1013 2011-05-09 22:04:05

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: zem_contact_reborn 4.0.3.20

Els wrote:

You need to change the part after the =>, like this:

'contact'		=> 'Contattaci',

ah ha!! i found the separate code …much easier now!
<?php function zem_contact_gTxt($what, $var1 = '', $var2 = '') { $lang = array( 'checkbox' => 'Checkbox', 'contact' => 'Contact',


…. texted postive

Offline

#1014 2011-05-10 11:56:30

benang
New Member
Registered: 2009-11-30
Posts: 6

Re: zem_contact_reborn 4.0.3.20

@ruud

thanks for your help, the plugin works :)

Offline

#1015 2011-05-16 13:18:52

pafruu
Member
From: New Brunswick, Canada
Registered: 2010-01-14
Posts: 65

Re: zem_contact_reborn 4.0.3.20

Hello guys,

thanks for the awesome plugin. Ive been using it for a couple of sites for some of my customers. However after reading up to page 57 in this topic, I could’nt find anyone who is faced with the problem that I am experiencing right now. Mind you it might be on page 58 or 59, I’ll never know.

The situation I have has to do with the forms ID number. See I have this site where my customer lists his product on a page, they are listed in a custom article and each products have a ZCR form for the user to be able to send their info so that my customer can contact them.
This create two articles per page, therefore 2 ZCR forms with the same ID number on the same page. When filling one out and clicking the send button, both forms are filled with the same information that was just entered and the information does not get sent since my two forms have the same ID number.

My question is this, is there a way to attribute a different ID number to forms that are repeated on the same page?

I believe that what has to change is this line right here:

$zem_contact_form_id = md5(serialize($atts).preg_replace(‘/[\t\s\r\n]/’,’‘,$thing));

Can I get this line to go fetch the articles <txp:title /> and use that as an ID number for the different forms?

Thanks for your help

Last edited by pafruu (2011-05-16 13:19:15)


I try, and I try, and I try…. and sometimes I achieve

Offline

#1016 2011-05-16 13:56:35

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

Re: zem_contact_reborn 4.0.3.20

Hi pafruu,

I have a page with multiple zem_contact forms, they get a random/unique ID automatically, like

<form method="post" id="zcrb477414b4a1c1c2f2e005fe51e8edd6c" class="zemContactForm"

But perhaps this randomness is due to each belonging to different articles and I think you use two forms in the same article. Hm. So this is unlikely to help. In which case moderator, feel free to go ahead and delete my useless post!

I hope, if not helping directly, this may jog a thought that my lead to something that will help, perhaps.

Good luck, cheers, -Alan


At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A

Offline

#1017 2011-05-16 15:33:07

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

pafruu wrote:

My question is this, is there a way to attribute a different ID number to forms that are repeated on the same page?
I believe that what has to change is this line right here:
$zem_contact_form_id = md5(serialize($atts).preg_replace(‘/[\t\s\r\n]/’,’‘,$thing));

No change required. You just have to make sure that the attribute values differ for each form. One way of doing this is by adding the article-id to one of the attribute values. For example:

<txp:zem_contact subject='request for article number <txp:article_id/>' to="someone@example.org" />

If you don’t want this, post the ZCR tag including attributes that you use (censor email addresses) and I can find an alternative.

Offline

#1018 2011-05-16 16:19:44

pafruu
Member
From: New Brunswick, Canada
Registered: 2010-01-14
Posts: 65

Re: zem_contact_reborn 4.0.3.20

Thanks Alan for your input

Ruud, I inserted the subject attribute in the tag : as follows:

<txp:zem_contact to=“xxx@xxxxx.com” subject=“request for article number <txp:title />” >
<txp:zem_contact_secret name=”<txp:title />” /> <txp:zem_contact_email /><br> <txp:zem_contact_text label=“Your Name” min=“7” max=“50” /><br> <txp:zem_contact_text label=“Phone Number” /><br> <txp:zem_contact_submit label=“Send” />
</txp:zem_contact>

it works with title as well, which is what i would prefer altho, even when i used article_id the tag itself was sent in the email as a subject line, as follows:

request for article number <txp:article_id/>

same thing happens with the <txp:title /> tag

any ideas how I could get the value of the articles title to show up?

Thank you

Last edited by pafruu (2011-05-16 16:20:00)


I try, and I try, and I try…. and sometimes I achieve

Offline

#1019 2011-05-16 16:23:11

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: zem_contact_reborn 4.0.3.20

while we are on the subject. has anyone modified the zem_contact_lang plugin to accept a Bcc field, without hacking the code?


…. texted postive

Offline

#1020 2011-05-16 18:01:14

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

pafruu wrote:

<txp:zem_contact to="xxx@xxxxx.com" subject="request for article number <txp:title />" >

Use single quotes if you want the tags parsed in an attribute value:

<txp:zem_contact to="xxx@xxxxx.com" subject='request for article number <txp:title />' >

Offline

Board footer

Powered by FluxBB