NolaMan Posted June 3, 2009 Share Posted June 3, 2009 Anyone know if this will work (or have it working) with the Super Contact us enhancement contribution? I have that installed on my site and the contact form is using a dropdown option to send the email to either of 2 different email addresses (ie: Support or Sales). Will recaptcha work if a form has 2 or more email possibilities? Thanks! - Ken Quote Link to comment Share on other sites More sharing options...
blr044 Posted June 3, 2009 Share Posted June 3, 2009 (edited) Do not need to post this twice, oart of the previous was for another mod. Sorry for the mistake. My question for this mod is as below: I do not see a post for this small issue.I have the lastest contribution installed. All forms pages and the contact us page, I notice an error message in the task bar at bottom of browser. It reads as following: Done, but with errors on page. Now when I remove the code from the pages, the error message is gone. I only see this error message in IE8, not firefox. Even tried a few others, nor error message in the tasl bar. Now I do not know if this affects IE7 and less. So is there something I need to add or change? Thanks. Bennett Edited June 3, 2009 by blr044 Quote Link to comment Share on other sites More sharing options...
dforce Posted July 18, 2009 Share Posted July 18, 2009 Do not need to post this twice, oart of the previous was for another mod. Sorry for the mistake. My question for this mod is as below: I do not see a post for this small issue.I have the lastest contribution installed. All forms pages and the contact us page, I notice an error message in the task bar at bottom of browser. It reads as following: Done, but with errors on page. Now when I remove the code from the pages, the error message is gone. I only see this error message in IE8, not firefox. Even tried a few others, nor error message in the tasl bar. Now I do not know if this affects IE7 and less. So is there something I need to add or change? Thanks. Bennett Right i believe i have solved this problem. My code was doing the same and i was using the integrated look and the css would not change and colours at all, untill i replaced the following code. <!-- start modification for reCaptcha --> <tr> <td class="main"><?php echo ENTRY_SECURITY_CHECK1; ?></td> </tr> <tr> <?php $languages_query = tep_db_query("select code from " . TABLE_LANGUAGES . " where directory = '" . $language . "'"); $language_id = tep_db_fetch_array($languages_query); ?> <script> var RecaptchaOptions = { theme : 'white', tabindex : 3, lang : '<?php if (in_array($language_id['code'] ,array('en', 'nl', 'fr', 'de', 'pt', 'ru', 'es', 'tr'))) {echo $language_id['code']; } else {echo 'en'; } ?>', }; </script> <td><?php echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY); ?></td> </tr> <!-- end modification for reCaptcha --> With the code below. <!-- start modification for reCaptcha --> <tr> <td class="main"><b><?php echo ENTRY_SECURITY_CHECK1; ?></b></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" cellspacing="2" cellpadding="2"> <tr> <?php $languages_query = tep_db_query("select code from " . TABLE_LANGUAGES . " where directory = '" . $language . "'"); $language_id = tep_db_fetch_array($languages_query); ?> <script> var RecaptchaOptions = { theme : 'clean', tabindex : 3, lang : '<?php if (in_array($language_id['code'] ,array('en', 'nl', 'fr', 'de', 'pt', 'ru', 'es', 'tr'))) {echo $language_id['code']; } else {echo 'en'; } ?>' }; </script> <td><?php echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY); ?></td> </tr> </table></td> </tr> </table></td> </tr> <!-- end modification for reCaptcha --> It was the comma that was creating the problem and also stopping the css to work. (see ---Remove , ---) lang : '<?php if (in_array($language_id['code'] ,array('en', 'nl', 'fr', 'de', 'pt', 'ru', 'es', 'tr'))) {echo $language_id['code']; } else {echo 'en'; } ?>', --Remove , --- }; Hope this helps and it works on all pages this code is added to.. Thanks to the original coders of this contribution... NICE ONE>>> :blush: Quote Link to comment Share on other sites More sharing options...
jwilkins Posted July 18, 2009 Share Posted July 18, 2009 (edited) Hi All, Just an FYI for those who want the integrated Recaptcha code to validate to XHTML Transitional 1.0 (and most probably other doctypes) a couple change need to be made (to all files) Example - contact_us.php Instead of original code: <!-- start modification for reCaptcha --> <tr> <td class="main"><b><?php echo ENTRY_SECURITY_CHECK1; ?></b></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" cellspacing="2" cellpadding="2"> <tr> <?php $languages_query = tep_db_query("select code from " . TABLE_LANGUAGES . " where directory = '" . $language . "'"); $language_id = tep_db_fetch_array($languages_query); ?> <script> var RecaptchaOptions = { theme : 'clean', tabindex : 3, lang : '<?php if (in_array($language_id['code'] ,array('en', 'nl', 'fr', 'de', 'pt', 'ru', 'es', 'tr'))) {echo $language_id['code']; } else {echo 'en'; } ?>' }; </script> <td><?php echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY); ?></td> </tr> </table></td> </tr> </table></td> </tr> <!-- end modification for reCaptcha --> Find </head> (in all catalog pages where oscRcaptcha has been applied) and do the following: <script language="javascript" type="text/javascript"><!-- var RecaptchaOptions = { theme : 'clean', tabindex : 3, lang : '<?php if (in_array($language_id['code'] ,array('en', 'nl', 'fr', 'de', 'pt', 'ru', 'es', 'tr'))) {echo $language_id['code']; } else {echo 'en'; } ?>' }; //--></script> </head> I.e - remove the embeded javascript from the html content of the page to show as such (for contact_us.php - but should be replicated for all other files) <!-- start modification for reCaptcha --> <tr> <td class="main"><?php echo ENTRY_SECURITY_CHECK; ?></td> </tr> <tr> <?php $languages_query = tep_db_query("select code from " . TABLE_LANGUAGES . " where directory = '" . $language . "'"); $language_id = tep_db_fetch_array($languages_query); ?> <td><?php echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY); ?></td> </tr> <!-- end modification for reCaptcha --> Notice that only the 'javascript' element has been re-placed from the original code instructions and inserted within the <head> </head> section of the file. I hope this helps! Regards, James Edited July 18, 2009 by jwilkins Quote Link to comment Share on other sites More sharing options...
Guest Posted October 5, 2009 Share Posted October 5, 2009 Hoping that somebody has run into this issue and figured out a way to resolve it: After installing this mod, when a user attempts to register on the site and clicks the 'Continue' button on the 'New User' registration step (I've tested this in IE7) they are prompted with a dialog saying "This page contains both secure and nonsecure items. Do you want to display the nonsecure items?" If the user clicks 'No' then the recaptcha.net box never appears on the next page (create_account.php) and they can't proceed. How can we prevent this from happening? It's causing confusion for some users. Thanks. Quote Link to comment Share on other sites More sharing options...
SLiCK_303 Posted January 29, 2010 Share Posted January 29, 2010 (edited) Thanx for great mod, here are instructions for adding v1.4.4 to product_reviews_write.php Find this: require('includes/application_top.php'); Insert this AFTER: // start modification for reCaptcha require_once('includes/classes/recaptchalib.php'); // end modification for reCaptcha Find this: if ($error == false) { tep_db_query("insert into " . TABLE_REVIEWS . " (products_id, customers_id, customers_name, reviews_rating, date_added) values ('" . (int)$HTTP_GET_VARS['products_id'] . "', '" . (int)$customer_id . "', '" . tep_db_input($customer['customers_firstname']) . ' ' . tep_db_input($customer['customers_lastname']) . "', '" . tep_db_input($rating) . "', now())"); Insert this BEFORE: // start modification for reCaptcha // the response from reCAPTCHA $resp = null; // was there a reCAPTCHA response? $resp = recaptcha_check_answer (RECAPTCHA_PRIVATE_KEY, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { $error = true; $messageStack->add('review', ENTRY_SECURITY_CHECK_ERROR . " (reCAPTCHA output: " . $resp->error . ")"); } // end modification for reCaptcha ***************************** * Option B: Integrated Look * ***************************** Find this: <td class="main"><?php echo '<b>' . SUB_TITLE_RATING . '</b> ' . TEXT_BAD . ' ' . tep_draw_radio_field('rating', '1') . ' ' . tep_draw_radio_field('rating', '2') . ' ' . tep_draw_radio_field('rating', '3') . ' ' . tep_draw_radio_field('rating', '4') . ' ' . tep_draw_radio_field('rating', '5') . ' ' . TEXT_GOOD; ?></td> </tr> </table></td> </tr> </table></td> </tr> Insert this AFTER: <!-- start modification for reCaptcha --> <tr> <td class="main"><b><?php echo ENTRY_SECURITY_CHECK1; ?></b></td> </tr> <tr> <?php $languages_query = tep_db_query("select code from " . TABLE_LANGUAGES . " where directory = '" . (int)$language . "'"); $language_id = tep_db_fetch_array($languages_query); ?> <script> var RecaptchaOptions = { theme : 'clean', tabindex : 3, lang : '<?php if (in_array($language_id['code'] ,array('en', 'nl', 'fr', 'de', 'pt', 'ru', 'es', 'tr'))) {echo $language_id['code']; } else {echo 'en'; } ?>', }; </script> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><?php echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY); ?></td> </tr> </table></td> </tr> <!-- end modification for reCaptcha --> Edited January 29, 2010 by SLiCK_303 Quote Link to comment Share on other sites More sharing options...
Thinkie Posted March 23, 2010 Share Posted March 23, 2010 Installed recaptcha and works good but the "contact us" form layout is messed up now... Take a look: My link Any ideas how/where to resize or reposition? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
RobC1962 Posted March 23, 2010 Share Posted March 23, 2010 (edited) Details for adding osC reCaptcha to #### PRICE MATCH REQUEST V1.XX #### by deep-silver. Only one file to modify. Integrated look. Check back later ... error found. Edited March 23, 2010 by RobC1962 Quote Link to comment Share on other sites More sharing options...
RobC1962 Posted March 23, 2010 Share Posted March 23, 2010 Details for adding osC reCaptcha to #### PRICE MATCH REQUEST V1.XX #### by deep-silver. This has been tested with both clean and heavily modified osC shops. Only one file to modify. BACKUP BACKUP BACKUP BEFORE STARTING MODIFICATION In price_match.php - Aroud line 15, Find: - require('includes/application_top.php'); add AFTER: - // start modification for reCaptcha require_once('includes/classes/recaptchalib.php'); // end modification for reCaptcha Around line 90-95 find: - if (empty($place_found)) { $error = true; $messageStack->add('price_match', ERROR_PLACE_FOUND); } add AFTER: - // start modification for reCaptcha // the response from reCAPTCHA $resp = null; // was there a reCAPTCHA response? $resp = recaptcha_check_answer (RECAPTCHA_PRIVATE_KEY, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { $error = true; $messageStack->add('price_match', ENTRY_SECURITY_CHECK_ERROR . " (reCAPTCHA outInsert: " . $resp->error . ")"); } // end modification for reCaptcha Around Lines 274-284 find: - <td class="main"><?php echo FORM_FIELD_COMMENT; ?></td> <td class="main"><?php echo tep_draw_textarea_field('comment', 'soft', 40, 8); ?></td> </tr> </table></td> </tr> </table></td> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> </table></td> </tr> Add AFTER: - <!-- start modification for reCaptcha --> <tr> <td class="main"><?php echo ENTRY_SECURITY_CHECK1; ?></td> </tr> <tr> <?php $languages_query = tep_db_query("select code from " . TABLE_LANGUAGES . " where directory = '" . $language . "'"); $language_id = tep_db_fetch_array($languages_query); ?> <script> var RecaptchaOptions = { theme : 'white', tabindex : 3, lang : '<?php if (in_array($language_id['code'] ,array('en', 'nl', 'fr', 'de', 'pt', 'ru', 'es', 'tr'))) {echo $language_id['code']; } else {echo 'en'; } ?>', }; </script> <td><?php echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY); ?></td> </tr> <!-- end modification for reCaptcha --> Provies a reCaptcha below the form field. Quote Link to comment Share on other sites More sharing options...
luckyno Posted March 23, 2010 Share Posted March 23, 2010 I've super contact us enhancement in my shop, but it does not work correctly with recaptcha: <?php /* $Id: contact_us.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US); // start modification for reCaptcha require_once('includes/classes/recaptchalib.php'); // end modification for reCaptcha $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); // BOF Super Contact us enhancement 1.41 $order_id = tep_db_prepare_input($HTTP_POST_VARS['order_id']); if ($order_id <> NULL){ $enquiry = 'Order ID: ' . $order_id . "\n\n" . tep_db_prepare_input($HTTP_POST_VARS['enquiry']); }else{ $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']); } $emailsubject = tep_db_prepare_input($HTTP_POST_VARS['reason']) . ' ' . EMAIL_SUBJECT; // start modification for reCaptcha // the response from reCAPTCHA $resp = null; // was there a reCAPTCHA response? $resp = recaptcha_check_answer (RECAPTCHA_PRIVATE_KEY, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (tep_validate_email($email_address)) { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $emailsubject, $enquiry, $name, $email_address); if (CONTACT_US_LIST !=''){ $send_to_array=explode("," ,CONTACT_US_LIST); preg_match('/\<[^>]+\>/', $send_to_array[$send_to], $send_email_array); $send_to_email= eregi_replace (">", "", $send_email_array[0]); $send_to_email= eregi_replace ("<", "", $send_to_email); tep_mail(preg_replace('/\<[^*]*/', '', $send_to_array[$send_to]), $send_to_email, $emailsubject, $enquiry, $name, $email_address); }else{ tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); //tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=send')); } // EOF Super Contact us enhancement 1.41 } else { if (!tep_validate_email($email_address)) { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } if (!$resp->is_valid) { $error = true; $messageStack->add('contact', ENTRY_SECURITY_CHECK_ERROR); }else{ tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); //tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=send')); } } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US)); ?> it stays on the page, and does not send the message. Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages! Link to comment Share on other sites More sharing options...
Guest Posted July 18, 2010 Share Posted July 18, 2010 (edited) Great contribution, very easy to install! :) I was able to add my keys into Admin fine, but I'm finding that no recaptcha box is appearing on my contact page. I followed the instructions but can't work out what's wrong. I've been over the files making sure I hven't missed anything but can't work it out. Can anyone point me in the right direction what to look for? Edited July 18, 2010 by Dali45 Quote Link to comment Share on other sites More sharing options...
suwandana Posted May 29, 2011 Share Posted May 29, 2011 This is the support form for the addon osC reCaptcha: http://addons.oscommerce.com/info/6306 This places a reCaptcha validation code box at the bottom of your form pages to eliminate SPAM and bot submissions from your website. Currently works on: Create Account Contact Us Tell a Friend Addon Support: Wholesale Inquiries Customer Testimonials (in progress) Hello is this add on working on version 2.3?? Because I 'm just working on new site with OSC version 2.3. I know it works well with version 2.2 RC2 Quote Link to comment Share on other sites More sharing options...
SLiCK_303 Posted May 29, 2011 Share Posted May 29, 2011 (edited) Like all 2.2 add-ons, sure, with a boat load of modifications. I would be happy to modify it for 2.3.1, but as with many of olsonsp4c add-ons, one cannot upload their changes to his listing.... Gotta love that guy.... ;) Edited May 29, 2011 by SLiCK_303 Quote Link to comment Share on other sites More sharing options...
suwandana Posted May 29, 2011 Share Posted May 29, 2011 Like all 2.2 add-ons, sure, with a boat load of modifications. I would be happy to modify it for 2.3.1, but as with many of olsonsp4c add-ons, one cannot upload their changes to his listing.... Gotta love that guy.... ;) yeap i tried it and stuck when tried to insert the code in 'catalog/create_account.php' This file on 2.3 is different than previous version 2.2. I love this add-on i think ReCapthca is a must on oscommerce. Quote Link to comment Share on other sites More sharing options...
apolyshow Posted May 30, 2011 Share Posted May 30, 2011 (edited) I added and in my contact page before all blocks that someone customer has to post inside of them i have an Contact Us //securimage addon //eofsecurimage addon and also the voice isn't working.Any idea? my code is <?php session_start(); ?> <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2010 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US); if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send') && isset($HTTP_POST_VARS['formid']) && ($HTTP_POST_VARS['formid'] == $sessiontoken)) { $error = false; $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']); if (!tep_validate_email($email_address)) { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } $actionRecorder = new actionRecorder('ar_contact_us', (tep_session_is_registered('customer_id') ? $customer_id : null), $name); if (!$actionRecorder->canPerform()) { $error = true; $actionRecorder->record(false); $messageStack->add('contact', sprintf(ERROR_ACTION_RECORDER, (defined('MODULE_ACTION_RECORDER_CONTACT_US_EMAIL_MINUTES') ? (int)MODULE_ACTION_RECORDER_CONTACT_US_EMAIL_MINUTES : 15))); } //securimage addon include_once $_SERVER['DOCUMENT_ROOT'] . '/estore/securimage/securimage.php'; $securimage = new Securimage(); if ($securimage->check($_POST['captcha_code']) == false) { $error = true; $messageStack->add('contact', ENTRY_SECURIMAGE_CHECK_ERROR); } //eof securimage addon if ($error == false) { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address); $actionRecorder->record(); tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US)); require(DIR_WS_INCLUDES . 'template_top.php'); ?> <h1><?php echo HEADING_TITLE; ?></h1> <?php if ($messageStack->size('contact') > 0) { echo $messageStack->output('contact'); } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) { ?> <div class="contentContainer"> <div class="contentText"> <?php echo TEXT_SUCCESS; ?> </div> <div style="float: right;"> <?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?> </div> </div> <?php } else { ?> <?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send'), 'post', '', true); ?> <div class="contentContainer"> <div class="contentText"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="fieldKey"><?php echo ENTRY_NAME; ?></td> <td class="fieldValue"><?php echo tep_draw_input_field('name'); ?></td> </tr> <tr> <td class="fieldKey"><?php echo ENTRY_EMAIL; ?></td> <td class="fieldValue"><?php echo tep_draw_input_field('email'); ?></td> </tr> <tr> <td class="fieldKey" valign="top"><?php echo ENTRY_ENQUIRY; ?></td> <td class="fieldValue"><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td> </tr> //securimage addon <tr> <td class="fieldKey" valign="top"><?php echo ENTRY_SECURIMAGE; ?></td> <td class="fieldValue"><img id="captcha" src="securimage/securimage_show.php" alt="CAPTCHA Image" /> <object type="application/x-shockwave-flash" data="securimage/securimage_play.swf?audio=ttsecurimage/securimage_play.php&bgColor1=#fff&bgColor2=#fff&iconColor=#777&borderWidth=1&borderColor=#000" width="19" height="19"> <param name="movie" value="securimage/securimage_play.swf?audio=securimage/securimage_play.php&bgColor1=#fff&bgColor2=#fff&iconColor=#777&borderWidth=1&borderColor=#000" /> </object><a href="#" onclick="document.getElementById('captcha').src = 'securimage/securimage_show.php?' + Math.random(); return false">[ Different Image ]</a><br /> <br/></td> </tr> <tr> <td class="fieldKey" valign="top"><?php echo ENTRY_SECURIMAGECODE; ?></td> <td class="fieldValue"><input type="text" name="captcha_code" size="10" maxlength="6" /></td> </tr> //eofsecurimage addon </table> </div> <div class="buttonSet"> <span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span> </div> </div> </form> <?php } require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Edited May 30, 2011 by apolyshow Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
SLiCK_303 Posted May 31, 2011 Share Posted May 31, 2011 For those of you having issues getting this to work with osCommerce v2.3.1, I have modified olsonsp4c's version, http://addons.oscommerce.com/info/6306. My version is for osCommerce v2.3.1, and has configuration options to turn on/off the Captcha for each page you modified. http://addons.oscommerce.com/info/8031 Enjoy... :rolleyes: Quote Link to comment Share on other sites More sharing options...
apolyshow Posted May 31, 2011 Share Posted May 31, 2011 Installed but i don't get anything.Not either an error. What am i doing wrong and why it's not vissible in my contact page? Do i have to install something else before this addon? Like other files of recaptcha? Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
apolyshow Posted May 31, 2011 Share Posted May 31, 2011 Installed but i don't get anything.Not either an error. What am i doing wrong and why it's not vissible in my contact page? Do i have to install something else before this addon? Like other files of recaptcha? And this is my code <?php /* $Id$ adapted for SLiCK reCaptcha v1.0.0 osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2010 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // BOF: SLiCK reCaptcha if (RECAPTCHA_CONTACTUS == 'true') { require_once(DIR_WS_CLASSES . 'recaptchalib.php'); } // EOF: SLiCK reCaptcha require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US); if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send') && isset($HTTP_POST_VARS['formid']) && ($HTTP_POST_VARS['formid'] == $sessiontoken)) { $error = false; $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']); if (!tep_validate_email($email_address)) { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } // BOF: SLiCK reCaptcha if (RECAPTCHA_CONTACTUS == 'true') { // the response from reCAPTCHA $resp = null; // was there a reCAPTCHA response? $resp = recaptcha_check_answer(RECAPTCHA_PRIVATE_KEY, tep_get_ip_address(), $HTTP_POST_VARS['recaptcha_challenge_field'], $HTTP_POST_VARS['recaptcha_response_field']); if (!$resp->is_valid) { $error = true; $messageStack->add('contact', ENTRY_SECURITY_CHECK_ERROR . " (reCAPTCHA output: " . $resp->error . ")"); } } // EOF: SLiCK reCaptcha $actionRecorder = new actionRecorder('ar_contact_us', (tep_session_is_registered('customer_id') ? $customer_id : null), $name); if (!$actionRecorder->canPerform()) { $error = true; $actionRecorder->record(false); $messageStack->add('contact', sprintf(ERROR_ACTION_RECORDER, (defined('MODULE_ACTION_RECORDER_CONTACT_US_EMAIL_MINUTES') ? (int)MODULE_ACTION_RECORDER_CONTACT_US_EMAIL_MINUTES : 15))); } if ($error == false) { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address); $actionRecorder->record(); tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US)); require(DIR_WS_INCLUDES . 'template_top.php'); ?> <h1><?php echo HEADING_TITLE; ?></h1> <?php if ($messageStack->size('contact') > 0) { echo $messageStack->output('contact'); } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) { ?> <div class="contentContainer"> <div class="contentText"> <?php echo TEXT_SUCCESS; ?> </div> <div style="float: right;"> <?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?> </div> </div> <?php } else { ?> <?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send'), 'post', '', true); ?> <div class="contentContainer"> <div class="contentText"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="fieldKey"><?php echo ENTRY_NAME; ?></td> <td class="fieldValue"><?php echo tep_draw_input_field('name'); ?></td> </tr> <tr> <td class="fieldKey"><?php echo ENTRY_EMAIL; ?></td> <td class="fieldValue"><?php echo tep_draw_input_field('email'); ?></td> </tr> <tr> <td class="fieldKey" valign="top"><?php echo ENTRY_ENQUIRY; ?></td> <td class="fieldValue"><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td> </tr> <?php // BOF: SLiCK reCaptcha if (RECAPTCHA_CONTACTUS == 'true') { ?> <tr> <td class="fieldKey" colspan="2"><?php echo ENTRY_SECURITY_CHECK; ?></td> </tr> <tr><td colspan="2"> <?php $languages_query = tep_db_query("select code from " . TABLE_LANGUAGES . " where directory = '" . (int)$language . "'"); $language_id = tep_db_fetch_array($languages_query); ?> <script type="text/javascript"> var RecaptchaOptions = { theme : 'red', tabindex : 3, lang : '<?php if (in_array($language_id['code'], array('en', 'es', 'de'))) { echo $language_id['code']; } else { echo 'en'; } ?>' }; </script> <?php echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY, null, ($request_type == 'SSL')); ?> </td></tr> <?php } // EOF: SLiCK reCaptcha ?> </table> </div> <div class="buttonSet"> <span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span> </div> </div> </form> <?php } require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
apolyshow Posted May 31, 2011 Share Posted May 31, 2011 Sorry my fault. I have put # to all and i have not install properly the sql. Try to see if everything is ok now that it becames visible. Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
apolyshow Posted May 31, 2011 Share Posted May 31, 2011 Thank you very much works like a charm Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
apolyshow Posted May 31, 2011 Share Posted May 31, 2011 I think that is making a mess in the SPPC admin panel. I can't make any categories now... Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
SLiCK_303 Posted May 31, 2011 Share Posted May 31, 2011 I think that is making a mess in the SPPC admin panel. I can't make any categories now... I don't think that is likely, the sppc admin panel is file based, reCaptcha is sql based, you have other issues..... You need to look at your database .sql file backup, and look at the configuration_group table, organize it by configuration_group_id, and see if you can find an id of 1601, that would be the ONLY way this mod could interfere with your admin side. Quote Link to comment Share on other sites More sharing options...
johnwinckel Posted June 3, 2011 Share Posted June 3, 2011 Hi, I'm running Osc 2.2 and installed reCaptcha 1.4. It has been working fine for a while, but having problems now. I didn't update Osc. On the Contact Us page the Captcha works fine and cannot be skipped. But on the Create Account page the Captcha can be skipped. After this the information filled in by the new client is not saved to the system and no new account has been created. I only get an email that an account application has been done. When I log in to Admin there is no new application there. Could you help me figure this out? My site is http://www.pingliving.eu/shop/create_account.php thanks in advance! John Quote Link to comment Share on other sites More sharing options...
johnwinckel Posted June 8, 2011 Share Posted June 8, 2011 (edited) Hi, I'm running Osc 2.2 and installed reCaptcha 1.4. It has been working fine for a while, but having problems now. I didn't update Osc. On the Contact Us page the Captcha works fine and cannot be skipped. But on the Create Account page the Captcha can be skipped. After this the information filled in by the new client is not saved to the system and no new account has been created. I only get an email that an account application has been done. When I log in to Admin there is no new application there. Could you help me figure this out? thanks in advance! John Edited July 22, 2012 by Jan Zonjee Quote Link to comment Share on other sites More sharing options...
WebDev22 Posted July 12, 2011 Share Posted July 12, 2011 This is a nice add-on, but we removed it from login.php. We felt it was an unnecessary hurdle. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.