Avatar of Leevi Graham

LG Twitter Update your Twitter.com status when publishing new ExpressionEngine entries.

Download LG Twitter v2.0.1 Table of contents

Updgrading from LG Twitter 1.0?

LG Twitter 2.0 is a complete rewrite from LG Twitter 1.0 and may not be compatible on your system. Disable the LG Twitter 1.0 and delete all files associated with the extension before continuing.

Keeping LG Twitter 2.0 up-to date

Did you know that LG Twitter is MSM compatible and plays well with LG Addon Updater?

LG Addon Updater is a recommended download which will notify you when LG Twitter is updated.

Features

LG Twitter is a Multi-Site Manager compatible extension that allows you to post Tweets to Twitter.com from your ExpressionEngine control panel. Tweets can be posted through a Twitter tab which is added to the publish / edit form or through the “Quick Tweet” bar.

LG Twitter can also post dynamic tweets replacing ExpressionEngine tags with weblog entry values. See extension usage for more information on using tags.

Screenshots

Requirements

LG Twitter requires ExpressionEngine 1.6+ and CURL enabled. If you want to display the “Quick Tweet” bar a modern browser (IE7, Firefox, Safari, Opera) is also required.

Installation

The LG Twitter extension contains an extension and language file. To install LG Twitter follow the instructions below:

  • Download the latest version of LG Twitter
  • Extract the .zip file to your desktop
  • Copy extensions/ext.lg_twitter_ext.php file to your /system/extensions directory
  • Copy extensions/lg_twitter_ext directory to your /system/extensions directory
  • Copy the language/english/lang.lg_twitter_ext.php file to your /system/languages/english directory
  • Open the Extension Manager
  • Enable Extensions if not already enabled
  • Enable the extension
  • Configure the extension settings

Configuration

LG Twitter has the following extension settings which need to be entered separately for each Multi-Site Manager site:

Enable

Enable LG Twitter for this site?

Which member groups can send Tweets?

Allowed member groups will see the “Quick Tweet” bar if enabled and the Twitter tab for selected weblogs.

Which weblogs will show the Twitter tab?

A new tab will be added to the publish & edit screens in the ExpressionEngine control panel. The Tweet box in the tab will be filled with a default message.

Twitter Username

Your Twitter username.

Twitter Password

Your Twitter password.

Show “Quick Tweet” bar

A “Quick Tweet” bar will be fixed to the bottom of the CP. The “Quick Tweet” bar allows users to post a Tweet to Twitter from any page in the CP.

Auto Post

If auto posting is enabled the “Update your Twitter status?” checkbox will be checked by default in the Twitter tab.

Default Messages

New Post: {title} http://leevigraham.com/blog/post/{entry_id}/{url_title}

Each weblog can be assigned a default Tweet when publishing or editing new entries. See usage for more details on posting Tweets.

Scripts

http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js

LG Twitter requires jQuery Core v1.2.6+ to work correctly.

Check for updates?

LG Twitter can call home and check for recent extension updates. This feature requires LG Addon Updater.

Usage

Usage is simple. Post a Tweet and update your Twitter status.

There is one extra feature when posting from the publish form. The following ExpressionEngine tags will be replaced with their corresponding entry values in your Tweet.

  • {weblog_id}
  • {author_id}
  • {site_id}
  • {ip_address}
  • {title}
  • {url_title}
  • {entry_date}
  • {edit_date}
  • {versioning_enabled}
  • {year}
  • {month}
  • {day}
  • {expiration_date}
  • {comment_expiration_date}
  • {sticky}
  • {status}
  • {allow_comments}
  • {allow_trackbacks}
  • {forum_topic_id}
  • {dst_enabled}

If the Tweet is over 140 characters after variables have been replaced it will not be posted to Twitter. An error message will be displayed including the Tweet with replaced tags.

Change Log

2.0.1

  • PHP4 fixes
  • Path fix for EE installs in sub folders

2.0.0

  • Complete rewrite!
  • Integrated LG Addon Updater
  • Added “Quick Tweet” bar
  • Added MSM compatibility

1.0.2

  • Updated application key

1.0.1

  • Fixed bug when disabling extension
  • Added my application key for Twitter.com

1.0.0

  • Initial Release

License

Creative Commons License LG Twitter is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.