| 1 | # Action Streams Plugin for Movable Type |
|---|
| 2 | # Authors: Mark Paschal, Akira Sawada, Fumiaki Yoshimatsu, Bryan Tighe, |
|---|
| 3 | # Brad Choate, Alex Bain |
|---|
| 4 | # Copyright 2009 Six Apart, Ltd. |
|---|
| 5 | # License: Artistic, licensed under the same terms as Perl itself |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | OVERVIEW |
|---|
| 9 | |
|---|
| 10 | Action Streams for Movable Type collects your action on third party web sites |
|---|
| 11 | into your Movable Type web site. Using it, you can aggregate those actions for |
|---|
| 12 | your reference, promote specific items to blog posts, and stream the whole set |
|---|
| 13 | to your friends and readers. Action Streams are a powerful part of your web |
|---|
| 14 | profile. |
|---|
| 15 | |
|---|
| 16 | The plugin adds the ability for your Movable Type authors to list their |
|---|
| 17 | accounts on third party web services. A periodic task then automatically |
|---|
| 18 | imports your authors' activity on those services using XML feeds (where |
|---|
| 19 | provided) and scraping HTML pages (where necessary). Your authors can then |
|---|
| 20 | publish their action streams completely under their control: the provided |
|---|
| 21 | template tags make it possible to display authors' accounts and actions on any |
|---|
| 22 | page powered by Movable Type. The example templates and the provided template |
|---|
| 23 | set also use the XFN and hAtom microformats and provide web feeds to integrate |
|---|
| 24 | with tools your readers may be using. |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | PREREQUISITES |
|---|
| 28 | |
|---|
| 29 | - Movable Type 4.2 or higher |
|---|
| 30 | - Scheduled task or cron job to execute the Periodic Tasks script (see below) |
|---|
| 31 | |
|---|
| 32 | The Action Streams plugin ships with all of the external libraries you should |
|---|
| 33 | need to run it. |
|---|
| 34 | |
|---|
| 35 | Note: Action Streams does not work when run-periodic-tasks is run in daemon |
|---|
| 36 | mode. |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | INSTALLATION |
|---|
| 40 | |
|---|
| 41 | 1. Configure a cronjob (see below) for the script run-periodic-tasks. |
|---|
| 42 | 2. Unpack the ActionStreams archive. |
|---|
| 43 | 3. Copy the contents of ActionStreams/extlib into /path/to/mt/extlib/ |
|---|
| 44 | 3. Copy the contents of ActionStreams/mt-static into /path/to/mt/mt-static/ |
|---|
| 45 | 4. Copy the contents of ActionStreams/plugins into /path/to/mt/plugins/ |
|---|
| 46 | 5. Navigate to your profile, and click on "Other Profiles." |
|---|
| 47 | 6. Build a list of your accounts from which to display and stream actions. |
|---|
| 48 | 7. Edit your stylesheet to include needed CSS. (see STYLES below) |
|---|
| 49 | 8. Edit your templates to display your other profiles and your Action |
|---|
| 50 | Stream. (See the Template Author Guide in the doc/ folder.) A template |
|---|
| 51 | set is also provided for convenience. |
|---|
| 52 | 9. Edit the plugin's settings to enable automatically rebuilding your blog |
|---|
| 53 | as new actions are imported. This setting is under each of your blog's |
|---|
| 54 | plugin settings. |
|---|
| 55 | |
|---|
| 56 | |
|---|
| 57 | CRONJOB |
|---|
| 58 | |
|---|
| 59 | Action Streams uses Movable Type's scheduled task system to collect your |
|---|
| 60 | action data from remote services. To run scheduled tasks, configure a cron job |
|---|
| 61 | to run MT's tools/run-periodic-tasks script periodically. |
|---|
| 62 | |
|---|
| 63 | Add the following lines to your crontab to execute the script every 10 |
|---|
| 64 | minutes: |
|---|
| 65 | |
|---|
| 66 | # Movable Type scheduled tasks |
|---|
| 67 | */10 * * * * cd /path/to/mt; perl ./tools/run-periodic-tasks |
|---|
| 68 | |
|---|
| 69 | |
|---|
| 70 | STYLES |
|---|
| 71 | |
|---|
| 72 | To add icons to your Action Streams and other basic styling, add the following |
|---|
| 73 | line to the top of your main stylesheet (normally styles.css). |
|---|
| 74 | |
|---|
| 75 | @import url(<MT:StaticWebPath>plugins/ActionStreams/css/action-streams.css); |
|---|
| 76 | |
|---|
| 77 | The classes used in the template code examples use the same classes as the |
|---|
| 78 | default templates and thus they work well with the default themes. |
|---|
| 79 | |
|---|
| 80 | |
|---|
| 81 | TEMPLATE CODE |
|---|
| 82 | |
|---|
| 83 | See the Template Author Guide in the doc/ folder for help with Action Streams' |
|---|
| 84 | template tags. |
|---|
| 85 | |
|---|
| 86 | |
|---|
| 87 | CHANGES |
|---|
| 88 | |
|---|
| 89 | 2.2 in development |
|---|
| 90 | Improved Delicious stream. |
|---|
| 91 | Fixed error when rebuilding blogs with deactivated templates. |
|---|
| 92 | Support for "not" operator in mt:ActionStreams "service" and "stream" |
|---|
| 93 | tag attributes when used individually. |
|---|
| 94 | Quieter operation when used with Log4MT. |
|---|
| 95 | Fixed bug that prevented use of methods other than get() with the HTTP |
|---|
| 96 | caching system. |
|---|
| 97 | |
|---|
| 98 | 2.1 17 March 2009 |
|---|
| 99 | Localized into several pleasing world languages. (Thanks, Six Apart |
|---|
| 100 | Motion Team!) |
|---|
| 101 | Wrote documentation (see plugin's doc/ directory or web site). |
|---|
| 102 | Provided editing of external profiles that have already been added. |
|---|
| 103 | Added "Update Now" button to profiles list. |
|---|
| 104 | Hotlinking of Twitter and Identi.ca tweets in default rendering. |
|---|
| 105 | Support for conditional HTTP requests when collecting actions. |
|---|
| 106 | Provided filtering of the "Action Streams" listing in the app. |
|---|
| 107 | Added `StreamActionRollup` tag for "rolling up" similar actions. |
|---|
| 108 | Bundled the "Recent Actions" blog dashboard widget. (Thanks, Bryan!) |
|---|
| 109 | Added support for RSS feeds in the Website stream. |
|---|
| 110 | Provided code to make easy "rss" recipes from RSS feeds. |
|---|
| 111 | Improved template set (incl. fixes for MT 4.2 support). |
|---|
| 112 | Switched to asynchronous job processing for action collecting. |
|---|
| 113 | Made installation easier (less dependent on Web::Scraper, moved extlib |
|---|
| 114 | into plugin as per MT 4.2 capability, removed Iwtst plugin). |
|---|
| 115 | Added many new profiles and streams! |
|---|
| 116 | |
|---|
| 117 | 1.0 30 January 2008 |
|---|
| 118 | Initial release. |
|---|
| 119 | |
|---|
| 120 | |
|---|
| 121 | CREDITS |
|---|
| 122 | |
|---|
| 123 | Thanks to Bryan Tighe, Brad Choate, and Alex Bain for their contributions of |
|---|
| 124 | various features and stream recipes. |
|---|
| 125 | |
|---|
| 126 | This distribution contains icons from Silk, an icon set by Mark James, |
|---|
| 127 | licensed under the Creative Commons Attribution 2.5 License. |
|---|
| 128 | |
|---|
| 129 | http://www.famfamfam.com/lab/icons/silk/ |
|---|
| 130 | |
|---|
| 131 | |
|---|