Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#151 2007-12-31 22:56:37

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

Or you can just insert a normal HTML submit button. The zem_contact_submit tag is only there for historical reasons.

Offline

#152 2008-01-01 05:58:25

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

Re: zem_contact_reborn 4.0.3.20

darock wrote:

Does this plugin allow one to upload documents/files or is there one that does? I was reading through the guide but didn’t see anything that might have resembled it.

I wrote an AFU (AFU = anonymous file upload) plugin for mrdale and colak some time ago. You can use the contact form on my website to request a copy if you want.


Steve

Offline

#153 2008-01-01 11:00:25

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: zem_contact_reborn 4.0.3.20

Manfre wrote:

jstubbs, You could wrap the submit tag with another tag to act as a pointer so you can isolate that instance in the css.

Thanks, I already had done that actually. And Ruud, I was not aware one could just use a plain old HTML submit button. That’s helpful.

Offline

#154 2008-01-07 02:19:39

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: zem_contact_reborn 4.0.3.20

hi,
I have my contact form as well as instructions for it in the same article. After the form is submitted the thank you screen still has all the instructions underneath it.
How can i get the submit button to return a thank you screen without the other stuff thats in the article.

heres an example of my article:

<txp:zem_contact to="infoatjfl.ie"><br /><txp:zem_contact_text label="Name"/>*<br /><txp:zem_contact_email required="0" /><br /><txp:zem_contact_text label="Phone" min=7 max=15/>*<br /><br /><txp:zem_contact_textarea label="Message *"/><br /><txp:zem_contact_submit label="Send" /><br /><txp:zem_contact_checkbox label="I would like a Free Financial Health Check" required="0"/></txp:zem_contact>

* Denotes required fields.

returns

Thank you…
  • Denotes required fields.

Last edited by kvnmcwebn (2008-01-07 02:22:15)


its a bad hen that wont scratch itself.
photogallery

Offline

#155 2008-01-07 02:32:05

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: zem_contact_reborn 4.0.3.20

kvnmcwebn,

Use the <txp:zem_contacts />’s redirect-value.

<txp:zem_contact to="infoatjfl.ie" redirect="thank-you">
	<br /><txp:zem_contact_text label="Name"/>*
	<br /><txp:zem_contact_email required="0" />
	<br /><txp:zem_contact_text label="Phone" min=7 max=15 />*
	<br />
	<br /><txp:zem_contact_textarea label="Message *" />
	<br /><txp:zem_contact_submit label="Send" />
	<br /><txp:zem_contact_checkbox label="I would like a Free Financial Health Check" required="0" />
</txp:zem_contact>

And in the section called thank-you (http://www.your-site.com/thank-you) or something another url that is specific in the redirect-attribute:

<p>Arigatou gozaimasu, thank you were much! Your message have been sent.</p>

Cheers!

Last edited by Gocom (2008-01-07 02:33:17)

Offline

#156 2008-01-07 11:03:56

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: zem_contact_reborn 4.0.3.20

thanks gocom


its a bad hen that wont scratch itself.
photogallery

Offline

#157 2008-01-07 15:25:38

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

Kevin, another solution would be to put the instructions inside the zem_contact container tag.

Offline

#158 2008-01-07 22:43:45

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: zem_contact_reborn 4.0.3.20

Found strange bug again connected with cyryllic :)

<txp:zem_contact label=""
to="nemiga@gmail.com"
subject="Письмо с сайта">
<txp:zem_contact_text
label="Ваше имя:"
name="name"/><br /><br />
<txp:zem_contact_email
label="Ваш электронный адрес:"
name="zemail" /><br /><br />
<txp:zem_contact_select
label="Выберите получателя и тему письма:" 
break="br" 
list=",Инженер - о наших изделиях,
 Руководство - общие вопросы,
 Руководство - сотрудничество,
 Вебмастер - вопрос о сайте,
 Вебмастер - ошибка на сайте,
 Другая тема"
required="yes" name="poluchatel"/>
<br /><br />
<txp:zem_contact_textarea cols="40" label="Ваше сообщение:" name="message" /><br /><br />
<txp:zem_contact_submit label="Отправить сообщение" />
</txp:zem_contact>

And i get such code in Opera:

<select class="zemSelect zemRequired" name="poluchatel" id="poluchatel">
	<option selected="selected"> </option>
	<option>Инженер - о наши� изделия�</option>
	<option>� уководство - общие вопросы</option>
	<option>� уководство - сотрудничество</option>
	<option>Вебмастер - вопрос о сайте</option>
	<option>Вебмастер - ошибка на сайте</option>
	<option>Другая тема</option>
</select>


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#159 2008-01-07 22:52:43

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

Does this only happen when displayed in the browser or also in the email that is sent?
When editing the TXP page/form that contains ZCR tags, does it show correctly there?
Does this also happen in other browsers?
Do you have an URL that demonstrates the problem?

Offline

#160 2008-01-07 23:18:44

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: zem_contact_reborn 4.0.3.20

ruud wrote:

1. Does this only happen when displayed in the browser or also in the email that is sent?
2. When editing the TXP page/form that contains ZCR tags, does it show correctly there?
3. Does this also happen in other browsers?
4. Do you have an URL that demonstrates the problem?

1. It doesn’t allow to send message if selected wrenched option
2. Yes – i provided the exactly code to forum
3. Yes – only strange symbols differ
4. http://cosmakc.ru/contact/

P.S. Did you mentioned that only the same symbols are misspelled? Both wrong strings start with “Р”…


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#161 2008-01-08 05:42:58

masa
Member
From: North Wales, UK
Registered: 2005-11-25
Posts: 1,095

Re: zem_contact_reborn 4.0.3.20

Hi there,

I’m getting an unwanted white margin at the top of the contact form. Apparently this is caused by the line break after the hidden fields:

<form ... >
<div>
<input type="hidden" ... />
<input type="hidden" ... /><br />
<label for="Email" class="zemText zemRequired Email">Email</label>

Is there any way to remove this?

Cheers Martin

Offline

#162 2008-01-08 06:53:41

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: zem_contact_reborn 4.0.3.20

Linebreak? Which one? :D

No, It’s not because the linebreak in the code, as it doesn’t render. It’s because that correct XHTML linebreak (<br />). Remove that and you will be good to go. Althought I would suggest of using unordered list to wrap your form’s content, but it’s only matter of choises, likes and ways.

So, remove it from the zem_contact_reborn’s form.

Cheers!

Last edited by Gocom (2008-01-08 06:55:51)

Offline

#163 2008-01-08 12:19:26

masa
Member
From: North Wales, UK
Registered: 2005-11-25
Posts: 1,095

Re: zem_contact_reborn 4.0.3.20

Gocom wrote:

It’s because that correct XHTML linebreak (<br />).

That’s what I meant. However, looking at the the zem_contact tag, I can see no way to prevent that specific <br /> from being generated.

It doesn’t seem to make much sense either seeing as the fields are hidden.

Anyone?

Offline

#164 2008-01-08 14:11:37

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

Martin, it’s caused by the pap_contact_cleaner plugin. You can edit it and change display:hidden to display:none.

Offline

#165 2008-01-08 14:18:15

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

Victor, I can’t reproduce this… try putting this in a test.php file, upload it to your webhost and see which lines are incorrect. All the processing done inside ZCR is tested in it:

<?php
header('Content-Type: text/html; charset=utf-8');
$str = 'Руководство - общие вопросы';
$ar[] = $str;
$ar[] = htmlspecialchars($str);
$ar[] = preg_replace('/[\r\n\t\s]+/', ' ', $str);
$ar[] = trim(preg_replace('/[\r\n\t\s]+/', ' ', $str));
$ar[] = htmlspecialchars(trim(preg_replace('/[\r\n\t\s]+/', ' ', $str)));
echo join('<br />', $ar);
?>

Also, don’t use linebreaks inside TXP tags.

Offline

Board footer

Powered by FluxBB