Page 4 of 14 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 131
  1. #31
    Join Date
    Jul 2011
    Location
    Glasgow, Scotland
    Posts
    113
    Plugin Contributions
    1

    Default Re: Simple CSS/PHP AntiSpam solution for your contact form

    Quote Originally Posted by MagicMan View Post
    I tried using this with the Create Account Page and after customer filled out form and hit submit, it just redirected to a blank page and no customer was created.

    I have removed it to see if I could figure out what is wrong.
    Hi hope you don't mind a newbie trying to help, but I think I had the same issue till I read all the posts and pulled together a fix from everything.
    Might even get my knuckles rapped for jumping in but here we go.

    [legend] * * change to your file/folder name

    modules/pages/*pagename*/header_php.php

    after the line (around line 18):

    $enquiry = zen_db_prepare_input(strip_tags($_POST['enquiry']));

    add this:

    $leaveblank = zen_db_prepare_input(strip_tags($_POST["leaveblank"]));

    edit the line: (around line 23)

    as follows:

    if ($zc_validate_email and !empty($enquiry) and !empty($name) and !empty($subject) and empty($leaveblank)) {

    Alternatively edit the line: (around line 23)

    if ($zc_validate_email and !empty($name)and empty($leaveblank)) {

    add this line: (around line 80)

    //add this test that kills the page if the field was not empty.
    if (empty($enquiry)) {
    $messageStack->add('contact', ENTRY_EMAIL_CONTENT_CHECK_ERROR);
    }

    if (!empty($leaveblank)) {
    exit;
    }

    Alternatively add this:

    //add this test that kills the page if the field was not empty.
    if (!empty($leaveblank)) {
    zen_redirect(zen_href_link(FILENAME_CONTACT_US, 'action=success'));
    }

    I may have it completely wrong, and if so (@those with knowledge please be gentle)

    1. the origional mod did send a bot to an empty page.
    2. I think it was doing the error action on the empty field and not if the field was not empty.

    I have implement the above mods to my contact us page and it seem to be working. you can check it out at AML Camdles

    Hope I've been of help Billy.

  2. #32
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Simple CSS/PHP AntiSpam solution for your contact form

    @BillyBoyle, two issues with your post.

    You quoted someone trying to use the code for Create Account page but showed code for Contact Us page.

    Your Contact Us page does not have a blank input field. Did you remember to also edit:
    includes/templates/YOUR_TEMPLATE/templates/tpl_contact_us_default.php

  3. #33
    Join Date
    Jul 2011
    Location
    Glasgow, Scotland
    Posts
    113
    Plugin Contributions
    1

    Default Re: Simple CSS/PHP AntiSpam solution for your contact form

    @Website Rob

    Thanks for the input friend, allways welcome.

    1. As I said I only pulled together bits of info from other posts in the thread.

    Pehaps you or even the [OP] could take this further and show us new guys where to put the code in the relevant files. I know it would sure help me out.

    2. Yes I have. It's just masked well, better that I thought even. Right under where it asks for your email address.

    I don't mean it's just "blank" it's in camoflage.

  4. #34
    Join Date
    Jul 2011
    Location
    Glasgow, Scotland
    Posts
    113
    Plugin Contributions
    1

    Default Re: Simple CSS/PHP AntiSpam solution for your contact form

    @dw08gm Thanks

    Still no mail from Joe.

  5. #35
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Simple CSS/PHP AntiSpam solution for your contact form

    I see it now and called: Confirm Email

    That is somewhat confusing as there is a legitimate module for Confirming eMail address that is used by many people. You don't need to name the hidden input field. Just having the blank input field is enough.

    Previous posts have stated where & how to make changes so not sure why you are asking to state it again?

  6. #36
    Join Date
    Jul 2011
    Location
    Glasgow, Scotland
    Posts
    113
    Plugin Contributions
    1

    Default Re: Simple CSS/PHP AntiSpam solution for your contact form

    Quote Originally Posted by Website Rob View Post
    I see it now and called: Confirm Email

    Just having the blank input field is enough.

    Previous posts have stated where & how to make changes so not sure why you are asking to state it again?
    Probably just a bit of over coding by a new guy. only been learning over the last 6 weeks.

    was really half a sleep the first night night I was looking through this. I'll start from the front again and work my way through.

    Thanks for the in put.

    btw I like your tag.
    Learning is in the doing!

  7. #37
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Simple CSS/PHP AntiSpam solution for your contact form

    Quote Originally Posted by Website Rob View Post
    That is somewhat confusing as there is a legitimate module for Confirming eMail address that is used by many people. You don't need to name the hidden input field. Just having the blank input field is enough.
    Confirm email was only given as an example.
    You can name the field anything you like, eg favorite color or food.
    You can even rename "leaveblank" to suit.


    ps Looks like joe hit a wall.

  8. #38
    Join Date
    May 2007
    Posts
    471
    Plugin Contributions
    0

    Default Re: Simple CSS/PHP AntiSpam solution for your contact form

    Has this actually worked for anyone on 1.3.9H? I just tried implementing it and have had 5 more fake accounts created since....
    Jill || I Love Zen Cart Templates || 2 Dogs Design
    I Love To Help But Let's Keep It Public Please To Help Others!

  9. #39
    Join Date
    Jan 2007
    Posts
    1,484
    Plugin Contributions
    10

    Default Re: Simple CSS/PHP AntiSpam solution for your contact form

    Quote Originally Posted by jill8026 View Post
    Has this actually worked for anyone on 1.3.9H? I just tried implementing it and have had 5 more fake accounts created since....
    I have it on 1.3.9h and it works like advertised. I have it on for many months and not a single fake account or email. Are you sure you have it installed correctly? Have you looked at the page with css off and filled in the form with the hidden field to see if it works like it's supposed to?

    Zen Cart and it's community are the best!!

  10. #40
    Join Date
    May 2007
    Posts
    471
    Plugin Contributions
    0

    Default Re: Simple CSS/PHP AntiSpam solution for your contact form

    Hi Lankeeyeankee....I did I checked it like 3 times and had another developer take a look for me as well....the field showed up fine when inline was disabled...field was renamed and everything was in place....it just wasn't working...I wound just putting a block for all China IP's on my server....
    Jill || I Love Zen Cart Templates || 2 Dogs Design
    I Love To Help But Let's Keep It Public Please To Help Others!

 

 
Page 4 of 14 FirstFirst ... 23456 ... LastLast

Similar Threads

  1. v150 Contact Form PHP help
    By valsurfer101 in forum General Questions
    Replies: 1
    Last Post: 18 Sep 2012, 07:43 PM
  2. One solution for selling simple link product, but limited
    By estertester in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 23 Jun 2009, 07:32 AM
  3. Move Contact Us form above define_contact_us.php
    By swiss1939 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Nov 2008, 02:39 PM
  4. Contact Us form CSS
    By tee-dot in forum General Questions
    Replies: 6
    Last Post: 29 Jul 2008, 08:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR