************************************************** **IF YOU HAVE INSTALLED CONTRIBUTION "FLASH BANNERS" THAN********************************************** ****
Open catalog/includes/functions/banner.php file
Find:
if ($banner['banners_html_text']) {
$banner_string = $banner['banners_html_text'];
} else {
// WebMakers.com Added: Banner Manager
if ( $banner['banners_open_new_windows'] =='1' ) {
$banner_string = '' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '';
} else {
$banner_string = '' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '';
}
}
And Replace With:
if (tep_not_null($banner['banners_html_text'])) {
$banner_string = $banner['banners_html_text'];
} else {
// WebMakers.com Added: Banner Manager
if ( $banner['banners_open_new_windows'] =='1' ) {
if ( substr($banner['banners_image'], -3, 3) == 'swf' ) {
$size = getimagesize(DIR_WS_IMAGES . $banner['banners_image']);
$banner_string = '' . mm_output_flash_movie( $banner['banners_title'], DIR_WS_IMAGES . $banner['banners_image'] , $size[0] , $size[1]) . '';
} else {
$banner_string = '' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '';
}
} else {
if ( substr($banner['banners_image'], -3, 3) == 'swf' ) {
$size = getimagesize(DIR_WS_IMAGES . $banner['banners_image']);
$banner_string = '' . mm_output_flash_movie( $banner['banners_title'], DIR_WS_IMAGES . $banner['banners_image'] , $size[0] , $size[1]) . '';
} else {
$banner_string = '' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '';
}
}
}
************************************************** ****AND IF YOU WANT TO RUN SQL QUERY USING WITH PHPMYADMIN**************************************** *********
THIS WAY IS EASIER:
ALTER TABLE banners ADD banners_open_new_windows tinyint(1) DEFAULT '1' NOT NULL;
ALTER TABLE banners ADD banners_on_ssl tinyint(1) DEFAULT '1' NOT NULL;
NOT LIKE THIS:
################################################## ########
#Field: banners_open_new_windows tinyint(1) Default 1 #
#Field: banners_on_ssl tinyint(1) Default 1 #
################################################## ########
(And if you want to use more banner groups than modify your sql query like "ALTER TABLE banners MODIFY banners_group varchar(10);" (10 or more!).)
That's All...
(No file included into zip file.)
More...





LinkBack URL
About LinkBacks









Bookmarks