Page 2 of 14 FirstFirst 123412 ... LastLast
Results 11 to 20 of 131
  1. #11
    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 Chris-GPW View Post
    I've worked out how to get it into the contact us page.

    Could someone give me a couple of pointers for the account registration page please.
    It will be the exact same way, just change contact_us to create_account in all of the files and directories from the first post and you should be all set finding and altering the files.

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

  2. #12
    Join Date
    Aug 2007
    Location
    Fort Worth, Texas, United States
    Posts
    177
    Plugin Contributions
    0

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

    Great job with this! I would like to add it to create account but I'm afraid to update it with the current instructions. If anyone wants to spell it out on exactly where to update the header.php file for create account, I would be very grateful. Otherwise, I love what I got so far.

  3. #13
    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 TrvlFox View Post
    Great job with this! I would like to add it to create account but I'm afraid to update it with the current instructions. If anyone wants to spell it out on exactly where to update the header.php file for create account, I would be very grateful. Otherwise, I love what I got so far.
    It's in the same directory that all of the other pages' header_php file resides.
    includes>modules>pages>create_account>header_php.php.

    And you will do the same steps as the other pages, looking for the field section(where they put in their name, email etc) and the error processing section, etc in the header_php file. Then just insert the extra field in the template file.

    A great benefit from this is now I can turn on the allow guest to tell a friend function without a zillion spams being sent from it. Just edit the same set of files for tell_a_friend the same way as the rest. This has boosted traffic and conversions and is really worth it.

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

  4. #14
    Join Date
    Jul 2010
    Location
    Sydney, Australia
    Posts
    86
    Plugin Contributions
    0

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

    Has anyone test this with 1.3.9h?

    I'm just building my site for the first time now. Since I never had spam to deal with and choose not to wait until I get spam for me to install this module, how can I test if I've installed it correctly?
    relatively new to Zen Cart

  5. #15
    Join Date
    Jul 2010
    Location
    Sydney, Australia
    Posts
    86
    Plugin Contributions
    0

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

    Quote Originally Posted by dw08gm View Post
    1. Found the following hides well in templates/tpl_whatever.

    Code:
    <div style="visibility:hidden; display:none;">
    <label class="inputLabel" for="confirm_email">Confirm Email: </label>
    <input id="confirm_email" name="leaveblank" type="text"><span class="alert"><strong>&nbsp;*&nbsp;</strong></span>
    <br class="clearBoth" />
    </div>
    2. Also replaced the following in modules/pages/whatever/header_php.php

    Code:
    	if (!empty($leaveblank)) {
          exit;
        }
    with

    Code:
    	if (!empty($leaveblank)) {
        zen_redirect(zen_href_link(FILENAME_WHATEVER, 'action=success'));
        }
    as it gives the impression of the form passing.

    Cheers and thanks for the heads up.
    Could you please elaborate for us newbs what 'FILENAME_WHATEVER' should actually be? thanks
    relatively new to Zen Cart

  6. #16
    Join Date
    Jul 2010
    Location
    Sydney, Australia
    Posts
    86
    Plugin Contributions
    0

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

    I attempted to install the changes. I ran the firefox extension, disabled inline css and found the extra box there. I have an error though and that is when I'm running the site normally and enter all the fields, the page returns an error saying not all the information has been entered. Please try it on my page

    http://qnecomputing.com.au/index.php...us&action=send
    relatively new to Zen Cart

  7. #17
    Join Date
    Jul 2010
    Location
    Sydney, Australia
    Posts
    86
    Plugin Contributions
    0

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

    I found the solution to the problem I had previously discussed.

    for some reason, I didn't have a subject box and in the code in this thread , the line '!empty($name) and !empty($subject) and empty($leaveblank)) {' can't be used because when a real person submits enter, zen cart will be waiting for an entry in a subject box that doesn't exist, so just modify the line by

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

    alone
    relatively new to Zen Cart

  8. #18
    Join Date
    Jul 2011
    Location
    Glasgow, Scotland
    Posts
    113
    Plugin Contributions
    1

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

    Is anyone watching this thread?
    Could do with a holding hads type walk through.

    Tried implementing this mod and all that happened was "NOTHING" no email sent from the site, while logged in or not. did not show message had been sent :sucess page just sat there looinh glum.
    Please help.


  9. #19
    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 BillyBoyle View Post
    Is anyone watching this thread?
    Could do with a holding hads type walk through.

    Tried implementing this mod and all that happened was "NOTHING" no email sent from the site, while logged in or not. did not show message had been sent :sucess page just sat there looinh glum.
    Please help.

    It's not supposed to send the email, that's the intended effect. To prevent spam.

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

  10. #20
    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 lankeeyankee View Post
    It's not supposed to send the email, that's the intended effect. To prevent spam.
    Yes I get that.
    At 2:15 in the morning my powers of writing what I mean go right out the window.

    The contact us form is sending the email, or it's not a contact form I get that. this nifty piece of code stops the sending of the email if the extra field gets filled in, I get that to,

    What I am not getting is:

    In normal operation a human fills in the fields and clicks send.
    the form should send an email to the store owner, right.

    What's happening when I apply this mod is;
    In normal operation a human fills in the visable fields and clicks send and the form does not send the email to the store owner.

    i.e. does not work.

    I checked the form in firefox dev-mode, the hiden field is there and is blank.
    when I input :name; :email; :subject
    The form does nothing. No error message no redirect to :main_page=contact_us&action=success
    I am sure that if it did not "work" for others there would be more questions relating to that.

    I will try again to apply this mod now that I've had a few hours sleep, and hopefully thinking a lot clearer, (maybe not having to go back and edit a lot of typos).

    One thing I am glad of though finding another post in the forum that someone actully watches and responds to .
    Last edited by BillyBoyle; 2 Sep 2011 at 09:53 AM. Reason: spelling and typos

 

 
Page 2 of 14 FirstFirst 123412 ... 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