This is a discussion on Anti Robot Registration Validation 1.0 + images within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; The image is not tag is not created when CONFIG_CALCULATE_IMAGE_SIZE is true, therefore I created made a few simple changes ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| The image is not tag is not created when CONFIG_CALCULATE_IMAGE_SIZE is true, therefore I created made a few simple changes that allows this contribution to temporarily override this configuration directive. Instructions (download the file to have on hand). 1) In includes/functions/html_output.php a) Redefine the function tep_image, by replacing line 74: function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { with function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '', $calc_size = CONFIG_CALCULATE_IMAGE_SIZE) { b) Change the if statement on line 87 from if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) { to if ( ($calc_size == 'true') && (empty($width) || empty($height)) ) { 2) In create_account.php, account_edit.php, account_password.php and contact_us.php, find $validation_images = tep_image('validation_png.php?rsid=' . $new_guery_anti_robotreg['session_id']); and replace with $validation_images = tep_image('validation_png.php?rsid=' . $new_guery_anti_robotreg['session_id'], '', '', '', '', false); More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Robot Protection V 1.0 | michael_s | New osCommerce Contributions | 0 | 01-24-2007 12:59 AM |
| Anti Robot Registration Validation 1.0 + images | michael_s | New osCommerce Contributions | 0 | 01-21-2007 07:11 AM |
| Validation in admin | chitta_rn | osCMax v2 Customization/Mods | 0 | 02-17-2006 06:17 AM |
| Email validation issue | webguy262 | osCommerce 2.2 Installation Help | 0 | 06-24-2004 11:20 AM |
| Anti Robot Registration Validation 1.0.1a with osc 2.2MS2 | vincen | osCommerce 2.2 Modification Help | 3 | 04-07-2004 08:48 AM |