DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:googleads

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:googleads [2009-10-08 23:19] – tag cleanup layneeplugin:googleads [2020-09-15 10:38] (current) tjgrant@tatewake.com
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: Allows you to include Google AdSense advertising into your wiki template. Based on the Google Analytics plugin+description: This tool allows you to set a code for use with Google AdSense, which allows you to put targeted advertisements on your site
-author     : Terence J. Grant, Bernd Zeimetz+author     : Terence J. Grant
 email      : tjgrant@tatewake.com email      : tjgrant@tatewake.com
 type       : admin type       : admin
-lastupdate : 2007-04-09 +lastupdate : 2020-09-15 
-compatible : current+compatible : 2020-07-29 "Hogfather", 2018-04-22 "Greebo", 2017-02-19 "Frusterick Manners", 2016-06-26 "Elenor Of Tsort"
 depends    :  depends    : 
 conflicts  conflicts 
-similar    : google_adsense2+similar    : 
 tags       : advertising, google, embed tags       : advertising, google, embed
 +
 +downloadurl: https://github.com/tatewake/dokuwiki-plugin-googleads/archive/master.zip
 +bugtracker : https://github.com/tatewake/dokuwiki-plugin-googleads/issues
 +sourcerepo : https://github.com/tatewake/dokuwiki-plugin-googleads/
 +donationurl: https://www.paypal.com/xclick/business=tjgrant%40tatewake.com&item_name=Google%20Adsense%20for%20DokuWiki%20Donation&no_shipping=1&no_note=1&tax=0&currency_code=USD&lc=US
 ---- ----
  
-[[http://tatewake.com/wiki/projects:google_adsense_for_dokuwiki|Details and Download]]+===== License ===== 
 + 
 +  * **Author:** [[tjgrant@tatewake.com|Terence J. Grant]] 
 +  * **License:** [[http://www.opensource.org/licenses/gpl-license.php|GNU GPL v2]] 
 +  * **Donate:** [[https://www.paypal.com/xclick/business=tjgrant%40tatewake.com&item_name=Google%20Adsense%20for%20DokuWiki%20Donation&no_shipping=1&no_note=1&tax=0&currency_code=USD&lc=US|Click here.]] 
 + 
 +===== 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: {{http://cloud.github.com/downloads/tatewake/dokuwiki-plugin-googleads/googleads-stable.tar.gz}} 
 +    * Github URL:  [[https://github.com/tatewake/dokuwiki-plugin-googleads]] 
 + 
 +  * Older downloads are available on request only. 
 + 
 +**Notehttp://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:**\\ 
 +<code> 
 +% cd <dokuwiki>/lib/plugins/ 
 +% git clone git://github.com/tatewake/dokuwiki-plugin-googleads.git googleads 
 +</code> 
 + 
 +**Debian install (or probably any other distribution):** 
 +<code> 
 +# 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/ 
 +</code> 
 + 
 +**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 [[wp>Adsense|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: 
 + 
 +<code php> 
 +<?php 
 +if (file_exists(DOKU_PLUGIN.'googleads/code.php')) 
 +include_once(DOKU_PLUGIN.'googleads/code.php'); 
 +if (function_exists('gads_code')) gads_code(); 
 +?> 
 +</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.
  
 ===== Discussion ===== ===== Discussion =====
  
-Please use the [[http://tatewake.com/wiki/talk:projects:google_adsense_for_dokuwiki|discussion page]] for this plugin.+  * Start all subtopics using H2. (Heading 2.) 
 + 
 + 
 +==== Fatal errorCall to undefined method admin_plugin_googleads::plugin_locale_xhtml() ==== 
 + 
 +**Fix:** Fatal error: Call to undefined method admin_plugin_googleads::plugin_locale_xhtml() in /lib/plugins/googleads/admin.php on line 94 
 + 
 +Edit <code> plugins\googleads\admin.php </code> 
 + 
 +Replace: <code>print $this->plugin_locale_xhtml('intro');</code> 
 +With<code>print $this->locale_xhtml('intro');</code> 
 + 
 +Regards. 
 + 
 +==== How to disable ads for one particular page? ==== 
 +Is is possible with this plugin to not run the ads on some particular page? 
 + 
 +Regards 
 +---- 
plugin/googleads.1255036765.txt.gz · Last modified: 2009-10-08 23:19 by laynee

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki