Extension:ShoogleTweet
From MediaWiki.org
ShoogleTweet Release status: stable |
|||
---|---|---|---|
Implementation | Tag, Hook | ||
Description | Provides a high availability Twitter feed | ||
Author(s) | Christopher Schirner (Schinkentalk) | ||
Latest version | 1.0 | ||
MediaWiki | 1.6.x, 1.8.x, 1.9.x, 1.15+ | ||
Database changes | No | ||
License | MIT | ||
Download | Project page Git [Help] |
||
|
|||
Translate the ShoogleTweet extension if possible |
|||
Check usage and version matrix; code metrics |
The ShoogleTweet extension is a MediaWiki extension which provides the last N tweets of a given screen name on your desired wikipedia page. It also caches the results in an apc-cache if it exist.
- Source Code
- ShoogleTweet GitHub
- Licensing
- ShoogleTweet is released under The MIT License.
Installation[edit | edit source]
Step 1 - Retrieving oAuth Access[edit | edit source]
- Navigate to the Twitter "My Applications" page and create a new application
- After creating the application the 'Consumer Key' and 'Consumer Secret' will be provided. You'll need that later
Step 2 - Installing the Extension[edit | edit source]
- Navigate to the $IP/extensions directory of your mediawiki installation
- git clone https://github.com/schinken/mediawiki-shoogletweet
- cd mediawiki-shoogletweet/
- git submodule init
- git submodule update
- Enable the extension by adding this line to your LocalSettings.php:
-
require_once("$IP/extensions/mediawiki-shoogletweet/ShoogleTweet.php");
-
$wgShoogleTweetConsumerKey = '#YOUR_CONSUMER_KEY#';
-
$wgShoogleTweetConsumerKeySecret = '#YOUR_CONSUMER_KEY_SECRET#';
-
Usage[edit | edit source]
Once installed, you may display tweets to any given screen_name!
Just add
<ShoogleTweet limit="6">b4ckspace</ShoogleTweet>
to your desired wiki page
The output can be styled with this piece of CSS:
#tw-list { margin:0; padding: 0; } #tw-list li{ list-style:none; margin-bottom: 2px; padding: 4px; } #tw-list li.even{ background-color:#f8f8f8; }
Developer Notes[edit | edit source]
If there are any problems, feel free to contact me through my my hackerspace profile page.