Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#157 2008-01-07 15:25:38
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
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
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
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: Asturias, Spain
- Registered: 2005-11-25
- Posts: 1,091
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
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: Asturias, Spain
- Registered: 2005-11-25
- Posts: 1,091
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
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
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
#166 2008-01-08 15:06:59
- masa
- Member
- From: Asturias, Spain
- Registered: 2005-11-25
- Posts: 1,091
Re: zem_contact_reborn 4.0.3.20
ruud wrote:
Martin, it’s caused by the pap_contact_cleaner plugin. You can edit it and change display:hidden to display:none.
Thanks Ruud.
The strange thing is I’m not using pap_contact_cleaner and couldn’t find any reference to it in zem_contact_reborn’s code – could it be something different I’m missing?
Cheers Martin
Update: I now use a simple css rule #content .zemContactForm br { line-height: 0; }
that does the trick, so I’m not fussed any longer :-)
Last edited by masa (2008-01-08 15:31:49)
Offline
#167 2008-01-08 15:59:11
Re: zem_contact_reborn 4.0.3.20
Martin, if these are the hidden fields that ZCR adds itself for nonce and form_id, then it’s likely a <br />
tag that was added in the form used for the zem_contact tag.
Offline
#168 2008-01-08 16:18:11
Re: zem_contact_reborn 4.0.3.20
2 Ruud
Your example seems “to work”: only if i save file in utf-8 encoding… And I added new line symbol ;)
I tried to check the whole russian ABC and you can see – only letter “Р” causes this error.
P.S. By the way – may be this may help :)
Last edited by the_ghost (2008-01-08 16:23:33)
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