Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#571 2009-03-10 21:02:17
Re: zem_contact_reborn 4.0.3.20
Hi,
How can I use java script for the forms value field so that it is display until the user clicks on the text and it then disappears leaving the space to write in the form – does this make sense?
below is what I think I want it to do, but dont know how/where to put the code
<input type="text" id="q" onblur="if(this.value == ''){this.value = 'Search…'}" onfocus="if(this.value == 'Search…'){this.value = ''}" value="Search…" name="q"/>
This is my current contact form (with postmater used)
<txp:zem_contact_text label="Name" break="" name="zemSubscriberName" size="30" default="Name" required="1"/>
<txp:zem_contact_email label="Email Address" default="Email Address" name="zemSubscriberEmail" break="" size="30" required="1"/>
<txp:zem_contact_submit label="Send" />
Many thanks
Last edited by oliverker (2009-03-11 12:25:36)
Offline
#572 2009-03-16 14:55:50
- dreamer
- Member
- Registered: 2007-06-08
- Posts: 242
Re: zem_contact_reborn 4.0.3.20
I have this form here; http://rockcreeksprings.com/other/maintenance-request but it won’t submit because it says;” Required field, “Building Address”, is missing.”
The forms been working before but all of a sudden, it doesn’t work now. I can’t figure out why it doesn’t work on the backend. Can someone help? This is how it looks on the backend. I checked the Building address field but dont’ see anything out of the ordinary.
<txp:zem_contact_text label=“Full Name” name=“Name” required=“1” min=“2” /><br />
<txp:zem_contact_email required=“1” /><br />
<txp:zem_contact_text label=“Phone (optional)” min=7 max=15 required=“0” /><br />
<txp:zem_contact_text label=“Building Address” name=“BldngNumber” required=“1” /><br />
<txp:zem_contact_text label=“Unit #” name=“Name” required=“1” min=“2” max=“40” /><br />
<txp:zem_contact_select break=“br” label=“Pets” list=“None, Cat, Dog, Other” /><br />
<txp:zem_contact_select break=“br” label=“What needs fixed?” list=“Bedroom, Bathroom, Kitchen, Dining Room, Living Room, Outdoor Area” /><br />
<txp:zem_contact_textarea label=“Description of maintenance request” cols=“40” rows=“10” /><br />
Check off one of the following;<br />
<txp:zem_contact_checkbox label=“I give permission for maintenance to enter my unit.” required=“0” /><br />
<txp:zem_contact_checkbox label=“Please call to set up time for maintenance to enter my unit” required=“0” /><br />
<txp:zem_contact_submit label=“Submit” />
EDIT: Okay, for some reason, the building address field works but now the full name field doesn’t work. It won’t appear in the email when the form is submitted to my account.
Last edited by dreamer (2009-03-16 15:24:33)
Offline
#573 2009-03-16 16:04:20
Re: zem_contact_reborn 4.0.3.20
Clutching at straws here. Note that you use name=“Name” twice, once for the contacters’ name and again for the Unit#.
Offline
#574 2009-03-17 09:24:49
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: zem_contact_reborn 4.0.3.20
Hi everyone. I’ve just released a new plugin – adi_contact – which is designed to be used with zem_contact. It provides:
- submitted field combination check
- submitted field content validation
- anti-spam measures
You’re very welcome to have a play & let me know what you think.
Offline
#575 2009-03-25 23:00:27
- everton11
- New Member
- Registered: 2009-03-25
- Posts: 3
Re: zem_contact_reborn 4.0.3.20
I am a first time user of txp and I just did my first site with it. I am having trouble getting this plug-in to work properly. I used the simple tag of <txp:zem_contact to=“mail@mywebsite.com” /> . The form shows up on the page and when I enter a message to test it gives the “thank you” message, but when I check the mailbox to see if it was received….nothing. No message at all. The e-mail address I am using is valid, so I just can’t understand. I don’t know what I’m doing wrong. Any help would be greatly appreciated.
Offline
#576 2009-03-25 23:13:02
Re: zem_contact_reborn 4.0.3.20
If the form works fine, you might want to check the mail configuration on the server. I suppose that you have also inspected your spam folder, but oh.. this is not a very likely reason.
Offline
#577 2009-03-25 23:51:53
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: zem_contact_reborn 4.0.3.20
Don’t know if it will work for you, but I once solved a similar problem by adding from="mail@mywebsite.com" to the tag.
Last edited by els (2009-03-25 23:56:10)
Offline
#578 2009-03-26 00:33:34
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: zem_contact_reborn 4.0.3.20
I’m experiencing the same exact problem, the “thank you “ message appears but no mail seems to be sent.
I can’t find it now but just yesterday I found a previous post regarding the same problem in which ruud suggests to upload a file called mail.php to the site root with a code similar to this:
<?php mail('your_email_address@example.com', 'php mail test', 'message_sent'); ?>
If you visit this page (yoursite/mail.php) and the message “message_sent” shows up than you have a problem and you should ask your provider – which is what I have already done without answer till now :-(.
Els, I’ve tried your suggestion but unfortunately doesn’t seem to work.
Offline
#579 2009-03-26 10:18:20
- everton11
- New Member
- Registered: 2009-03-25
- Posts: 3
Re: zem_contact_reborn 4.0.3.20
Thanks for the suggestions els and redbot, but neither seems to work. I’ve sent mail from my gmail account to the websites e-mail address and it show up in the inbox just fine. Obviously, something is just not connecting properly between the zem contact form and the websites inbox. I’m just at a loss..
Offline
#580 2009-03-26 10:21:37
Re: zem_contact_reborn 4.0.3.20
May be mail was marked as spam? Sometimes this ha[[ens with my gmail accounts, when i send mail from site with zem_contact_reborn. The solution is simple – unmark messages as “no spam” for some period and they will be added to your “white list”
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
#581 2009-03-26 10:55:46
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: zem_contact_reborn 4.0.3.20
the_ghost wrote:
May be mail was marked as spam? Sometimes this ha[[ens with my gmail accounts, when i send mail from site with zem_contact_reborn. The solution is simple – unmark messages as “no spam” for some period and they will be added to your “white list”
Thank you, this is the first thing I thought but no, its not my case.
everton11,
Have you tried to ask your hosting? Unfortunately I’m experiencing the problem with an existing site hosted by a seemingly not so collaborative hosting company. I have no access to a control panel, to error logs, nothing… and they keep ignoring my questions. grrrr
Last edited by redbot (2009-03-26 11:20:14)
Offline
#582 2009-03-26 12:00:34
Re: zem_contact_reborn 4.0.3.20
Redbot,
Do you receive mail from TXP itself, for instance when you create a new temporary user (i.e. yourself at your email address)? Do you need to add a valid domain email address to the TXP advanced option SMTP envelope sender address to make this happen? If the answer to both is Yes, then your host may have restrictions on the use of php mail() which both TXP Admin and ZCR use to send email. The SMTP envelope email address arrangement only operates on TXP, not plugins like ZCR that use php mail().
If the answer to the first question above is No, even when you have a valid domain email address in the TXP advanced option SMTP envelope sender address then your host may have disabled php mail() completely. Some Hosts restrict or ban use of this function as an anti-spam/security measure.
Last edited by joebaich (2009-03-26 12:05:12)
Offline
#583 2009-03-26 12:06:28
- everton11
- New Member
- Registered: 2009-03-25
- Posts: 3
Re: zem_contact_reborn 4.0.3.20
This must be the problem. This is from the Knowledgebase at WebFaction support:
“The “issue” is that we currently do not have local instance of Sendmail running on our shared servers, which is the reason why you can’t use PHP mail() function as is (which relies on the local instance of the Sendmail compatible mail transfer agent interface). The reasoning behind this is to help circumvent spam and possible abuse of the system.
Instead, you need to use some SMTP server and properly authenticate before you can send mail. You can use your WebFaction supplied SMTP server or any other you see fit.”
I still don’t know where to go from here.
Offline
#584 2009-03-26 12:30:14
Re: zem_contact_reborn 4.0.3.20
See the posts here for the best solution. I use WebFaction to host some sites, and it works perfectly. Note the need to add the fix to ZCR and any other plugins that use php mail() too. I use the same method to fix a similar problem with Mosso who place restrictions on php mail(). The SMTP envelope sender address option takes care of TXP’s admin but not plug-ins.
Last edited by joebaich (2009-03-26 12:30:41)
Offline
#585 2009-03-26 12:52:21
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: zem_contact_reborn 4.0.3.20
joebaich wrote:
…Do you receive mail from TXP itself, for instance when you create a new temporary user (i.e. yourself at your email address)? Do you need to add a valid domain email address to the TXP advanced option SMTP envelope sender address to make this happen? If the answer to both is Yes, then your host may have restrictions on the use of php mail() which both TXP Admin and ZCR use to send email. The SMTP envelope email address arrangement only operates on TXP, not plugins like ZCR that use php mail()….
Joe,
first of all thanks for your help, very appreciated,
secondly you are right: I’ve noticed txp itself doesn’t send emails if I don’t add a valid domain email address to the TXP advanced option “SMTP envelope sender address” (I have developed the site in a local environment and I didn’t add any user since the site is online so I never realized that).
So my answer is “yes” to both your questions.
Do you think there is something I can do to make zcr work?
edit Oops now I see you have already answered. I’ll investigate further and let you know how it goes, thanks!
Last edited by redbot (2009-03-26 12:55:13)
Offline