forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: shankscomp on December 05, 2014, 04:36:25 am

Title: Vertical Banner & Text Ads
Post by: shankscomp on December 05, 2014, 04:36:25 am
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?
Title: Re: Vertical Banner & Text Ads
Post by: allvip on December 05, 2014, 08:24:26 am
It depends what theme you are using.
For the curve theme:

1. Open template.html and after:     

Code: [Select]
<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:

Code: [Select]
<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 :
 
Code: [Select]
#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)


Title: Re: Vertical Banner & Text Ads
Post by: allvip on January 08, 2015, 01:58:32 pm
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)