Announcement

Collapse
No announcement yet.

tutorial: stop spam with a contact form captcha

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    Don't worry Mal - if your picture was there I would always click on you


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #47
      Jont i seriously wonder how much the MiL has had on you this last year, i am really concerned for the responses recieved lately, they are almost disturbing maybe not as much as Gabe but its a slippery slope

      Ohhhh morning Miss Bumps, what you doing here anyway your suppose to be enjoying a weekend away

      D

      Comment


        #48
        Originally posted by RuralWeb
        Brilliant - a sure fire way to never get any emails
        going by most peoples performance i recon none of us would ever get emails, of any sorts

        Hey tracey did you try the men one ?

        Comment


          #49
          on the law of averages im a robot

          mmmmmmmm
          Remembering the road to Actinic enlightenment is a long and sometimes painful one.
          Current project:
          cheapadulttoys4u.co.uk
          cheaplingerie4u.co.uk
          Something for the Missus,Something for the Weekend

          Comment


            #50
            Originally posted by Darren B
            they are almost disturbing maybe not as much as Gabe but its a slippery slope
            My destiny is almost fulfilled


            Bikster
            SellerDeck Designs and Responsive Themes

            Comment


              #51
              Originally posted by Darren B
              going by most peoples performance i recon none of us would ever get emails, of any sorts

              Hey tracey did you try the men one ?

              morning off shopping in a bit

              and no, didn't switch to men
              hehe
              Tracey

              Comment


                #52
                Originally posted by jont
                My destiny is almost fulfilled
                Hmmmmm is there a Royal Society For the Prevention Of Cruelty to Adults i recon you have a good case against her you know

                Comment


                  #53
                  Originally posted by budgetbumps
                  morning off shopping in a bit
                  Bloody hell you go easy girl, your be all shopped out at this rate

                  D

                  Comment


                    #54
                    Firstly, sorry for bumping such an old thread. I've attempted to install this on a test site using Actinic 8.5.2.0.0.0 HMVA.

                    I have placed all files as necessary at the server root, and made the necessary changes to 'Works best with Smart', 'Works best with Smart brochure pages' and the 'Contact Us Bulk Area' layout pages.

                    I can navigate to the contact page, and the captcha appears as expected. I enter name, email, subject and the email content, click submit - i receive the error telling me to enter the captcha word. I enter the word correctly, press submit, and the contact page displays an error at the top, saying:

                    Code:
                    "Name:" is required.
                    "Subject:" is required.
                    "Email Address:" is required.
                    "Message:" is required.
                    Perhaps this is because I've misplaced the Contact Us Bulk Area sheet, here's the code for that:

                    Code:
                    <input type="hidden" name="RANDOM" value="<actinic:variable name='Random'/>" />
                              
                    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">
                       <!-- Hidden field when in trial mode -->
                       <input type="hidden" name="SHOP" value="<Actinic:Variable Name="HiddenFields"/>" />
                    </actinic:block>
                    
                    <actinic:variable Name="ValidationError"/>
                      
                    <table cellpadding="3" cellspacing="0">
                       <tr> 
                          <td width="15">&nbsp;</td>
                          <td colspan="2">
                             <strong><Actinic:Variable Name="MailFormHeader"/></strong><br /> 
                             <br />
                          </td>
                       </tr>
                       <tr> 
                          <td>&nbsp;</td>
                          <td>
                             <span class="actrequired"><Actinic:Variable Name="MailFormName"/> *</span> 
                          </td>
                          <td>
                             <input type="text" name="Name" size="50" value="<Actinic:Variable Name="MailFormNameValue"/>" /> 
                          </td>
                       </tr>
                       <tr> 
                          <td>&nbsp;</td>
                          <td>
                             <span class="actrequired"><Actinic:Variable Name="MailFormSubject"/> *</span>
                          </td>
                          <td>
                             <input type="text" name="Subject" size="50" value="<Actinic:Variable Name="MailFormSubjectValue"/>" /> 
                          </td>
                       </tr>
                       <tr> 
                          <td>&nbsp;</td>
                          <td>
                             <span class="actrequired"><Actinic:Variable Name="MailFormEmail"/> *</span>
                          </td>
                          <td>
                             <input type="text" name="EmailAddress" size="50" value="<Actinic:Variable Name="MailFormEmailValue"/>" /> 
                          </td>
                       </tr>
                       <tr> 
                          <td valign="top">&nbsp;</td>
                          <td valign="top">
                             <span class="actrequired"><Actinic:Variable Name="MailFormMessage"/> *</span>
                          </td>
                          <td>
                             <textarea type="text" rows="10" cols="45" name="Message"><Actinic:Variable Name="MailFormMessageValue"/></textarea>
                          </td>
                       </tr>
                    	<tr>
                          <td valign="top">&nbsp;</td>
                    		<td valign="top">
                    			Enter the code as it is shown:<br />
                    			<script language="javascript" type="text/javascript">cimg()</script><br />
                    			<input type=text name="uword" id="uword" value="" size=20><br />
                    			<noscript>[This resource requires a Javascript enabled browser.]</noscript>
                    		</td>
                    	</tr>
                       <tr> 
                          <td valign="top">&nbsp;</td>
                          <td valign="top">&nbsp;</td>
                          <td>
                          <form method="post" action="<Actinic:Variable Name="SendMailPageURL"/>xpy" name="xfrm" onsubmit="return jcap();">
                             <input type="submit" name="ACTION" value="<Actinic:Variable Name="MailFormSendButton"/>" />
                             
                          </td>
                       </tr>
                       <tr> 
                          <td valign="top">&nbsp;</td>
                          <td colspan="2" valign="top">
                             <Actinic:Variable Name="RequiredFields"/> <span class="actrequired"><Actinic:Variable Name="Highlighted"/></span>.
                          </td>
                       </tr>
                    </table>
                    
                    </form>
                    Can anyone identify the problem?

                    Thanks,
                    Grant

                    Comment


                      #55
                      Hi,

                      It looks like your contact us bulk area is missing the first line of code ...
                      Code:
                      <form method="post" action="<Actinic:Variable Name="SendMailPageURL"/>">
                      Add it in right at the top and then save the file and update the site.

                      Kind regards,
                      Bruce King
                      SellerDeck

                      Comment


                        #56
                        Thanks alot Bruce - I remembered I took it out to replace it in the correct library file, but forgot to paste it back in. Now that I've got it half-working.

                        The problem is now that I can enter all the required info, then either leave the captcha blank or enter anything and it'll still send - well, it does show the Email Sent page so I assume it has sent for now. I'll re-read over this topic and see if anyone else had this problem, as I recall reading somewhere on the forums that someone did have this same/similar problem. I'll report my findings.

                        Thanks alot.

                        Edit, I've got it workin I had left the standard unedited SendMailPageURL variable piece of code at the top of the library contact us bulk page, as well as the appended version with javascript variables in tow.

                        Thanks alot guys. Now all I gotta do is get this installed on the site in my sig, which does get spam. All ~200 of them everyday.

                        Cheers

                        Comment


                          #57
                          Yes Gabe,(& all)

                          it works a dream!

                          many thanks

                          Andrew

                          Comment


                            #58
                            Im getting a bit of spam, and this looks good - unfortunately the JS at http://www.interact-studio.co.uk/jcap.zip is a dead link? Any chanc eof replacement link?

                            Comment


                              #59
                              the file is lost forever, however:

                              http://www.archreality.com/jcap/

                              is the guy that write the original.

                              The concepts should be the same.

                              Comment


                                #60
                                So, did anyone apply this method and succeeded?

                                The thread is 4 pages long with lots of "it doesn't work" etc and I'm not sure what to do now.

                                Any chance some other pro programmer could put it all together in a single post?
                                SME Web Solutions - one stop company for all your Web needs
                                SME System Solutions - one stop company for all your IT needs
                                SME Audio Solutions - shop for DJs, Korg nano controllers in stock now.
                                Based in Eastbourne, serving Sussex area.

                                Comment

                                Working...
                                X