Extension:S5h google plus1
|
s5h_google_plus1 Release status: beta |
|||
|---|---|---|---|
| Implementation | Parser extension | ||
| Description | This extension adds google plus1 code into the page text | ||
| Author(s) | ed neville (enevilleTalk) | ||
| Last version | 1.0 | ||
| License | GPL 2.1 | ||
| Download | http://www.s5h.net/code/mediawiki/s5h_google_plus1/s5h_google_plus1.php | ||
|
|||
|
|||
|
Check usage (experimental) |
|||
Contents |
[edit] What can this extension do?
This extension provides Google Plus1 code to pages. This is useful if you're interested in simply applything this in a site-wide fashion with few alterations.
[edit] Usage
Download, install and modify the variables if you wish.
For example:
$ wget http://www.s5h.net/code/mediawiki/s5h_google_plus1/s5h_google_plus1.php
If you like this extension or have any comments/requests for it, please drop me a line.
[edit] Download instructions
Please download the s5h_google_plus1.php code and install in $IP/extensions/. $IP should hold your LocalSettings.php, you should already have an extensions directory beneath this. In reality, providing PHP can read the directory where you decide to store this, there shouldn't be a problem, but using an extensions directory should keep the installation tidy.
You may verify the PGP signature of this if you wish (http://www.s5h.net/wiki/Gpg).
[edit] Installation
To install this extension, add the code to LocalSettings.php:
require_once("$IP/extensions/s5h_google_plus1.php");
[edit] Configuration parameters
$wgs5hgoogleplus1filter["page_start"] = FALSE;
This controls the addition of plus1 code as a prefix of the page text.
$wgs5hgoogleplus1filter["page_end"] = TRUE;
This controls addition of plus1 code as a suffix of the page text.
$wgs5hgoogleplus1filter["display_size"] = 1;
This value can range from 0 to 3 where the values are:
- 0: default/standard
- 1: small
- 2: medium
- 3: tall
