Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to make banner to work?


theflurys

Recommended Posts

Posted

i added a banner and turned it on to green but nothing is showing up? do i have to do something else in order for this to work? please help me. thank you

christine

  • 4 weeks later...
  • 9 months later...
Posted
Add the Banner Group: 468x50

any banners should use this group name

it worked form me

 

see manual at:

http://www.oscommerce.info/kb/osCommerce/A..._Tool/Tools/148

 

I used the banner manager and put in a couple of new banners. I turned the oscommerce banner off (clicked the red button). My banner is the right size, in the banner folder with the oscommerce banner. It is a jpg.

 

When the page loads all I see is the text I used to name the file on the banner inclusion form thingy. Can anyone tell me what I am doing wrong here? no box with a red x, just the text.

 

thanks....

pam

  • 2 weeks later...
Posted

Hello,

 

I am havin a problem with my banner.

I was trying to customize it and put my own banner in place of the default one. Well, I changed the banner group to the size of my banner, not knowing that this will mess up the whole thing!

I changed it back to 468x50 (that's an X right? not the symbol?), but it's not showing on my site (http://shop.nafice.com)

What am I doing wrong?

 

 

I should also mention that I changed the template meanwhile and I am giving it a thought that the new template might have disable the banner or something.

 

The display/clicks statistics is working though....

 

Any hints?

  • 3 weeks later...
Posted

Why does this banner thing not work? Is there any other banner manager software that is stable that i can put into the footer that will rotate the banners?

  • 4 weeks later...
  • 2 months later...
Posted
this it works for me. i can see the banner now. :)

 

thanks. ;)

 

yap.....confirm it works for me as well, after changing the banner group to 468x50 !!

 

Strange but it works :thumbsup:

Posted

This is stupid but it works if all else fails. Rename the banner you want to use to the file name already taken (oscommerce.gif I think) :lol:

  • 3 weeks later...
  • 2 weeks later...
Posted

The reason it works when you make the group name 486x50 is because the default osCommerce code in footer.php, is coded to display that group banner. If you want to have a different group banner you must change the code to look for the banner that has the new group name.

 

Current code

<?php

echo tep_display_banner('dynamic', '468x50');

?>

 

Or, you can make a static call to the banner function with a specific banner id.

 

Possible new code

<?php

echo tep_display_banner('static', '1'); where 1 is the specific banner id you want

?>

 

<?php

echo tep_display_banner('dynamic', 'your group name'); will dynamically pull banners from the group you specify

?>

 

Dave

  • 6 months later...
Posted
Add the Banner Group: 468x50

any banners should use this group name

it worked form me

 

see manual at:

http://www.oscommerce.info/kb/osCommerce/A..._Tool/Tools/148

 

I've got this sort of figured out. But how to I get a rotating banner box below the other boxes on the left or right column?

 

When I use this code from the tutorial it seems to be too much info and places the banner on top of everything else.

 

<?php

echo tep_display_banner('dynamic', 'banners');

?>

 

thanks,

Mike

Posted
I've got this sort of figured out. But how to I get a rotating banner box below the other boxes on the left or right column?

 

When I use this code from the tutorial it seems to be too much info and places the banner on top of everything else.

 

 

 

thanks,

Mike

 

 

O.K., I just answered my own question by looking at my other site.

 

I created a file in 'includes>boxes>banners.php

<?php

 

?>

<!-- banners //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_LINKS);

 

echo tep_display_banner('dynamic', '468x50');

?>

 

</td>

</tr>

<!-- banners_eof //-->

 

and than just add this 'box code' where ever I want the random banner to appear:

 

require(DIR_WS_BOXES . 'banners.php');

 

 

Mike

Posted

how do i change the banner at the top?

 

 

the banner management system only does the footer

 

anyhelp? =]

Posted

the banner management system does ALL banners, but right now, the only banner that it is being called for is the footer one.

 

basically the banner manager is just ONE STEP in getting a banner to show. When you upload the banner and name it, the banner manager puts it int he correct spot and creates the code that it needs to use incase you only want it to show at certain times.. After you upload teh banner, then you have to go to the page you want to put it in and tell that page to call for that banner.

 

So you upload a banner for a 4th of july sale. You name it independenceday. If you want it to display in the right column of your website, you just go to the column_right.php and you add the code that calls for the banner (otherwise your website would never know where to put it!)

 

so in column_right, you put

<?php
echo tep_display_banner('dynamic', 'independenceday');
?>

 

where you want it to show. You can also put it inside an info box by using the code posted above.

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Archived

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

×
×
  • Create New...