NunoLuz Posted January 4, 2004 Share Posted January 4, 2004 Hi everyone, Does anyone know how to add a banner to the header?? Is there any contributuin for this?? Thanks :) Nuno Nuno Luz Link to comment Share on other sites More sharing options...
NunoLuz Posted January 6, 2004 Author Share Posted January 6, 2004 Anyone?? Nuno Luz Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2004 Share Posted January 6, 2004 The easyest way is to name your banner oscommerce.gif and upload it in your images folder The_Bear Link to comment Share on other sites More sharing options...
NunoLuz Posted January 6, 2004 Author Share Posted January 6, 2004 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 More sharing options...
itkaos Posted January 6, 2004 Share Posted January 6, 2004 Just copy this to your HEADER.PHP <td align="center"><?php echo tep_display_banner('static', $banner); ?></td> Brgds, ITkaos.dk Link to comment Share on other sites More sharing options...
NunoLuz Posted January 6, 2004 Author Share Posted January 6, 2004 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 More sharing options...
OMalleys Posted January 6, 2004 Share Posted January 6, 2004 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! ;) David Link to comment Share on other sites More sharing options...
itkaos Posted January 6, 2004 Share Posted January 6, 2004 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 More sharing options...
Guest Posted January 6, 2004 Share Posted January 6, 2004 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 More sharing options...
OMalleys Posted January 6, 2004 Share Posted January 6, 2004 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 David Link to comment Share on other sites More sharing options...
itkaos Posted January 7, 2004 Share Posted January 7, 2004 So will 450 x 49 banners cheat the banner stoppers? Brgds, Leon Link to comment Share on other sites More sharing options...
OMalleys Posted January 7, 2004 Share Posted January 7, 2004 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?? David Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.