forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: a-amp on March 17, 2006, 12:31:18 pm

Title: Advertisement code right under the breadcrumb.
Post by: a-amp on March 17, 2006, 12:31:18 pm
Hi,

I wanted to put some advertisement code (eg adsense) code under the breadcrumb (menu) but I have no idea how I could do that.  I only want to put the code in the thumbnail page and now for this kind of advertisement, I put it right under the page, below "?>.  I believe it is possible to put them inside the php code, so that the ad appear below the menu.

Would appreciate your help...

Later,
Title: Re: Advertisement code right under the breadcrumb.
Post by: xplicit on March 17, 2006, 09:28:11 pm
Perhaps an option is to make an extra case switch like  anycontent file in index.php add:

Code: [Select]
case 'adsense':
                if ($cat == 0) {
                    include('adsense.php');
                }
                flush();
                break;

Then place the html code you want in a .php file called adsense.php (use the anycontent file as example template)

To display it set your config to breadcrumb/adsense/alblist/random,2/lastup,2

not tested but should work
Title: Re: Advertisement code right under the breadcrumb.
Post by: lordprodigy on March 22, 2006, 05:46:01 pm
I'll give this a try. I have one concern... will this affect the relevance of the ads output?
Title: Re: Advertisement code right under the breadcrumb.
Post by: xplicit on March 22, 2006, 06:59:00 pm
that got nothing to do with coppermine but the script itself