coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 plugins => Topic started by: lordprodigy on February 22, 2006, 07:00:58 AM

Title: Adsense plugin
Post by: lordprodigy 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?
Title: Re: Adsense plugin
Post by: hieddie on September 19, 2006, 01:49:02 AM
I think that is a wonderful idea? Has anyone done this yet? 
Title: Re: Adsense plugin
Post by: Sami on September 19, 2006, 07:09:13 AM
Try copper_ad (http://forum.coppermine-gallery.net/index.php?topic=33151.0) and use last banner.php (http://forum.coppermine-gallery.net/index.php?topic=33151.msg168449#msg168449)

use HTML option of plugin with multi location
Title: Re: Adsense plugin
Post by: Joachim Müller 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 ?
Title: Re: Adsense plugin
Post by: Sami on September 19, 2006, 08:07:15 AM
Quote from: lordprodigy on February 22, 2006, 07:00:58 AM
- ability to place these tokens in anycontent/catlist/AD01/alblist/AD02/random,2/lastup,2
Plugin can show multiple ad ...
Title: Re: Adsense plugin
Post by: Joachim Müller 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.