Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Banner Problem


csavern

Recommended Posts

Posted

I am new to all this i have never dont a web site before, i am trying to add a banner through banner manager it says it is activated but no banner shows up

I put banner in from file and i have allso done it with html but still no banner shows

is there something i am doing wrong

Maybe some setting i need to change

Posted

strange i tested my banner manager out today and was unable to get the banner to appear also, i am using sts and everything is setup properly in the template to show the banner, anyone have any ideas? :-"

Posted

Tried that but still no banner

and it dont matter what size banner or type

html or image still wont show on page

crazy

got any other suggestions

Posted

still no luck on the banner i changed like stated but it shows it is being veiwed every time some one enters the web site but there is no banner so i think now i am half way there any one know how to make it appear for people can click on it

Posted

Double-check that the banner you have added to Banner Manager is assigned to a 'Group'. There is a text box to enter the name of the group in when you add the banner. You can call the group whatever you like.

 

This problem most often happens when people delete the default osCommerce banner before they add a new one, and by doing so they delete the banner group at the same time.

 

Vger

Posted

I named the banner group 468x50 and then it started saying it was veiw every thing else i named it i couldent not even get a veiw out of it

but the problem is it says it is being veiwed but it aint there just saying it was veiwed

Posted

I had the same problem. Go to your catalog/index.php page via your browser, right click and select view code. Scroll to the bottom of the page. If you can see the <a href...> </a> tags for the banner without the <img src> tag, do the following fix:

 

1. open catalog/includes/functions/banner.php and look for this code:

 

 else {
  $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>';
}

this starts at line 85 for me.

 

2. Pay careful attention to where you've been uploading your banner image files. You'll be entering the URL to the folder in which your image files reside to replace the

. tep_image .

thing. It should look something like this when you are done:

 

	else {
  $banner_string = '<a href="' . tep_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner['banners_id']) . '" target="_blank"><img src="http://www.mystore.com/catalog/images/' . $banner['banners_image'] . '" border="0"></a>';
}

.

 

I found a couple of different reasons why this error would show up. In my case, I discovered this as made the above change, I had created a "banners" subdirectory inside the "images" file. When I was cutting and pasting the url in there, I noticed the location was different than the one listed in the banners manager.

 

I also had the same results another time when I accidently uploaded the wrong image file (one with a different name).

 

Or, I think it could mean there's something funky in your configure.php file, but I don't know what.

 

Hope this helps.

 

 

Oh, yeah, one more thing...don't forget to check the permissions on the directory in which you have stored your banner image. It should be 755 or 777.

Posted
Double-check that the banner you have added to Banner Manager is assigned to a 'Group'. There is a text box to enter the name of the group in when you add the banner. You can call the group whatever you like.

 

This problem most often happens when people delete the default osCommerce banner before they add a new one, and by doing so they delete the banner group at the same time.

 

Vger

 

 

Strange my banner would only appear if i named the group, as defined in the php 468 x 50.

Posted

this is because the footer.php explicilty checks for the group to be named 468x50 through the banner functions

 

if ($banner = tep_banner_exists('dynamic', '468x50')) {

Posted
this is because the footer.php explicilty checks for the group to be named 468x50 through the banner functions

 

if ($banner = tep_banner_exists('dynamic', '468x50')) {

 

 

thats what i thought, presumably to add more groups you have to define them in the php first

Posted
this is because the footer.php explicilty checks for the group to be named 468x50 through the banner functions

 

if ($banner = tep_banner_exists('dynamic', '468x50')) {

 

yea my footer.php has that i replaced it last night with the new footer.php and it WORKS but the problem now is it only works in the header

i need it in the footer here is what mine looks like i took the new one and the old one and made 1

 

 

<?php

/*

$Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require(DIR_WS_INCLUDES . 'counter.php');

$SUBS['DATE_FORMAT_LONG'] = strftime(DATE_FORMAT_LONG);

$SUBS['COUNTER_START_DATE'] = $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted;

/*

The following copyright announcement can only be

appropriately modified or removed if the layout of

the site theme has been modified to distinguish

itself from the default osCommerce-copyrighted

theme.

 

For more information please read the following

Frequently Asked Questions entry on the osCommerce

support site:

 

http://www.oscommerce.com/community.php/faq,26/q,50

 

Please leave this comment intact together with the

following copyright announcement.

*/

 

$htmltemplates = htmltemplates;

$SUBS['FOOTER_TEXT_BODY'] = FOOTER_TEXT_BODY;

if($banner = tep_banner_exists('dynamic', '468x50')) {

$SUBS['TEP_DISPLAY_BANNER'] = tep_display_banner('static', $banner);

$SUBS['BANNER_EXISTS'] = fileParse($htmltemplates . '/banner_exists.htmlt');

}

 

$SUBS['BREADCRUMB_FOOTER'] = '';//$breadcrumb_footer->trail('    |    ');

$SUBS['FOOTER'] = fileParse($htmltemplates . '/footer.htmlt');

?>

 

</td>

</tr>

</table>

<?php

if ($banner = tep_banner_exists('dynamic', '468x50')){

?>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>

</tr>

</table>

<?php

}

?>

Posted

Well, you live and learn. That was one I didn't know. Thanks!

 

Vger

this is because the footer.php explicilty checks for the group to be named 468x50 through the banner functions

 

if ($banner = tep_banner_exists('dynamic', '468x50')) {

  • 2 weeks later...
Posted
Well, you live and learn. That was one I didn't know. Thanks!

 

Vger

 

I tried uploading another banner with the right permissions and the 468x50 group and the 2nd banner never shows up.

 

Any detailed instructions on how to do this?

Archived

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

×
×
  • Create New...