Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)
Ruud, let me re-phrase – would you suggest using pap_contact_cleaner with your latest release of ZCR? One less plugin is a good thing ;-)
I don’t really know if its needed or not, hence the question….thanks.
Offline
Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)
Hello guys,
I’m using zem_contact_reborn to make a form and I have some validation issues.
1. I used the tag like this: <txp:zem_contact_select list=”,Sales,Support” />
to make the first item blank but I get a warning for an empty tag when validating. Is there a way so I can have both (a blank item and a valid page)?
2. I use this tag: <txp:zem_contact_text label=“Phone” /> but I get a warning: <input> anchor “phone” already defined
because of this code at the end of the form: <div style=“visibility: hidden”><input type=“text” name=“phone” value=”“ id=“phone” /><br /><input type=“text” name=“mail” value=”“ id=“mail” /></div>
I think this has to do with the standard fields the plugin creates but haven’t managed to make it go away.
Sorry if there’s a solution already somewhere in the forum but the search results gave nothing.
Offline
Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)
fabo114
1. try adding a space before the first comma (I’ll fix this in the next version of ZCR)
2. that’s due to pap_contact_cleaner using the same name (‘phone’). Can be solved by explicitly setting the name attribute to something like ‘telephone’.
jstubbs
It prevents some spam. On the other hand, if someone visits your website using a browser like Lynx (which doesn’t support CSS), they’ll see the extra input fields, which could be a reason not to use it. So I guess it depends on what type of visitors you expect. On a non-tech website, I’d use it.
Last edited by ruud (2006-12-05 08:04:09)
Offline
Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)
ruud
Thanks for the quick reply.
1. I already tried that but the space doesn’t show up in the code (not sure why). Fortunately this isn’t a big deal.
I have another problem with this tag. I can’t make the label and the field to appear in seperate lines. All the other tags break but this isn’t.
2. Thanks, I got it fixed (I could change the names in pap_contact_cleaner but this is easier).
Offline
Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)
fabo114, put this in your form:
break=”<br />”
And the label and field will appear on separate lines.
Offline
Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)
Yikes… that’s so unlike TXP. Would anyone mind if we change that to break="br" ?
Offline
Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)
jstubbs
Thanks!…I used a “<br />” but not this way.
ruud
I tried like this but it shows “Titlebr” (“Title” is my label) and it doesn’t break.
Last edited by fabo114 (2006-12-05 22:07:06)
Offline
Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)
ruud wrote:
Yikes… that’s so unlike TXP. Would anyone mind if we change that to
break="br"?
Hey Ruud, I agree with you, but when I did that it did not work, so I entered the full tag and it breaks nicely. ;-)
Offline
Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)
I’m getting an error message after submitting the form that doesn’t make sense (to me, at least):
“shaw.ca” is not a valid email host.
Other people have reported the same problem for other domains such as kpcorp.com and yahoo.com.
A solution would be much appreciated.
Mark
Offline
Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)
mwr
The error means that the part of the email address behind the ‘@’ does not appear to be a valid hostname for receiving email. ZCR determines this by doing two DNS lookups (one for the MX record, one for the A record). If both fail, then this error is shown.
Does this happen for every email address you enter and/or does it happen each time you try a someone@shaw.ca address?
Please provide an URL to a contact form that demonstrates this problem.
Offline
Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)
Users have told me it happens also with kpcorp.com and yahoo.com. I have also tried it with my work address, which ends in kamloopsnews.ca — no go.
Here is a URL: http://www.thriftmac.com/suggestions/
Thanks for your help. It seemed to be working fine until recently, which makes it all the more baffling. I can’t imagine what I might have done to cause this.
Mark
Offline
Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)
Unless you edited the plugin, I doubt you caused this yourself (it seems to fail for all email domains).
Can you put the following code in a new file called dnstest.php, upload it to your server and open the page in your browser. It should show an IPnr and 4 times ok … or the last 4 things should all fail (windows server):
<pre><?php
$domain = 'vanmelick.com';
echo 'OS: '.PHP_OS."\n";
echo 'gethostbyname: ' . gethostbyname($domain) ."\n";
echo 'getmxrr: ' . (getmxrr($domain, $d) ? 'ok' : 'fail') . "\n";
echo 'checkdnsrr: ' . (function_exists('checkdnsrr') ? 'ok' : 'fail') . "\n";
echo 'checkdnsrr(MX): ' . (checkdnsrr($domain,'MX') ? 'ok' : 'fail') . "\n";
echo 'checkdnsrr(A): ' . (checkdnsrr($domain,'A') ? 'ok' : 'fail') . "\n";
?></pre>
Also test this with an extra dot added to at the end of the domain name: $domain = 'vanmelick.com.';
Last edited by ruud (2006-12-09 22:44:17)
Offline
Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)
Here are the results:
OS: FreeBSD
gethostbyname: vanmelick.com
getmxrr: fail
checkdnsrr: ok
checkdnsrr(MX): fail
checkdnsrr(A): fail
With extra dot:
OS: FreeBSD
gethostbyname: vanmelick.com.
getmxrr: fail
checkdnsrr: ok
checkdnsrr(MX): fail
checkdnsrr(A): fail
Mark
Offline
Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)
Please contact your webhost. DNS is not working properly on the server. PHP functions like checkdnsrr don’t make a difference between a failing DNS and an a false result. The ZCR script assumes a working DNS, so if checkdnsrr fails due to DNS problems on your webserver, the script interprets that as a false result and shows the ‘not a valid email host’ error.
Offline
Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)
Will do.
Mark
Offline