Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Vertical Banner & Text Ads  (Read 4562 times)

0 Members and 1 Guest are viewing this topic.

shankscomp

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Vertical Banner & Text Ads
« 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?
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Vertical Banner & Text Ads
« Reply #1 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

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


Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Vertical Banner & Text Ads
« Reply #2 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
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.