birchy82 Posted June 20, 2007 Posted June 20, 2007 My banners link to categories now perfect but now... I need them to link to categories as well without the 2 messing eachother up. I was able to get it to work but it disabled the banners i had linked to the products already. Anyone? heres the code: if (tep_not_null($banner['banners_html_text'])) { $banner_string = $banner['banners_html_text']; } else { if(is_numeric($banner['banners_url'])){ $banner_string = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $banner['banners_url']) . '" target="_self">' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '</a>'; } else { $banner_string = '<a href="' . tep_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner['banners_id']) . '" target="_self">' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '</a>'; } } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.