Help - Search - Members - Calendar
Full Version: banners
Invision Power Services > Community Forums > Community Web Design and Coding
cookyr
What im wanting to do is have a banner at the top with my site logo on the left and a rotating banner to the right that shows differant sites banners and that are clickable like the link below

http://forums.pigeonwatch.co.uk/forums/index.php?act=idx



can anyone help me please biggrin.gif
Jamer
Goto: Skin Manager > Edit Root Skin Template HTML > All Global HTML > global_board_header

Find


CODE
<div id="logostrip">
<a href='{ipb.script_url}'><!--ipb.logo.start--><img src='style_images/<#IMG_DIR#>/logo4.gif' style='vertical-align:top' alt='IPB' border='0' /><!--ipb.logo.end--></a>
</div>



Replace with

CODE
<div id="logostrip">

<div style="float:right;padding:5px">{AD_CODE}</div>

<a href='{ipb.script_url}'><!--ipb.logo.start--><img src='style_images/<#IMG_DIR#>/logo4.gif' style='vertical-align:top' alt='IPB' border='0' /><!--ipb.logo.end--></a>
</div>



Before saving the template, replace {AD_CODE} with the advertisment you wish to place there, an example could be

CODE
<a href="http://www.example.com"><img src="http://www.example.com/ad.jpg" alt="Advertisment" width="468" height="60" /></a>



(Remember to include the alt="" and ending / as this will kept your board XHTML compliant.)

Or if you wanted to use google adsense, just paste your code where {AD_CODE} is.

Please note that you should read the Google Adsense Terms of Service if you did want to incorporate Adsense in this way. You'll note that Google prefer you not to display their ads on non-content pages.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.