I would like to place a vertical banner and text ads on the left side of my site. What code do I need to add to my template.html file to make this happen?
It depends what theme you are using.
For the curve theme:
1. Open template.html and after:
<div id="cpg_main_block_outer">
<div class="cpg_main_block_inner">
{GALLERY}
<br /> <!-- workaround for issue 64492 - do not remove the line break! -->
</div>
</div>
add:
<div id="ad">PASTE YOUR AD CODE HERE</div>
<div style="clear:both;"></div>
2.Open style.css, find #cpg_main_block_outer and replace with :
#cpg_main_block_outer {
width: 75%;
float:left;
background-color: #ffffff;
background-image: url(images/frame_repeat.png);
background-repeat: repeat-y;
background-attachment: scroll;
background-position: left top;
padding-left: 20px;
}
#ad {
width: 20%;
float:left;
}
Change the width values to fit your needs.
If you have another theme then you have to tell me witch theme you have.
If you have a custom theme then you have to post a link to your gallery.
Anyway the code I just post it should help you understand what you have to do.
If you want the ad not to show on the image page (displayimage.php) and to have a small square ad at the left of the image, then ask.
Threads about ads:
how to insert ad code in the header? : http://forum.coppermine-gallery.net/index.php/topic,77565.0.html (http://forum.coppermine-gallery.net/index.php/topic,77565.0.html)
Coppermine google adsense (coppermine display ads) : http://forum.coppermine-gallery.net/index.php/topic,77566.0.html (http://forum.coppermine-gallery.net/index.php/topic,77566.0.html)
Copper Ads Plugin for Coopermine Version 1.5.x: http://forum.coppermine-gallery.net/index.php/topic,70125.0.html (http://forum.coppermine-gallery.net/index.php/topic,70125.0.html)
Forum rules: say how you made it and then click topic solved.
Resolve your threads: http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631 (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631)