Banner ads Banner ads
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Banner ads

Started by dubie, December 12, 2003, 09:43:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dubie

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.

:)

Casper

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.
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

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