Community Add-Ons

Maintainers: bemi
Add file to this package
Top » Images

Remove category image
for osCommerce Online Merchant v2.2

Removing category image in backend by clicking a button. No trans_pix.gif or something like this required.

Legend:  Download   Report
Expand All / Collapse All
Bug fix leirisset 4 Sep 2009  

Modification faite :

Afin de ne pas voir un carré avec une croix lors de l'absence de l'image, faire ceci :

// The HTML image wrapper function
function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {
return false;
}

Remplacer par :

// The HTML image wrapper function
function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {
$src=DIR_WS_IMAGES.'nopic.gif';
//no image url when you upload the product.
}
//for what`s the url like :'images/aa/'
if(!file_exists($src)||strlen(strstr($src,"."))<=0){
$src=DIR_WS_IMAGES.'nopic.gif';
}
//over

Package complet comprenant l'install. pour l'absence d'image ainsi que la langue française.

Screenshot visible à : http://www.oscommerce-screenshots.com/remove-category-image-p-438.html

Traduction française - Full package leirisset 4 Sep 2009  
Remove category image bemi 4 Sep 2009