marcoj Posted June 26, 2007 Share Posted June 26, 2007 Hi there i want to create a banner but without linking it to any url, is it possible? every time i insert a banner without inputing any url it is still possible to click it and it directs to something like www.domain.com/redirect.php?action=banner&goto=23 is it possible to make it detect if it has an URL or not and if not, make it non "clickable"? many thanks Link to comment Share on other sites More sharing options...
spax Posted June 26, 2007 Share Posted June 26, 2007 Lose the banner code and put a gif in its place. Link to comment Share on other sites More sharing options...
marcoj Posted June 27, 2007 Author Share Posted June 27, 2007 but that way the banner will never have a link this is what i need: in the same banner place if the banner was added in the admin with the URL field filled then it links to that url... if the banner was added in the admin without the URL field filled, then it does not link anywhere any help? :s Link to comment Share on other sites More sharing options...
marcoj Posted June 28, 2007 Author Share Posted June 28, 2007 can anyone help? thanks Link to comment Share on other sites More sharing options...
marcoj Posted July 2, 2007 Author Share Posted July 2, 2007 ok.. so... does anyone know where the <a href for the banner is located? Link to comment Share on other sites More sharing options...
oschellas Posted July 2, 2007 Share Posted July 2, 2007 catalog/includes/functions/banner.php $banner_string = '<a href="' . tep_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner['banners_id']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '</a>'; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.