Loading...
 
Skip to main content

History: Module Adsense

Preview of version: 6

General Description
Warning

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/

Key Function and sub-features


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.


Related Links


https://www.google.com/adsense/

Typical Uses


Using this module helps you to place anywhere you adsense banner using the plugins Module.

Example:

Image
Copy to clipboard
{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

Case Studies


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

Bugs

Support Requests

TikiTeam


Yoni with the great knowledge AND patience of Toggg

For more information

History

Advanced
Information Version
MojaveMedia Include Plugin modified by editor. 15
View
MojaveMedia Include Plugin modified by editor. 14
View
Marc Laporte 13
View
PJ 12
View
pjotre 10
View
oliverartur 9
View
siliconcitizen 8
View
oliverartur Due TikiWiki usues the Smarty Template System you need to use the proper tags, but it's very simple. 7
View
Gary Cunningham-Lee Warning about module not working, and link to Adsense2 added. 6
View
Bernard Sfez / Tiki Specialist 5
View
Bernard Sfez / Tiki Specialist 4
View
Bernard Sfez / Tiki Specialist 3
View
Bernard Sfez / Tiki Specialist 2
View
Bernard Sfez / Tiki Specialist 1
View