Extension:AlexaRank
From MediaWiki.org
Alexa Rank is a MediaWiki extension.
Get the full details at MediaWiki's extension page.
|
Alexa Rank Release status: beta |
|||
|---|---|---|---|
| Implementation | Tag | ||
| Description | Display Alexa page rank graphs or buttons. | ||
| Author(s) | Cybersprockettalk | ||
| Last version | 0.2 (2008-01-01) | ||
| MediaWiki | 1.6 | ||
| License | No license specified | ||
| Download | AlexaRank.php Change Log |
||
| Example | cybersprocket.com | ||
|
|||
| Check usage and version matrix | |||
Contents |
What can this extension do? [edit]
Show Alexa page rank graphs in your wiki page wherever you put the <alexagraph> tags.
Usage [edit]
- Replace cybersprocket.com with the main domain you wish to report on.
Rank Graph [edit]
Examples [edit]
- Simple
<alexagraph>cybersprocket.com</alexagraph>
- Multiple Site Comparison : you can compare up to three domains
<alexagraph>cybersprocket.com modellocate.com remodelcharleston.com</alexagraph>
- Fully qualified
<alexagraph height="380" width="300" type="r" range="1y" color="e6f3fc">cybersprocket.com</alexagraph>
Parameters [edit]
- Between the brackets: enter up to three domain names
- height: min 30, max 300
- width: min 40, max 400
- type: 'r' = reach, 'n' = rank, 'p' = page views
- range: '7d', '1m', '3m', '6m', '1y', '3y', '5y', 'max'
- color: <hex-code without #>, i.e. e6f3fc
Alexa Buttons [edit]
You can show either a stats button or a traffic button.
Examples [edit]
<alexabutton>cybersprocket.com</alexabutton> <alexabutton size="120x95" type="stats">cybersprocket.com</alexabutton> <alexabutton size="120x240" type="stats">cybersprocket.com</alexabutton> <alexabutton size="120x90" type="traffic">cybersprocket.com</alexabutton>
Parameters [edit]
- type: stats or traffic
- size:
- for stats types: 120x95 or 120x240
- for traffic types: 120x65 or 120x90 or 468x60
Download instructions [edit]
Download the PHP file noted in the [#Code] section below and put it in $IP/extension/AlexaRank/AlexaRank.php. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.
Installation [edit]
To install this extension, add the following to LocalSettings.php:
require_once("$IP/extensions/AlexaRank/AlexaRank.php");
Code [edit]
Get the most recent code for AlexaRank.php at Cyber Sprocket.
See also [edit]
- http://www.cybersprocket.com/wiki/index.php/Alexa_Rank
- Alexa traffic graph widget on MediaWikiWidgets.org site, it uses Widgets extension.
About The Author [edit]
Cyber Sprocket Labs is a business technology consulting company located in Charleston SC.
