Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1231 2012-09-09 14:53:00

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

@husainhk:

If the code you posted gives an error message if you try to insert a duplicate email address:

replace global $zem_contact_values; with global $zem_contact_values, $zem_contact_error;

replace if (!$result) echo mysql_errno() . ": " . mysql_error(); with if (!$result) $zem_contact_error[] = 'Email address already known or some other message";

Offline

#1232 2012-09-09 18:10:16

husainhk
Member
From: Dubai, UAE
Registered: 2007-08-12
Posts: 105
Website

Re: zem_contact_reborn 4.0.3.20

@Ruud: Thanks a lot mate. Made the update and get the appropriate message when duplicate email is entered … Wow!

Offline

#1233 2012-09-10 04:06:45

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

Re: zem_contact_reborn 4.0.3.20

why this error all of a sudden?

Tag error: <txp:zem_contact_select label="Choose" list="A General Question,A Happy Client,Just Interested" break="" /> -> : Function split() is deprecated on line 539

Still running TxP 4.4.1 and zem_contact_reborn 4.0.3.20

I think i twas running fine last time i checked.


…. texted postive

Offline

#1234 2012-09-10 04:21:28

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

Re: zem_contact_reborn 4.0.3.20

garbo wrote:

I made the one swap between split() and explode() under Edit on the plug-ins page for zem_contact_reborn and the error went away. I just hope the form still works.

For people new to this, I went to the plug-ins tab and clicked on the Edit link next to zem_contact_reborn, did a search for the word ‘split’ (it only occurs once) and replaced it with the word ‘explode’. Then I saved it.

This occurs when the PHP version on your server is 5.3 and above. You can find out what version of PHP your web server is using where your Textpattern is installed by checking out the Diagnostics tab under the Admin tab.

jeez. i have been trying to find a solution for this for hours. Is there a reason why this plugin was not updated to deal with the error?


…. texted postive

Offline

#1235 2012-09-10 04:24:27

husainhk
Member
From: Dubai, UAE
Registered: 2007-08-12
Posts: 105
Website

Re: zem_contact_reborn 4.0.3.20

Is it possible to have a different subject for the sender, when the copysender=“1” is used? I’d like to have something like:

Subject for the recipient: “Enquiry from Example.com”
Subject for the sender: “Autoresponse: Your Enquiry on Example.com”

Last edited by husainhk (2012-09-10 04:24:40)

Offline

#1236 2012-09-20 17:25:13

heternova
Member
Registered: 2007-01-26
Posts: 14

Re: zem_contact_reborn 4.0.3.20

Hi all, I have the following form:

<ul class="bestellung-adresse">

<li><txp:zem_contact_text break="" label="Name" /></li>
  <li><txp:zem_contact_text break="" label="Vorname" /></li>
  <li><txp:zem_contact_text break="" label="Adresse" /></li>
  <li><txp:zem_contact_text break="" label="PLZ" /></li>
  <li><txp:zem_contact_text break="" label="Ort" /></li>
  <li><txp:zem_contact_email break="" label="Email" /></li>
  <li><txp:zem_contact_text break="" label="Telefon" required="0" /></li>

</ul>

</div> <!-- close content-three-columns-center -->
    <div id="content-one-column-cd-bestellung">
      <table>
        <caption>Bitte senden Sie mir folgende CD's:</caption>
          <tbody>
          <tr>
          <td class="CD-Titel">...Ihr ergebener Paul Burkhard</td>
          <td class="CD-Space"></td>
          <td class="CD-Nummer">

<txp:zem_contact_text break="" name="Paul Burkhard CD" label="Stück" required="0" /></td>      
          </tr>
                </tbody>
             </table>
           </fieldset>    	

My problem is, only the first params are sent to the email. The param <txp:zem_contact_text break=”“ name=“Paul Burkhard CD” label=“Stück” required=“0” /> is not sent. But when I test it using a normal php script for post (http://www.posttestserver.com/data/2012/09/20/04.26.57349355332) all the parameters are sent correctly. Where is the error?

Thank you!

p.s.: did someone already tested textpatter/zem_contact with MailServe for Mac?

Last edited by heternova (2012-09-20 17:35:17)

Offline

#1237 2012-09-20 20:24:02

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

Re: zem_contact_reborn 4.0.3.20

heternova, the only thing I could spot is name="Paul Burkhard CD" won’t result in a correct id because of the blanks. Try something like Paul-Burkhard-CD or paul-burkhard-cd and report back.


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

Offline

#1238 2012-09-20 21:07:58

heternova
Member
Registered: 2007-01-26
Posts: 14

Re: zem_contact_reborn 4.0.3.20

hi uli,
thank you. now it works. i dont know if your solution was the one, but thank you!
one last problem: i have to use the same label for every input text. the label is “quantity of cd you want to buy”. at the end the customer receive the email with the quantity but he doesnt know for which CD. Is there a way to add additional information to every input text, something hidden that will complete the label?

thank you

Offline

#1239 2012-09-20 21:34:10

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

Re: zem_contact_reborn 4.0.3.20

You’re welcome. As far as I know is every hidden field (i.e. <txp:zem_contact_secret />) integrated into the email, something you won’t find desireable, whereas the labels only appear for filled in fields. So you’ll have to use the label, I’m afraid. Perhaps like “Quantity of «Paul Burkhard CDs»” if this wording isn’t contradicting local e-commerce laws.

Last edited by uli (2012-09-20 21:46:58)


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

Offline

#1240 2012-09-20 23:39:23

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

Re: zem_contact_reborn 4.0.3.20

Your open-ended “something” in “something hidden” made me hesitate later on: You can of course inject some Javascript into the form. Assuming you’re using a fixed value of 0 in each article amount field, you can easily apply the rah_replace tag, something like:

<txp:rah_replace from='value="0"' to='onblur="CheckValue(this);" value="0"'>
  Some zcr-tag(s) (rah_replace can change several tags at once)
</txp:rah_replace>

and function CheckValue:

<script type="text/javascript">
function CheckValue(field) {
  if (field.value > 0) field.value = "your optional prefix text" + field.value + "your optional suffix text";}
</script>

Or, Javascript-free, but losing accessibility on the form to a certain degree, you hide the labels via CSS and use something like <span class="label">quantity of cd you want to buy</span> and put the desired email text into the zcr label.


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

Offline

#1241 2012-09-21 10:37:11

wornout
Member
From: Italy
Registered: 2009-01-20
Posts: 256
Website

Re: zem_contact_reborn 4.0.3.20

I build a form that validates coupon codes (based on a regex) before submit.
Now I’m trying to record a conversion (google analytics) when form is correctly submitted and record wiche code users had entered.
I tried to use thanks_form but seem that it can’t process txp tag. Is it true?
Someone can suggest me a solution?
Thanks

Offline

#1242 2012-09-21 11:09:00

springworks
Member
Registered: 2005-01-06
Posts: 172
Website

Re: zem_contact_reborn 4.0.3.20

wornout wrote:

I build a form that validates coupon codes (based on a regex) before submit.
Now I’m trying to record a conversion (google analytics) when form is correctly submitted and record wiche code users had entered.
I tried to use thanks_form but seem that it can’t process txp tag. Is it true?
Someone can suggest me a solution?
Thanks

Are you trying to recover the coupon code in the thanks_form?

You won’t be able to do that as the Post variables are cleared before ZCR calls the thanks_form.

One way around this is to add a call to adi_gps at around line 231 in the plugin code, after the email has been sent but before the $_POST array is reinitialised. This will save the Post variables to TXP variables so they are available to the thanks_form.

Offline

#1243 2012-09-24 08:06:44

heternova
Member
Registered: 2007-01-26
Posts: 14

Re: zem_contact_reborn 4.0.3.20

uli wrote:

Your open-ended “something” in “something hidden” made me hesitate later on: You can of course inject some Javascript into the form. Assuming you’re using a fixed value of 0 in each article amount field, you can easily apply the rah_replace tag, something like:

<txp:rah_replace from='value="0"' to='onblur="CheckValue(this);" value="0"'>
  Some zcr-tag(s) (rah_replace can change several tags at once)
</txp:rah_replace>

and function CheckValue:

<script type="text/javascript">
function CheckValue(field) {
  if (field.value > 0) field.value = "your optional prefix text" + field.value + "your optional suffix text";}
</script>

Or, Javascript-free, but losing accessibility on the form to a certain degree, you hide the labels via CSS and use something like <span class="label">quantity of cd you want to buy</span> and put the desired email text into the zcr label.

Uli,
Vielen Dank !

I didn’t see the way to use CSS. It’s the easiest way, and it works great. I just changed some small presentation’s stuff, but now the result is great.
Thank you so much

Last edited by heternova (2012-09-24 08:07:27)

Offline

#1244 2012-09-26 20:54:54

brunodario
Member
From: Belo Horizonte, Brasil
Registered: 2007-09-19
Posts: 75

Re: zem_contact_reborn 4.0.3.20

I’m having the same issue that hussaihnk had here: http://forum.textpattern.com/viewtopic.php?pid=265395#p265395

I’ve had to remove the <txp:zem_contact_email /> in order to the emails being sent. Can someone please point me how can i edit the plugin in a way that the “from:” is allways the same email (one from my domain)?

Thx in advance

Offline

#1245 2012-09-26 21:35:49

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

Re: zem_contact_reborn 4.0.3.20

Doesn’t it work if you use the from attribute in the zem_contact tag? It has been a solution for me some time ago.

Offline

Board footer

Powered by FluxBB