Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Banner Without Url


marcoj

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...