Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Adsense plugin  (Read 6735 times)

0 Members and 1 Guest are viewing this topic.

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Adsense plugin
« on: February 22, 2006, 07:00:58 am »

Hello, I would like to suggest a plugin which deals with some advertising issues. Everyone is welcome to share their ideas for its development. The way I see it is:

- you can add/modify multiple ad instances by pasting different codes provided by google, which would create {AD01}, {AD02} and so on...
- ability to place  these tokens in any place in theme.php (intermediate image display, slideshow, etc...)
- ability to place these tokens in anycontent/catlist/AD01/alblist/AD02/random,2/lastup,2

What do you guys think?
Logged

hieddie

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Adsense plugin
« Reply #1 on: September 19, 2006, 01:49:02 am »

I think that is a wonderful idea? Has anyone done this yet? 
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Adsense plugin
« Reply #2 on: September 19, 2006, 07:09:13 am »

Try copper_ad and use last banner.php

use HTML option of plugin with multi location
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adsense plugin
« Reply #3 on: September 19, 2006, 07:57:58 am »

Adsense is just static HTML with some JavaScript - there's no need to make it dynamic using PHP. So what's wrong with adding AdSense adds into themes/yourtheme/template.html ?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Adsense plugin
« Reply #4 on: September 19, 2006, 08:07:15 am »

- ability to place these tokens in anycontent/catlist/AD01/alblist/AD02/random,2/lastup,2
Plugin can show multiple ad ...
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adsense plugin
« Reply #5 on: September 19, 2006, 08:16:09 am »

This would be adding different Adsense block in different places. It would equal adding two AdSense blocks in different sections of template.html. If you want a AdSense rotation script, the "content of the main page" would not be the proper place to configure rotation.
If you want two Adsense blocks on your page within the block that are being represented by the {GALLERY}-token, then you will have to modify theme.php accordingly.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.