Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Advertisement code right under the breadcrumb.  (Read 4930 times)

0 Members and 1 Guest are viewing this topic.

a-amp

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Advertisement code right under the breadcrumb.
« 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,
Logged

xplicit

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 214
Re: Advertisement code right under the breadcrumb.
« Reply #1 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
Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: Advertisement code right under the breadcrumb.
« Reply #2 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?
Logged

xplicit

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 214
Re: Advertisement code right under the breadcrumb.
« Reply #3 on: March 22, 2006, 06:59:00 pm »

that got nothing to do with coppermine but the script itself
Logged
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.
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.