Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

more banners in the footer


warrenerjm

Recommended Posts

Posted

Hi

 

This is my footer:

 

<?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 (c) 2003 osCommerce



 Released under the GNU General Public License

*/





?>

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

 <tr class="footer">

<td class="footer">??<?php echo strftime(DATE_FORMAT_LONG); ?>??</td>

<td align="right" class="footer"></td>

 </tr>

</table>

<br>

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

 <tr>

<td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></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

 }

?>

</div>

 

But I am wondering if this is the line I need to do something with to get four small 125x125 banners from the banner manager to appear along the bottom instead of one big 468x50 banner?

 

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

 

If I took out the align center & duplicated it four times, how would it know which one to put where as they are not defined as 1,2,3,4 in the banner manager. IF this is how you do it at all? :huh:

 

Can anyone who is laughing at how easy this is please :D please help me?

 

Thank you

Julie

Posted

Why not use phpmyadsnew?

 

At least that can be more effective than than the banner system in osC and allows PPc and so on

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted
Why not use phpmyadsnew?

 

At least that can be more effective than than the banner system in osC and allows PPc and so on

Hello Aleem

 

I put phpmyadsnew in google but just forum notes came up. What is phpmyadsnew?

I have seen an OSC shop with 4 or more small banners in a column box but don't know how they did it?

 

Can you give me any more pointers to either of these two options?

 

Thank you for replying. I appreciate your help.

 

Julie

Posted

Sorry, it's phpadsnew!

 

I don't know which site with 4 banners you are referring to but if you want to allow static or rotating banners on your site in the way you mentioned above but also want to use it as PPC to make money then phpadsnew is the tool to use. That way they can be tracked by you and your advertisers by logging in to your site (safely) and viewing click through rates, banner deisgns, which pages to place banners via orders, money spent/remaining etc

 

If you want 4 banners but don't want to track how many times they were clicked and do not wish to charge advertisers on PPC then basically want to add fixed banners you can simply bypass your original suggestion and just use an html editor (yes I know osC is php) and add it that way too.

 

Run a search engine query for phpadsnew and goto thier homepage, maybe a demo will help you make up your mind.

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted

Running a seperate banner manager is not a bad idea as the one that comes with osC is not very robust but if you want to manage more than one banner you need to also duplicate

 

<?php

 

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

 

?>

 

 

and change the group name and then assign your different banners to a seperate group. The 468x50 is actually the group name so change it to

 

<?php

 

if ($banner = tep_banner_exists('dynamic', 'banner1')) {

 

?>

 

for the first then banner2 for the second etc.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted

I agree with ozcsys

 

It all depends on what you want the banners for. If you want advertsiers to login and check clickthrough's and so on (and pay you PPC) then phpadsnew is perfect...

 

.. but if it is just for the basic osC functions with banner advertsiers not logging in and tracking then go with the code above, that should be fine depending on your needs.

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted
Running a seperate banner manager is not a bad idea as the one that comes with osC is not very robust but if you want to manage more than one banner you need to also duplicate

 

<?php

 

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

 

?>

and change the group name and then assign your different banners to a seperate group. The 468x50 is actually the group name so change it to

 

<?php

 

if ($banner = tep_banner_exists('dynamic', 'banner1')) {

 

?>

 

for the first then banner2 for the second etc.

 

Hi both Richard & Aleem

 

Thank you both for your support.

 

For the moment I just want to be able to see these banners either in the footer or a column box, as these companies log my unique URL's for my position on their directory. I am not paid for it. I will still look at the other option as it might change later?

 

Is this what my footer should read? I assumed the banner manager needed 468x50 & 125x125 to know the size. In the banner manager do I now put this to read banner1,banner2...etc? Is the size determined now by the html code I copied & put into the banner manager? Confusing. :blink:

 

<?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 (c) 2003 osCommerce



 Released under the GNU General Public License

*/





?>

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

 <tr class="footer">

<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>

<td align="right" class="footer"></td>

 </tr>

</table>

<br>

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

 <tr>

<td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td>

 </tr>

</table>

<?php

 if ($banner = tep_banner_exists('dynamic', 'banner1')) {

 if ($banner = tep_banner_exists('dynamic', 'banner2')) {

 if ($banner = tep_banner_exists('dynamic', 'banner3')) {

 if ($banner = tep_banner_exists('dynamic', 'banner4')) {

?>

<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

 }

?>

</div>

 

What is this for?

 

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

 

Thank you for your help again. :thumbsup:

 

Julie

Posted
Hi

 

Am I on the right track or a mile off with this code please?:huh:

 

Thank you

Julie

Hi

 

I obviously still don't know how to "read" php. Could you tell me if I have done what was suggested for showing the four banners along my footer?

 

This is the column banner bit. Can I change this in the same way?

 

EDIT FILES:

 

Add the following lines to /catalog/includes/column_left.php and/or column_right.php

 

// BOF: WebMakers.com Added: Column Banner

if ( ($banner = tep_banner_exists('dynamic', '125x125') and $HTTPS !='on') ) {

require(DIR_WS_BOXES . 'column_banner.php');

}

// EOF: WebMakers.com Added: Column Banner

 

This can be placed anywhere in the column and the banner is setup to not show on secure pages. This is done for some banners where you are pulling the image from another site and it eliminates the unsecure page msg

 

Please could you explain what code I need?

 

Thank you heaps.

Julie

Posted

Hi

 

I am still stuck with this one. PLEASE PLEASE PLEASE can someone explain how i can do this. :(

 

I have one column banner ready to amend to show four banners in the same box, OR i can put them in the footer (small sizes), but I desperately want to get this sorted & I really am lost. My attemps are giving me errors so I need a php'er to tell me how to amend my code.

 

I would be really grateful if someone could answer me on this one please.

 

Thanks a million

Julie

Posted

you should be able do it like this:

<?php

if ($banner = tep_banner_exists('dynamic', '125x125')) {

?>

<?php echo tep_display_banner('static', $banner); ?>

 

<?php

}

?>

 

<?php

if ($banner = tep_banner_exists('dynamic', '125x125')) {

?>

<?php echo tep_display_banner('static', $banner); ?>

 

<?php

}

?>

 

<?php

if ($banner = tep_banner_exists('dynamic', '125x125')) {

?>

<?php echo tep_display_banner('static', $banner); ?>

 

<?php

}

?>

 

<?php

if ($banner = tep_banner_exists('dynamic', '125x125')) {

?>

<?php echo tep_display_banner('static', $banner); ?>

 

<?php

}

?>

 

that will display 4 125x125 banners.... But this has nothing to do with the Column Banner Contribution that I referred you to

My Contribution

Music Download Store Template

http://www.oscommerce.com/community/contributions,4275

Archived

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

×
×
  • Create New...