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: Banner ads  (Read 3109 times)

0 Members and 1 Guest are viewing this topic.

dubie

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Banner ads
« on: December 12, 2003, 09:43:34 pm »

I would like to display banner ads at the top of my photo album. Is there an easy way to do this so no matter what album or picture they click on the banner ad stays static at the top of the page? I dont need rotating banners just need to ad google code. Not sure where and how...any help appreciated.

:)
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Banner ads
« Reply #1 on: December 12, 2003, 10:06:43 pm »

Edit themes/yourtheme/template.html.
Add a new table immediately after the </head> <body> tags.
Put your banner, or whatever you want, in this table.
It will now be shown on all pages.

This definately works with the default, and several other themes, but may cock up some themes.  Try it and see.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Lordnet

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Banner ads
« Reply #2 on: January 12, 2004, 02:22:17 am »

i resolved editing the phps

my hosting provider requires a banner on my page, in this case, coppermine.

the banner code is
Code: [Select]
<? include "x:\datsasystem\hostedbanner.inc"; ?>
similar in asp

asp and php banner code cannot be on .html pages because the server doesn't read the dynamic code with that extension

for the main page i used anycontent.php

but in the categories, subalbums, thumbnail views, etc. i had to add:
 
Code: [Select]
include "anycontent.php";

i added before de breadcrumb section in
thumbnails.php
displayimage.php

and so...

with that we don't need to edit all the themes
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 14 queries.