Advertisement code right under the breadcrumb. Advertisement code right under the breadcrumb.
 

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]

Main Menu

Advertisement code right under the breadcrumb.

Started by a-amp, March 17, 2006, 12:31:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

a-amp

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,

xplicit

Perhaps an option is to make an extra case switch like  anycontent file in index.php add:


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
Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

lordprodigy

I'll give this a try. I have one concern... will this affect the relevance of the ads output?

xplicit

that got nothing to do with coppermine but the script itself
Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.