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...




LinkBack URL
About LinkBacks









Bookmarks