Extension:ShoogleTweet

From mediawiki.org
MediaWiki extensions manual
ShoogleTweet
Release status: unmaintained
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
Example Hackerspace Bamberg
  • $wgShoogleTweetConsumerKey
  • $wgShoogleTweetConsumerKeySecret

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.

Installation[edit]

Step 1 - Retrieving OAuth Access[edit]

  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 Extension[edit]

  1. Navigate to the $IP/extensions directory of your mediawiki installation
  2. git clone https://github.com/b4ckspace/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#';
    

Usage[edit]

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;
 }