Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to add banner to header?


NunoLuz

Recommended Posts

Thanks The_Bear, but I've already changed it to my own logo, and I wanted to have both logo and banner up there in the header, is there any contribution for a header banner?

 

I have searched and not found any..

 

Also,

 

 

 

I am now triyng to add a graphic bar to the the product_new.php ( the new products box ) like the contribution for the inoboxes with images, how is this done?

 

Can you give me some info on this?

 

Thanks

 

Nuno

Nuno Luz

Link to comment
Share on other sites

Thank you so much itkaos, I have introduced that line in my header.php file, however it had no effect whatsoever. I also added a banner in banner manager, but nothing still.

 

Could you help me?? Is there another file to be edited??

 

Thanks once again :)

 

Nuno

Nuno Luz

Link to comment
Share on other sites

Nuno

Don't know if this is your problem or not, but I had bother with banners not appearing - turns out that if you use standard web banner size 468x60 pixels then if you are viewing on a computer with anti-spam or anti-popup software the banners will not appear - make sure and resize them - I use 450 x 50 pixels now and have no bother.

This may not be your problem but it is worth bearing in mind!

Cheers & Happy New Year To All! ;)

Link to comment
Share on other sites

SORRY no it do not work but this does.

 

I made a file called headbang. php with this inside and put it in catalog/include/

##########################

<?php

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

?>

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

 

<?php

}

?>

##########################

Then I modified header.php whit this:

##########################

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

<tr class="header">

<td width="20%" align="left" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

<td align="center"><?php require(DIR_WS_INCLUDES . 'headbang.php'); ?></td>

<td width="20%" align="right" valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>

</tr>

</table>

########################

And it works and looks good aswell :) Tjek it out at http://itkaos.dk/catalog

 

Ps. Dont use the ## :)

 

Brgds. Leon

Link to comment
Share on other sites

I tried this and I got the error:

 

"Parse error: parse error in /home/emvihtpc/public_html/store/includes/header.php on line 40"

 

??

 

Cheers

Biffa

Link to comment
Share on other sites

Hi ITKAOS

 

I went to look at your header banner and it wasn't there - I use Norton Internet Security which has an add blocker - I turned it off and hey presto your banner appeared on refresh!

 

Your banner is 468x50 and it will not display on any computers using security, anti-spam or anti-hacking programs which contain add blockers. 468x60 images won't appear either (these are standard web banner sizes) I had this problem and changed my banners to 450 x 50 and they seem to work now on most systems.

 

Basically add blockers look for standard banner size images and simply remove them so don't have standard size banners!

 

HTH

Link to comment
Share on other sites

I really don't know because I'm no expert, all I can say is that I had a lot of bother seeing the banners on several computers, changed banners to 450x50 and they all work fine now. Maybe other add-blockers will catch this size as well but not in my experience, maybe someone else knows more detail and could post here??

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...