This is an old revision of the document!
Table of Contents
Google Adsense for DokuWiki
Compatible with DokuWiki
current
Allows you to include Google AdSense advertising into your wiki template. Based on the Google Analytics plugin.
The missing download url means that this extension cannot be installed via the Extension Manager. Please see Publishing a Plugin on dokuwiki.org. Recommended are public repository hosts like GitHub, GitLab or Bitbucket.
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to google_adsense2
Google Adsense for DokuWiki
Note Bugs, feature requests, etc have moved to the discussion page for the project.
License
- Author: Terence J. Grant (Current), Bernd Zeimetz (Original)
- License: GNU GPL v2
- Last Update: 2007-04-09
It's not required, but please consider linking to this page or the main page from your site if you like this product.
Download
Before downloading or using this product, make sure you understand and accept the terms of the license.
After downloading, make sure to follow the install instructions or upgrading instructions below; trust me, they're worth reading.
- This is the latest version, compatible with The Latest DokuWiki:
- Latest Version: googleads-stable.tar.gz - April 9, 2007
- Older downloads are available on request only.
Note: http://cloud.github.com/downloads/tatewake/dokuwiki-plugin-googleads/googleads-stable.tar.gz always points to the latest stable version!
Installation
Use the plugin manager to install, or…
- download the tarball/zip-file
- unpack it into
<dokuwiki>/lib/plugins/
- login as admin and change the plugin in the configuration manager
using git:
% cd <dokuwiki>/lib/plugins/ % git clone git://github.com/tatewake/dokuwiki-plugin-googleads.git googleads
Debian install (or probably any other distribution):
# cd /usr/share/dokuwiki/lib/plugins/ # wget http://cloud.github.com/downloads/tatewake/dokuwiki-plugin-googleads/googleads-stable.tar.gz # tar -xvzf googleads-stable.tar.gz # chown -Rv 33 googleads/
Note: http://cloud.github.com/downloads/tatewake/dokuwiki-plugin-googleads/googleads-stable.tar.gz always points to the latest stable version!
About
This plugin allows you to include Google Adsense advertisings into your wiki page. It is possible to configure whether or not ads are shown to admins and/or logged-in users.
To use it you'll have to insert the following code into your template:
<?php if (file_exists(DOKU_PLUGIN.'googleads/code.php')) include_once(DOKU_PLUGIN.'googleads/code.php'); if (function_exists('gads_code')) gads_code(); ?>
Note: Inserting the code above is required, not optional.
Install
As a plugin all you need to do is unpack the file into the lib/plugins/ directory (you should end up with a lib/plugins/googleads folder.)
Upgrading
To upgrade, remove the original lib/plugins/googleads folder, and install the new version as instructed above. You may wish to make a note of your google adsense code first though.
What's New
August 30, 2009
- Terence has taken over the project from Bernd and the project will be hosted on this site from here on.
April 9, 2007
- Don't display ads on login/registration pages
Mar 14, 2007
- Initial release (Based on Google Analytics plugin.)
Discussion
- Start all subtopics using H2. (Heading 2.)