Vertical Banner & Text Ads Vertical Banner & Text Ads
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Vertical Banner & Text Ads

Started by shankscomp, December 05, 2014, 04:36:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shankscomp

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?

allvip

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

Coppermine google adsense (coppermine display ads) : 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



allvip