Re: Abbington Mega Template Support Thread
Hi Anne,
Thank you again for the wonderful template. I have recently run into a problem where bots are sending spam (about every two minutes) via the Website Enquiry (contact us) form. I did some digging on the forum and ran across the post below, but I'm wondering if the Mega template uses different files other than the ones mentioned. I made all the changes per the instructions below, but we are still receiving the spam as if I made no changes at all.
Here is the information and changes I made from another post:
started getting a lot of spam recently via my "contact us" form. looked all over this forum and did not find a decent solution, so i started googling around.. Found this site:
nfriedly.com/techblog/2009/11/how-to-build-a-spam-free-contact-forms-without-captchas/
and was able to get their solutions working with zen cart.
here are the changes that i had to make:
file: /store/includes/templates/your_template/templates/tpl_contact_us_default.php
need to add the invisible label and input field to the contact us form.
old code:
PHP Code:
<fieldset id="contactUsForm">
new code:
PHP Code:
<fieldset id="contactUsForm">
<label class="inputLabel" style="display:none;" >Leave this empty:</label>
<input name="url" style="display:none;" />
file: /store/includes/modules/pages/contact_us/header.php
need to check if this invisible url input field in the form has been filled out. Only send the message if the hidden field is blank.
old code:
PHP Code:
// Send message
zen_mail($send_to_name, $send_to_email, EMAIL_SUBJECT, $text_message, $name, $email_address, $html_msg,'contact_us');
new code:
PHP Code:
// Send message
// if the url field is not set or set and is empty
if( !isset($_POST['url']) || ((isset($_POST['url']) && $_POST['url'] == ''))){
zen_mail($send_to_name, $send_to_email, EMAIL_SUBJECT, $text_message, $name, $email_address, $html_msg,'contact_us');
}
Re: Abbington Mega Template Support Thread
Quote:
Originally Posted by
1atom12
Hi Anne,
Thank you again for the wonderful template. I have recently run into a problem where bots are sending spam (about every two minutes) via the Website Enquiry (contact us) form. I did some digging on the forum and ran across the post below, but I'm wondering if the Mega template uses different files other than the ones mentioned. I made all the changes per the instructions below, but we are still receiving the spam as if I made no changes at all.
Here is the information and changes I made from another post:
started getting a lot of spam recently via my "contact us" form. looked all over this forum and did not find a decent solution, so i started googling around.. Found this site:
nfriedly.com/techblog/2009/11/how-to-build-a-spam-free-contact-forms-without-captchas/
and was able to get their solutions working with zen cart.
here are the changes that i had to make:
file: /store/includes/templates/your_template/templates/tpl_contact_us_default.php
need to add the invisible label and input field to the contact us form.
old code:
PHP Code:
<fieldset id="contactUsForm">
new code:
PHP Code:
<fieldset id="contactUsForm">
<label class="inputLabel" style="display:none;" >Leave this empty:</label>
<input name="url" style="display:none;" />
file: /store/includes/modules/pages/contact_us/header.php
need to check if this invisible url input field in the form has been filled out. Only send the message if the hidden field is blank.
old code:
PHP Code:
// Send message
zen_mail($send_to_name, $send_to_email, EMAIL_SUBJECT, $text_message, $name, $email_address, $html_msg,'contact_us');
new code:
PHP Code:
// Send message
// if the url field is not set or set and is empty
if( !isset($_POST['url']) || ((isset($_POST['url']) && $_POST['url'] == ''))){
zen_mail($send_to_name, $send_to_email, EMAIL_SUBJECT, $text_message, $name, $email_address, $html_msg,'contact_us');
}
Does the captcha you added show on the contact form in the drop down? You can always hide the header contact form by adding:
Code:
.contactus-li{display:none;}
to the stylesheet_mega_menu.css file.
Thanks,
Anne
Thanks,
Anne
Re: Abbington Mega Template Support Thread
Alrighty then, I have everything fixed I broke during our spam attack with the exception of our hovering "Contact Us" form. If you click on the "Contact Us" and fill out the built in form, it works perfectly. However, if you fill out the quick form that pops up when you hover, the email is never sent and it takes you to the 404 page... Can anyone tell me where I messed this up?
http://www.heathersheavenlyvapes.com
Re: Abbington Mega Template Support Thread
Ok... No idea why, but the hover form is now working...
Re: Abbington Mega Template Support Thread
Quote:
Originally Posted by
1atom12
Ok... No idea why, but the hover form is now working...
That's great ;-) The form works out of the box in the template package available for free download here.
Thanks,
Anne
Re: Abbington Mega Template Support Thread
Is there anyway to add CAPTCHA to the drop down "Contact Us" form on the mega-menu?
I have it working on the regular "Contact Us" form, but if you fill out the drop down and hit submit
it goes to the regular form and gives an error "You did not enter the proper code"and you have to re-type your message.
Any help would be appreciated. ( I am using the TTF CAPTCHA Plugin from the Zen-Cart Plug ins.
Re: Abbington Mega Template Support Thread
Hello Anne,
I would like to add my congratulations for a STUNNING template and most importantly EXCEPTIONAL readme file(s) - the instructions are faultless (I only wish the instructions for most other plug-ins were half as good, it would save gazillions of man hours in here by many :) ).
One question - I am in the process of doing a logo image and I am hopeless at such things so I do not know if I will be able to achieve a transparent image - so what is the 6 digit colour code for the colour of the header area where the logo goes (and indeed the page background) - the closest I can get is #EFEFEF
cheers,
Mike
p.s. once I have filled the site with our stunning sterling silver jewellery on your superb colour scheme I will add it to your Facebook page.
Re: Abbington Mega Template Support Thread
Quote:
Originally Posted by
shags38
Hello Anne,
I would like to add my congratulations for a STUNNING template and most importantly EXCEPTIONAL readme file(s) - the instructions are faultless (I only wish the instructions for most other plug-ins were half as good, it would save gazillions of man hours in here by many :) ).
One question - I am in the process of doing a logo image and I am hopeless at such things so I do not know if I will be able to achieve a transparent image - so what is the 6 digit colour code for the colour of the header area where the logo goes (and indeed the page background) - the closest I can get is #EFEFEF
cheers,
Mike
p.s. once I have filled the site with our stunning sterling silver jewellery on your superb colour scheme I will add it to your Facebook page.
Thank you so much for your kind words ;-) The hex color for the background is #ecebf0.
Thanks,
Anne
1 Attachment(s)
Re: Abbington Mega Template Support Thread
For some reason, when you click on Customer Service the text goes off the page. How do I correct this?
Attachment 11006
Re: Abbington Mega Template Support Thread
Quote:
Originally Posted by
Pablo
For some reason, when you click on Customer Service the text goes off the page. How do I correct this?
Attachment 11006
If you post a link to your site I can take a look.
Thanks,
Anne