User:Varnent/sandbox

Description
Updates a predefined Twitter account each time a new article is created or edited. URLs are shortened using bitly service. Settings allow you to enable automatic tweets for either edits or new articles. You can then allow a checkbox to be placed on the edit page to enable a tweet to be sent.

Requirements
The following requirements must be satisfied for the TweetANew extension to work.
 * MediaWiki 1.17 or newer (due to usage of ResourceLoader)

Installation
Add the following to LocalSettings.php:


 * Users should have a Twitter account and request API permissions (OAuth settings and tokens). You can register at http://dev.twitter.com. Be sure to have write and read permissions!
 * Set OAuth Settings and Access Tokens at LocalSettings.php:
 * Users should have a Bit.ly account and API key. More information at http://code.google.com/p/bitly-api/wiki/ApiDocumentation#Authentication_and_Shared_Parameters
 * Add the following 2 lines to your LocalSettings.php:
 * Check if you have 6 logins or keys in total!
 * Your twitter should now update whenever a new article is created!

Additional configuration parameters are below.

Release notes
12 September 2011: 0.2 23 July 2011: 0.1
 * Ignoring images (jpg/png)
 * Using URL shortener
 * Added 'efficiency tracing parameters' to the URL
 * First version

Planned features

 * None at this time

Wish list

 * Your requests and ideas are welcome

Ideas being considered
Time will be spent on these if folks show interest on the wish list or talk page
 * Including multiple URL shortening services beyond just bitly
 * Addition of "efficiency tracing parameters" to the URL
 * Previous setup seemed to conflict with certain setups
 * Suggest use of bitly or Twitter's t.co analytics as alternative solution

Requests by developer

 * Add any wishes to wish list or request on talk page
 * Please test on wikis and report back via talk page
 * Requires at least MW1.17 due to use of ResourceLoader
 * Suggestions from developers are especially welcome! Contributions included will be credited as co-authors
 * Language translations will be credited