Personal tools
From wiki.swiftlytilting.com
Jump to: navigation, search

SendToTwitter2

SendToTwitter2 sends a tweet whenever a page is updated and the "Send Tweet" checkbox is enabled on the edit page.

This extension is based upon Extension:SendToTwitter. Changes were commissioned by Wikiexpert.com.

Contents

Usage

Check the "Send Tweet" check box on an edit page to send an update to twitter.

You may view example tweets or follow this wiki @Swiftly_Tilting

Download

Installation

To install this extension, add the following to LocalSettings.php:

$wgSendToTwitterUsername      = 'YourTwitterUsername'; 
$wgSendToTwitterPassword      = 'YourTwitterPassword'; 
$wgSendToTwitterWikiURL       = 'http://www.yourdomain.com/wiki/'; 
$wgSendToTwitterUseCheckBox   = true; 
$wgSendToTwitterChecked       = false;
require_once("$IP/extensions/SendToTwitter2/SendToTwitter2.php");

Configuration parameters

$wgSendToTwitterUsername      - Your Twitter Username
$wgSendToTwitterPassword      - Your Twitter Password
$wgSendToTwitterWikiURL       - The base url for your site
$wgSendToTwitterUseCheckBox   - If true, will display checkbox, if false, all edits will cause a tweet.  Default is true)
$wgSendToTwitterChecked       - Sets the default state of the checkbox. (Default is false)

You may also modify the messages emitted from SentToTwitter2 by editing Special:AllMessages on you wiki. The following messages are available:

  • action-sendtotwitter
  • accesskey-sendtotwitter
  • tooltip-sendtotwitter
  • sendtotwitter-message1
  • sendtotwitter-message2
  • sendtotwitter-message3

See also

Winbinder Projects