Open main menu

Extension:ShoogleTweet

MediaWiki extensions manual
OOjs UI icon advanced.svg
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+
Database changes No
License MIT License
Download
README
  • $wgShoogleTweetConsumerKey
  • $wgShoogleTweetConsumerKeySecret
Translate the ShoogleTweet extension if it is available at translatewiki.net
Check usage and version matrix.

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.

InstallationEdit

Step 1 - Retrieving oAuth AccessEdit

  1. Navigate to the Twitter "My Applications" page and create a new application
  2. After creating the application the 'Consumer Key' and 'Consumer Secret' will be provided. You'll need that later

Step 2 - Installing the ExtensionEdit

  1. Navigate to the $IP/extensions directory of your mediawiki installation
  2. git clone https://github.com/schinken/mediawiki-shoogletweet
  3. cd mediawiki-shoogletweet/
  4. git submodule init
  5. git submodule update
  1. 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#';
    

UsageEdit

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 NotesEdit

If there are any problems, feel free to contact me through my my hackerspace profile page.

Wikis Using this ExtensionEdit