Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a php banner


JamesJamz

Recommended Posts

Hi All,

 

I would like to add a php banner to my site, I've been trying to edit the includes/language/english/index.php file to look like this

 

define('TEXT_MAIN', '...<hr noshade size="1">'.include('advert_banner.php').'<hr noshade size="1">...');

 

ignore the 3 dots at the beginning and end of the code (as there is code before and after it)

 

but the above doesn't work, it just stops the rest of the page loading, and I've tried other things to no success... any ideas?

Link to comment
Share on other sites

What is in advert_banner.php?

 

Most banners are displayed using this type of code

 

<?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

}

 

Try looking in /includes/footer.php

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...