For manufacturer pages, here is some code to test. Find in smart_backgrounds_functions.phpand replace with thisPHP Code:if ($_GET['main_page'] == 'index' or $_GET['main_page'] == 'product_info') {
// _p and products_id only if individual prod bg image exists, else _product_info only if page bg image exists, else _ and cPath only if individual cat bg image exists, else _ and top cat id only if top cat bg image exists
$smart_image = ($_GET['main_page'] == 'product_info' and file_exists(DIR_WS_TEMPLATE_IMAGES . 'smart' . $location . '_p' . $_GET['products_id'] . $ext))?'_p' . $_GET['products_id']:(($_GET['main_page'] == 'product_info' and file_exists(DIR_WS_TEMPLATE_IMAGES . 'smart' . $location . '_product_info' . $ext))?'_product_info':
(file_exists(DIR_WS_TEMPLATE_IMAGES . 'smart' . $location . '_' . $_GET['cPath'] . $ext)?'_' . $_GET['cPath']:(file_exists(DIR_WS_TEMPLATE_IMAGES . 'smart' . $location . '_' . (int)$_GET['cPath'] . $ext)?'_' . (int)$_GET['cPath']:'')));
} elseif ($_GET['main_page'] == 'page') {
PHP Code:if ($_GET['main_page'] == 'index' or $_GET['main_page'] == 'product_info') {
if (isset($_GET['manufacturers_id='])) {
// _m and manufacturers_id only if individual mfr bg image exists, else _manufacturer only if page bg image exists
$smart_image = (file_exists(DIR_WS_TEMPLATE_IMAGES . 'smart' . $location . '_m' . $_GET['manufacturers_id'] . $ext))? '_m' . $_GET['manufacturers_id']: (file_exists(DIR_WS_TEMPLATE_IMAGES . 'smart' . $location . '_manufacturer' . $ext)?'_manufacturer': '');
} else {
// _p and products_id only if individual prod bg image exists, else _product_info only if page bg image exists, else _ and cPath only if individual cat bg image exists, else _ and top cat id only if top cat bg image exists
$smart_image = ($_GET['main_page'] == 'product_info' and file_exists(DIR_WS_TEMPLATE_IMAGES . 'smart' . $location . '_p' . $_GET['products_id'] . $ext))?'_p' . $_GET['products_id']:(($_GET['main_page'] == 'product_info' and file_exists(DIR_WS_TEMPLATE_IMAGES . 'smart' . $location . '_product_info' . $ext))?'_product_info':
(file_exists(DIR_WS_TEMPLATE_IMAGES . 'smart' . $location . '_' . $_GET['cPath'] . $ext)?'_' . $_GET['cPath']:(file_exists(DIR_WS_TEMPLATE_IMAGES . 'smart' . $location . '_' . (int)$_GET['cPath'] . $ext)?'_' . (int)$_GET['cPath']:'')));
}
} elseif ($_GET['main_page'] == 'page') {


Reply With Quote
