Friday, July 20, 2007

Adding Google Ads to your Twiki

Pretty Simple.

I wanted to setup up the wiki so each page would have ad's in top, bottom and left banners. I am trying to setup defaults for the site and ability to customize for any given 'Web'. In this post I achieve in the standard 'pattern' template.

Footer

1. The footer was cut and paste. ExampleWebBottomBar

Page to Edit {your twiki}/bin/view.pl/TWiki/WebBottomBar

Ad to use : I use the minimalistic link adds for the footer as it seems to fit well.

Changes to make,

[ADSENSE SCRIPT]

%WEBCOPYRIGHT%

Header

2. The header was easy, but did have to tweak a little more. ExampleWebTopBar

Page to Edit {your twiki}/bin/view.pl/TWiki/WebTopBar

Ad to use : 728x90_as

Changes to make,

A. Add a section in the middle. [AD SCRIPT]

B. I had to change the margin setting for the table to "margin-top: -5px;"

Side Bar

3. The sidebar (leftbar) is easy to change but must be done for each web. ExampleWebLeftBar

Page to Edit {your twiki}/bin/view.pl/[WEB]/WebLeftBar

Ad to use : 120 x 600 image

Changes to make,

And add the adsense script to the left side.

[ADSENSE SCRIPT]

What's Next.

Next... Customizing Top and Bottom bars for each Web.

My TwikiWikiMe Playground