Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2006-12-11 16:49:32

mwr
Member
From: Canada
Registered: 2006-01-31
Posts: 169
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

They say DNS is working fine:

sounds like something Textpattern related, because DNS works in general from Cardero, e.g.
cardero:~ # dig +short vanmelick.com
207.228.238.44
cardero:~ # dig +short vanmelick.com mx
10 vanmelick.com.
5 home.vanmelick.com.
What kind of contact form is that? Zem’s zem_contact plugin? I’m not familiar with what such code does exactly, but this is not a general DNS issue on Cardero. Did you try bringing this up with the author and/or the TXP community?


Mark

Offline

#32 2006-12-11 18:41:54

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Perhaps it helps to show them the bit of code I asked you to use for testing. It clearly shows the problem (checkdnsrr exists but can’t resolve either MX or A records for the host specified) and it’s small enough for them to understand quickly.

It’s not textpattern related, but perhaps PHP related.

Last edited by ruud (2006-12-11 18:43:21)

Offline

#33 2006-12-12 20:02:11

mwr
Member
From: Canada
Registered: 2006-01-31
Posts: 169
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

My host doesn’t seem to have any help for me. I’d really like a contact form. Is there some other (easy) way I could create one?


Mark

Offline

#34 2006-12-12 20:56:56

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Edit the plugin, change this line:

if (is_callable('checkdnsrr') and !checkdnsrr($domain,'MX') and !checkdnsrr($domain,'A'))

into:

if (is_callable('checkdnsrr') and checkdnsrr('textpattern.com.','A') and !checkdnsrr($domain.'.','MX') and !checkdnsrr($domain.'.','A'))

This change checks if it can resolve textpattern.com. If it can’t then DNS is probably not working properly and the MX check is skipped. I’ll add this to the next ZCR release.

Last edited by ruud (2006-12-12 20:58:00)

Offline

#35 2006-12-12 21:41:31

mwr
Member
From: Canada
Registered: 2006-01-31
Posts: 169
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Thank you for all your help. The form now works perfectly.

Amusing aside: It took me a few tests before I realized it was working. Nothing was showing up in the In box. Finally, I got the idea of looking in the Trash. Yes, Mail though it was junk …


Mark

Offline

#36 2006-12-13 02:52:19

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Some time ago, I have seen a TxP site that was using the comment form as a contact form.
I commented that it was a great idea for keeping a track of the “e-mails” sent thru the contact page.
Of course, the “problem” about using the comment form as a contact form is that the visitor have to preview the “e-mail” before being able to send it.
This could lead to confusion and usually end in the “e-mail” not being “sent” (because visitors could leave the page after hitting preview, thinking (wrong) that the e-mail was already sent).

So, the feature request: add a table in the TxP database to keep a record of all the e-mail sent thru ZCR. Of course, this could be implemented as an option: “Keep record of e-mails in database? yes | no”.

Personally, from time to time, I have problems with the e-mails sent using ZCR: e-mails never arrives to my account.
I think I have discovered this isn’t a ZCR problem at all, but a problem of the hosting delivering the e-mails sent through ZCR.
That problem it’s very weird and usually it lasts a few hours.
Strange thing: I can perfectly send and receive e-mails, and even the “copysender” e-mails are sent by ZCR. But the original e-mail to the destination (my account) of ZCR never arrives.

I have done exhaustive checking and trial and error and I repeat: this really doesn’t seem to be a ZCR problem but a problem between my hosting provider and Google Mail.
One important thing to note: the e-mails sent during the time that the ZCR “fails” have never arrived. They have been lost in some point between the Earth and Alpha Centauri. Very sad.

Back to the feature request: having such feature could be helpful as an “e-mail sent thru ZCR backup” inside the TxP admin/database. Of course, the problem related above seems to have only affected to me and no one else using ZCR.
But the future is unknow. Maybe (I hope not!) your visitor’s email are being sent right now to Alpha Centauri too!.

Thanks in advance and excuse my english.

Last edited by maniqui (2006-12-13 02:53:04)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#37 2006-12-13 04:32:22

hcgtv
Archived Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

maniqui wrote:

Personally, from time to time, I have problems with the e-mails sent using ZCR: e-mails never arrives to my account.

I think in the fight against spam, our well intentioned scripts are getting ignored somewhere in the smtp stream.

One option would be to go back to the old way of doing things, write out the message to a local text file as a backup record. The plugin could have an option to open up this backup file in a text area where we could manage it.

Offline

#38 2006-12-13 10:40:56

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

There’s no need to add this as a feature to ZCR, because it can be done as a separate plugin that uses a ZCR callback event.

For a website that gets a lot of news items through ZCR, I’ve written a plugin which adds all submissions to a TODO list (a tab on the TXP admin side) where I/we can edit the submission and assign in to various authors (who can even claim the item themselves, if they want).

BTW, if there are specific things, in the emails that ZCR sends, that anti-spam tools are picking up as spam, then I’d love to hear about it, because chances are that it can be fixed.

Last edited by ruud (2006-12-13 10:43:58)

Offline

#39 2006-12-15 01:05:47

jrphelps
Member
From: Fort Worth, TX
Registered: 2006-07-13
Posts: 30

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

ruud wrote:

  • The ‘to_form’ is now parsed after the main ‘form’ (containing all the input field tags), allowing you to let the ‘to_form’ return an email address based something entered by a visitor.

Can someone go into a little more depth on how to use the to_form parameter? What I would like to do is have a contact form with a select widget where the user selects the category of their contact and that selection determines what email address it goes to. Is this how the to_form is supposed to work? If so, it would be really great is someone could school me on how to achieve what I’m after.

Offline

#40 2006-12-15 12:12:12

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Assuming that you have a zem_contact_select labeled ‘Department’ with the options ‘Support’, ‘Accounting’, ‘Sales’:

<txp:zem_contact_select label="Department" list=",Support,Accounting,Sales" required="yes" />

You could use a to_form like this (not tested, but apart from typing errors it should work):

<txp:php>
global $zem_contact_form;
switch($zem_contact_form['Department']) {
  case 'Support': echo 'crew@example.com'; break;
  case 'Accounting': echo 'dungeon@example.com'; break;
  case 'Sales': echo 'showmethemoney@example.com'; break;
  default: echo 'someone@example.com';
}
</txp:php>

The default email address is to ensure that the form always returns an email address, no matter what happens (in case you forget to add the required attribute or there is a mismatch between the form and the list of options in the select tag.

Last edited by ruud (2006-12-15 12:14:51)

Offline

#41 2006-12-15 14:22:50

jrphelps
Member
From: Fort Worth, TX
Registered: 2006-07-13
Posts: 30

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

ruud, thanks for that. I think I can manage that!

Offline

#42 2006-12-21 22:10:00

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

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Ruud,

Possible bug: If a drop down list item does not have:

1. required element defined (required=yes by default, as I understand it)
2. no forcing the user to choose an option like so: “,yes,no”

Then an error message does not display if the list item is not selected, as it should be, because by default it is required.

Once I change the list item to something like this: list=”,Yes,No” – then the error message displays.

FYI!

Offline

#43 2006-12-21 22:38:03

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Do you mean that if you set list="yes,no" you don’t get an error even if you haven’t explicitly selected an option? If so, that’s normal, because without an empty option, there’s always a valid option selected (usually the first, unless your override it with the selected attribute), so it can’t trigger an error.

Last edited by ruud (2006-12-21 22:38:55)

Offline

#44 2006-12-21 23:27:50

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

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

Yes, forget my last post, I should have thought it through before posting. Its not an error if something is selected :-)

Offline

#45 2006-12-27 15:47:11

Zarabadoo
Member
From: Denver, CO
Registered: 2004-03-14
Posts: 28
Website

Re: Plugin: zem_contact_reborn 4.0.3.18 (old version)

I am assuming the subject_form is supposed to work the same way as the to_form, but I am not getting the results I am expecting. In a nutshell, I want people to be able to use an input box to give us a custom subject line prepended with a tag to designate what site it came from in the email’s subject field. Here is what I have so far:

<txp:zem_contact to="email@address.org" form="2007_email" subject_form="2007_email_subject" label="" />

the 2007_email form is as follows:

<txp:zem_contact_text label="Name" break=": " /><br />
<txp:zem_contact_email label="Email" break=": " /><br />
<txp:zem_contact_text label="Subject" break=": " /><br />
<txp:zem_contact_textarea cols="35" rows"10" label="Message" break=": " /><br />
<txp:zem_contact_submit label="Send message" />

and finally the 2007_email_subject form:

<txp:php>
global $zem_contact_form;
echo "NDK Inquiry - $zem_contact_form['Subject']";
</txp:php>

It is probably something very simple. I am not much of a PHP pro, but I have learned to be able to pick at it a bit. Any insight is appreciated.


—Al “Zarabadoo” Steffen
http://www.zarabadoo.com

Offline

Board footer

Powered by FluxBB