Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Banner Ads on Home Page


Guest

Recommended Posts

Posted

HELP!

 

I recently set up a new site but I cannot figure out how to edit the index.php site to change the link of the banners ads on the home page of my OSCOMMERCE Site. I am ok with html but php I am nervous to edit.

 

banner_02.jpg

banner_03.jpg

banner_04.jpg

 

If I right click and view source of the home page it provides me with an easy to edit html page but using the ftp route to access the only index. file is index.php file which is more confusing for me.

 

Any help is appreciated.

 

www.shopfieldhockey.com is the site if it helps to look at it???

 

Thanks so much!

Posted

look checkout the admin.

under TOOLS in left column there is banner manager

from where you can assign link to your banner

Posted
look checkout the admin.

under TOOLS in left column there is banner manager

from where you can assign link to your banner

thanks so much! Don't know how I missed it! One last thing...is it easy to change target? It opens in a new window but I want it to stay in same window if possible.

 

Thanks!

Posted

ok well open catalog>includes>functions>banner.php

search for

$banner_string = '<a href="' . tep_href_link( 'action=banner&goto=' . $banner['banners_id']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '</a>';

 

and replace with

$banner_string = '<a href="' . tep_href_link( 'action=banner&goto=' . $banner['banners_id']) .'">' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '</a>';

Posted
ok well open catalog>includes>functions>banner.php

search for

$banner_string = '<a href="' . tep_href_link( 'action=banner&goto=' . $banner['banners_id']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '</a>';

 

and replace with

$banner_string = '<a href="' . tep_href_link( 'action=banner&goto=' . $banner['banners_id']) .'">' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '</a>';

 

Thank you again BUT I must be on the wrong track. Am I looking in the ftp area or in the OSCommerce Admin? In server there isnt a file I can locate called banner.php and in the admin there is no category for includes>functions.

 

I am using V 2.2 maybe we are using different versions?

Posted

look if you'r using a fresh copy of oscommerce v 2.2

then open your catalog folder i.e your root folder

then under that that folder open "includes" folder and then open "functions" folder and under that folder open "banner.php" file.

and check line number 86 in "banner.php" file.

and follows as I said above.

Posted
look if you'r using a fresh copy of oscommerce v 2.2

then open your catalog folder i.e your root folder

then under that that folder open "includes" folder and then open "functions" folder and under that folder open "banner.php" file.

and check line number 86 in "banner.php" file.

and follows as I said above.

 

Still no dice!

 

I opened it and found:

 

$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>';

}

 

and replaced with:

 

$banner_string = '<a href="' . tep_href_link( 'action=banner&goto=' . $banner['banners_id']) .'">' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '</a>';

 

Now clicking on the banners the page does not display.

Archived

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

×
×
  • Create New...