Community Add-Ons
| Maintainers: | bemi |
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.
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
