History: Module Adsense
Preview of version: 6
The Adsense module that ships with Tiki reportedly doesn't work, and in some cases apparently causes display problems with Tiki's pages.
There's an alternative at Google AdSense2.
A module to add a Google Adsense banner on Tikiwiki page. It is fully configurable. Note that PARAMETER "client and "display" should be set in order to make it work. A warning (to be translated) will be displayed if the format or the ad_client number (this number is in fact very usefull as it is your account id) are missing.
Two files are attached.
adsense.php that should be placed in /tikiwiki/modules/
adsense.tpl that should be placed in /tikiwiki/templates/modules/
Parameters to set for the module
client=pub-xxxxxxxxxxxxxxxx as it appears on the Google code
display= global banner format as it appears in the Google code, ex: display=468*60_as
color_border=
color_bg=
color_link=
color_url=
color_text=
colors as you set it for you own purpose ex: color_border=edeed5
If you don't set them the colors will be Google defaults
For the parameter display the values are:
728*90_as
468*60_as
300*250_as
160*600_as
120*600_as
336*280_as
250*250_as
234*60_as
180*15_as
125*125_as
120*140_as
Note that those values are Google values and i doubt they can be changed easely (i tried very quickly) nor that Google Rules authorize too many changes.
https://www.google.com/adsense/
Using this module helps you to place anywhere you adsense banner using the plugins Module.
Example:
{MODULE(module=>adsense, client=pub-xxxxxxxxxxxxxxxx, display=468*60_as, color_border=edeed5, color_bg=edeed5, color_link=0000CC, color_url=008000, color_text=000000)}{MODULE}
All will be set in a single line, it have been cut here to ease readablility
The uses are very basic, it help to display the Google Adsense code anywhere in Tikiwiki.
To see it on a Wiki page as the example above (i have set my account number 😉)
http://www.israelfr.com/tikiwiki/tiki-index.php?page=adsense