TwitterFeed (English)
Title: TwitterFeed (English)
About: I created an extension for MediaWiki, the wiki engine of the famous Wikipedia. This extension will display the last-tweets of a Twitter Profile.
Installation
- Download TwitterFeed, and be sure to rename the downloaded file to TwitterFeed.php.
- Drop this script in $IP/extensions.
- Note: $IP is your MediaWiki install dir.
- Enable the extension by adding this line to your LocalSettings.php:
- require_once("$IP/extensions/TwitterFeed.php");
-
Make sure that these php5 variables are activated:
- allow_url_include = On
allow_url_fopen = On - allow_url_include = On
Usage
Once installed, you may display tweets to any article.
To do so, simply add this text to the body of your page where you'd like the tweets to appear:
- <twitterfeed id="sessions-userid"></twitterfeed>
- <twitterfeed nb="nb-of-tweets" id="sessions-userid"></twitterfeed>
Where "id" is the session user id and "nb-of-tweets" the max number of appearing tweets. To get it:
- Go to the Twitter page:
- Example: http://twitter.com/bapness
- Copy the RSS Feed url:
- And finally get the ID:
- Example: 27030648
That's it!
Developer Notes
Once the extension is install, you can change the last lignes of the for-loop of the function renderTwitterFeed() in TwitterFeed.php. It must be usefull to customize the tweets display.
Licensing: TwitterFeed is released under the MIT License.
Links: TwitterFeed SourceForge to download the extension and MediaWiki TwitterFeed for more informations.
React about this on the (french) NJournal
Lien: TwitterFeed french versionÀ propos: J'ai créé un extension pour MediaWiki, le moteur de wiki du célèbre Wikipedia. Cette extension permet d'afficher les derners tweets d'un profil Twitter.






