coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: dubie on December 12, 2003, 09:43:34 PM

Title: Banner ads
Post by: dubie 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.

:)
Title: Banner ads
Post by: Casper 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.
Title: Banner ads
Post by: Lordnet 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
<? 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:
 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