Nov

19

Monetize Gallery2 - part 2

November 19, 2007 |

Following on from our introduction to swapping advertisiment bands on Gallery2 we’ll now elaborate on how to drill down the ads into the deeper levels of the gallery.

see the first part of how to Monetize Gallery2

To drill the adverts down we have to use a modified bit of code from the breadcrumb and this looks like :

Monetize Gallery2 - part 2

So what this does is anything that is under the “Ergo Proxy Gallery” now displays the amazon widget.

There are other galleries, so we’ll add another one for Adsense.

Monetize Gallery2 p6

Don’t forget to use your Adsense and Amazon code snippets.

Anything under Death Note Gallery will display Adsense, and not Amazon. So if people are looking at albums or photos the advertising method will be remembered and it will choose the correct ads.

I’ve placed the code so that you can download a text file to see Gallery2 adverts.

I’m sure others can improve on this code but I think it’s a good start. It works and gets the job done.

You can see the system in action at Pure Anime Gallery, and look around Ergo Proxy and also the Death Note Gallery.

Tags:, ,

Popularity: 22%


Comments

Name (required)

Email (required)

Website

Speak your mind

Close
E-mail It