Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1591 2016-06-26 09:15:14

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

Re: zem_contact_reborn 4.0.3.20

i know, there is new version of this plugin, but i’m afraid to use it yet on live page. ;)

i have quizz here

html:

<txp:zem_contact to="quizzz2013@gmail.com" label="Saada vastused" subject="Viktoriini vastused V voor: edasijõudnud" thanks="Teie vastused on edastatud" redirect="saadetud" copysender="1">
<txp:zem_contact_text label="Küsimus 1" break="" />
<txp:zem_contact_text label="Küsimus 2" break="" />
<txp:zem_contact_text label="Küsimus 3" break="" />
<txp:zem_contact_text label="Küsimus 4" break="" />
<txp:zem_contact_text label="Küsimus 5" break="" />
<txp:zem_contact_text label="Ees- ja perekonnanimi" break="" />
<txp:zem_contact_email label="E-post" break="" />
<txp:zem_contact_submit label="Saada" />
</txp:zem_contact>

should be correct, isn’t? but some emails don’t arrive to me, some users complaining – they didn’t get a copy… :(

any ideas?

Textpattern version: 4.5.7 (r5900)
Last update: 2015-09-09 11:49:43/2015-09-09 11:41:33
Document root: /srv/n1/w/eoy/afatar/html
$path_to_site: /srv/n1/w/eoy/afatar/html/rasvatihane
Textpattern path: /srv/n1/w/eoy/afatar/html/rasvatihane/textpattern
Permanent link mode: section_title
open_basedir: /srv/n1/w/eoy/afatar/html:/srv/n1/w/eoy/afatar/private:/safe/bin:/tmp
Temporary directory path: /srv/n1/w/eoy/afatar/html/rasvatihane/textpattern/tmp
Site URL: www.eoy.ee/rasvatihane
PHP version: 5.6.18-pl0-gentoo
GD Graphics Library: bundled (2.1.0 compatible); supported formats: GIF, JPG, PNG.
Server TZ: Europe/Tallinn
Server local time: 2016-06-26 10:39:10
DST enabled?: 1
Automatically adjust DST setting?: 1
Time zone: Europe/Tallinn (7200)
MySQL: 5.5.5-10.1.11-MariaDB-log
Locale: en_GB.UTF-8
Server: Apache
Apache version: Apache
PHP server API: apache2handler
RFC 2616 headers: 
Server OS: Linux 4.4.1-2-ARCH
Active plugins: zem_contact_reborn-4.0.3.20m, zem_contact_lang-4.0.3.6, rah_metas-1.5, rss_auto_excerpt-0.5, upm_img_popper-1.3.7m, jbx_multiple_image_upload-0.5.5, rah_sitemap-1.2, adi_notes-1.3
Admin-side theme: classic 4.5.7

Pre-flight check: 
------------------------
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: pcntl_exec
------------------------

<code>.htaccess</code> file contents: 
------------------------

------------------------

Offline

#1592 2016-06-26 12:45:55

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

Re: zem_contact_reborn 4.0.3.20

Gallex wrote #299978:

should be correct, isn’t? but some emails don’t arrive to me, some users complaining – they didn’t get a copy… :(

i think the issue is somehow related to thanks="" tag. it doesn’t appear and form doesn’t disapper after submitting. so i need to use redirect="" tag.

Last edited by Gallex (2016-06-26 13:27:23)

Offline

#1593 2016-06-27 09:50:07

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

Re: zem_contact_reborn 4.0.3.20

Gallex wrote #299980:

“thanks” text doesn’t appear and form doesn’t disapper after submitting.

lots of testing and: form works correctly if i don’t put it into an article! hmm…

my page:

<txp:if_section name="linnumaaramisvoistlus">
<section class="content-1">
<div class="container">
<section class="sub-container">
<txp:if_individual_article>
<txp:article>
<h1><txp:title /></h1>
<txp:body />
</txp:article>
<txp:else />
<txp:if_category>
<txp:category title="1" wraptag="h6" />
<txp:article category='<txp:category />' wraptag="ul" break="li">
<txp:permlink><txp:title /></txp:permlink>
</txp:article>
<txp:else />
<txp:if_article_list>
<txp:article status="sticky" limit="1" />
<txp:category_list parent='<txp:section />' exclude='<txp:section />' wraptag="div" break="div" class="tulbad-2 tulbad-wrapper">
<txp:if_different><txp:category title="1" link="1" wraptag="h6" /></txp:if_different>
<txp:article_custom category='<txp:category />' wraptag="ul" break="li">
<txp:permlink><txp:title /></txp:permlink>
</txp:article_custom>
</txp:category_list>
</txp:if_article_list>
</txp:if_category>
</txp:if_individual_article>
</section>
<aside class="sidebar-container">
<txp:output_form form="sidebar" />
</aside>
</div>
</section>
<txp:else />
...

is it something not so correct in a code above?

Offline

#1594 2016-06-27 10:26:57

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,485
Website GitHub

Re: zem_contact_reborn 4.0.3.20

Gallex wrote #299984:

form works correctly if i don’t put it into an article!

Have you set Textile formatting to None for that article? Otherwise it’ll probably screw up your form.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#1595 2016-06-27 10:32:28

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

Re: zem_contact_reborn 4.0.3.20

Bloke wrote #299986:

Have you set Textile formatting to None for that article? Otherwise it’ll probably screw up your form.

you mean “leave text untouched”?

Offline

#1596 2016-06-27 10:46:33

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,485
Website GitHub

Re: zem_contact_reborn 4.0.3.20

Gallex wrote #299987:

you mean “leave text untouched”?

Yes.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#1597 2016-06-27 10:57:55

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

Re: zem_contact_reborn 4.0.3.20

Bloke wrote #299988:

Yes.

nothing changed.
i use same code in an article on other site which hosted on a same server – no problem there.
reinstalled txp in a meantime – no help.

hmm…. ;(

Offline

#1598 2016-07-21 14:45:28

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

Re: zem_contact_reborn 4.0.3.20

I have to make a field required relating to other field.
Does anyone kwon how make it?

Last edited by wornout (2016-07-21 14:45:57)

Offline

#1599 2016-07-21 15:44:48

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

Re: zem_contact_reborn 4.0.3.20

Have a look at adi_contact.


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

Offline

#1600 2016-08-21 11:44:20

Ji31
Member
Registered: 2005-08-24
Posts: 103

Re: zem_contact_reborn 4.0.3.20

Hi, I’m using version 4.0.3.21 and the form is like this:

 <txp:zem_contact to="emailto@test.com" label="">
        <table>
          <tr>
            <td class="label">Email:</td>
            <td>
              <p class="input-text-1">
                <txp:zem_contact_email label="" required="1" break="" />
              </p>
            </td>
          </tr>
          <tr>
            <td class="comment-spacer-1" colspan="2"></td></tr>
          <tr>
            <td class="label">Vaše zpráva:</td>
            <td class="text-area-1"><txp:zem_contact_textarea label="" required="1" break="" /></td>
          </tr>
          <tr>
            <td class="comment-spacer-1" colspan="2"></td></tr>
          <tr>
            <td></td>
            <td>
              <p class="show-all comm-btn">
                <txp:zem_contact_submit label="Odeslat" />
              </p>
            </td>
          </tr>
        </table>
      </txp:zem_contact>

When I fill the form with the email myemail@test.com and message my posted message, I get an error
“my posted message” is not a valid email address.
Why?

Thanks

Offline

#1601 2016-08-21 16:38: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

Can you post a link to the form that shows this behaviour?

Offline

#1602 2016-08-21 19:15:56

Ji31
Member
Registered: 2005-08-24
Posts: 103

Re: zem_contact_reborn 4.0.3.20

ruud wrote #300722:

Can you post a link to the form that shows this behaviour?

http://dieta-brno.cz/kontakt

Offline

#1603 2016-08-21 20:47:19

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

Re: zem_contact_reborn 4.0.3.20

The tags you posted aren’t exactly those that build the form: The email field is type text, not email. Try to use zem_contact_email and see if that’s enough to change.


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

Offline

#1604 2016-08-21 20:59:18

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, type="text" is normal. The problem is that you set the label attributes to an empty string, but didn’t set the name attribute. If the name attribute is missing, the plugin tries to create a name attribute based on the label, but if that is empty as well, it sets the name to ‘invalid’ and because you then have two form fields with the same name (invalid), you get the effect you’re seeing now.

Offline

#1605 2016-08-22 04:48:01

Ji31
Member
Registered: 2005-08-24
Posts: 103

Re: zem_contact_reborn 4.0.3.20

ruud wrote #300726:

No, type="text" is normal. The problem is that you set the label attributes to an empty string, but didn’t set the name attribute. If the name attribute is missing, the plugin tries to create a name attribute based on the label, but if that is empty as well, it sets the name to ‘invalid’ and because you then have two form fields with the same name (invalid), you get the effect you’re seeing now.

Helped, thanks!

Offline

Board footer

Powered by FluxBB