Page 5 of 14 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 131
  1. #41
    Join Date
    May 2011
    Posts
    10
    Plugin Contributions
    0

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

    I've been getting around 2-4 fake signups a day.
    Here is a simple interpretation of the contact us version on the first page.

    NOTE: *your_template* should be replaced with the name of your template

    Step 1:
    open:
    /public_html/includes/templates/template_default/templates/tpl_modules_create_account.php

    insert:
    <input style="visibility:hidden; display:none;" name="leaveblank" type="text">
    (mine went to line 78)

    save to:
    /public_html/includes/templates/*your_template*/templates/tpl_modules_create_account.php



    Step 2:
    open
    /public_html/includes/modules/create_account.php

    insert:
    $leaveblank = zen_db_prepare_input($_POST["leaveblank"]);
    (mine went to line 93)

    insert:
    // hidden anti-spam field
    if(empty($leaveblank)) {
    $error = true;
    }
    (mine went to 493)

    save to:
    /public_html/includes/modules/*your_template*/create_account.php


    I guess I'll find out tomorrow if it works against bots.

  2. #42
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

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

    Quote Originally Posted by devolutio View Post
    I've been getting around 2-4 fake signups a day.
    .......
    .......
    .......
    I guess I'll find out tomorrow if it works against bots.
    Hi devolutio,

    Did it work?

    Thanks,
    Mike

  3. #43
    Join Date
    Feb 2011
    Posts
    43
    Plugin Contributions
    0

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

    Quote Originally Posted by devolutio View Post
    Here is a simple interpretation of the contact us version on the first page....
    I guess I'll find out tomorrow if it works against bots.
    X2 on that question. Did that work? Also when you inserted the code in the two files does it need to go any certain place (beginning/end)? Since I'm not an expert at programming any further simple instruction on making this work for the Registration page would be appreciated. Thanks!

  4. #44
    Join Date
    May 2011
    Posts
    10
    Plugin Contributions
    0

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

    Quote Originally Posted by OnlySeaDoo View Post
    X2 on that question. Did that work? Also when you inserted the code in the two files does it need to go any certain place (beginning/end)? Since I'm not an expert at programming any further simple instruction on making this work for the Registration page would be appreciated. Thanks!
    Almost 2 weeks and not a single fake signup.

    As for where to insert the code, I put in brackets what line I inserted my code... ie (mine went to line 78).

    Be sure to make a backup of any files you are about to edit (if not your entire site), and try to insert the code as close to where I inserted it. Have a look at the line I've specified and you should get the idea.

  5. #45
    Join Date
    Jan 2011
    Posts
    6
    Plugin Contributions
    0

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

    can someone upload the php files? so i can see where you have put the lines ?

  6. #46
    Join Date
    May 2011
    Posts
    10
    Plugin Contributions
    0

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

    don't take this the wrong way, but if you can't work out what to do with what i've given, I dare say you shouldn't be editing files that WILL STOP customers from shopping at your store if you get it wrong...

    good luck!

  7. #47
    Join Date
    Jan 2009
    Location
    The Netherlands/Germany
    Posts
    142
    Plugin Contributions
    12

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

    Iǘe prepared the files with this CSS trick for login... see attachment.

    Use at own risk off course .
    Attached Files Attached Files
    I came, I saw, I got zenned... :)

  8. #48
    Join Date
    Oct 2004
    Location
    Montana
    Posts
    53
    Plugin Contributions
    0

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

    Just a note: Eentje's files are from 2007. You might want to merge into the current 1.39h files before using them.

  9. #49
    Join Date
    Jan 2009
    Location
    The Netherlands/Germany
    Posts
    142
    Plugin Contributions
    12

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

    You are right these are the files from 1.3.8a i forgot to mention.

    But the 1.3.9 files are not that much different and when you open the files in an editor you'll see the additions clearly marked.

    As it is past midnight here i'll make the files for 1.3.9 in the morning.
    I came, I saw, I got zenned... :)

  10. #50
    Join Date
    Oct 2004
    Location
    Montana
    Posts
    53
    Plugin Contributions
    0

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

    if (!empty($leaveblank)) {
    zen_redirect(zen_href_link(FILENAME_DEFAULT));

    I wish we could send the bots somewhere good. I'd like to send them off the site, at least.

 

 
Page 5 of 14 FirstFirst ... 34567 ... 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