| 1 | # Action Streams Plugin for Movable Type |
|---|
| 2 | # Authors: Mark Paschal, Bryan Tighe, Brad Choate, Alex Bain |
|---|
| 3 | # Copyright 2008 Six Apart, Ltd. |
|---|
| 4 | # License: Artistic, licensed under the same terms as Perl itself |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | OVERVIEW |
|---|
| 8 | |
|---|
| 9 | Action Streams for Movable Type collects your action on third party web sites |
|---|
| 10 | into your Movable Type web site. Using it, you can aggregate those actions for |
|---|
| 11 | your reference, promote specific items to blog posts, and stream the whole set |
|---|
| 12 | to your friends and readers. Action Streams are a powerful part of your web |
|---|
| 13 | profile. |
|---|
| 14 | |
|---|
| 15 | The plugin adds the ability for your Movable Type authors to list their |
|---|
| 16 | accounts on third party web services. A periodic task then automatically |
|---|
| 17 | imports your authors' activity on those services using XML feeds (where |
|---|
| 18 | provided) and scraping HTML pages (where necessary). Your authors can then |
|---|
| 19 | publish their action streams completely under their control: the provided |
|---|
| 20 | template tags make it possible to display authors' accounts and actions on any |
|---|
| 21 | page powered by Movable Type. The example templates and the provided template |
|---|
| 22 | set also use the XFN and hAtom microformats and provide web feeds to integrate |
|---|
| 23 | with tools your readers may be using. |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | PREREQUISITES |
|---|
| 27 | |
|---|
| 28 | - Movable Type 4.1 or higher |
|---|
| 29 | - Scheduled task or cron job to execute the Periodic Tasks script (see below) |
|---|
| 30 | |
|---|
| 31 | The Action Streams plugin ships with all of the external libraries you should |
|---|
| 32 | need to run it. |
|---|
| 33 | |
|---|
| 34 | Note: Action Streams does not work when run-periodic-tasks is run in daemon |
|---|
| 35 | mode. |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | INSTALLATION |
|---|
| 39 | |
|---|
| 40 | 1. Configure a cronjob (see below) for the script run-periodic-tasks. |
|---|
| 41 | 2. Unpack the ActionStreams archive. |
|---|
| 42 | 3. Copy the contents of ActionStreams/extlib into /path/to/mt/extlib/ |
|---|
| 43 | 3. Copy the contents of ActionStreams/mt-static into /path/to/mt/mt-static/ |
|---|
| 44 | 4. Copy the contents of ActionStreams/plugins into /path/to/mt/plugins/ |
|---|
| 45 | 5. Navigate to your profile, and click on "Other Profiles." |
|---|
| 46 | 6. Build a list of your accounts from which to display and stream actions. |
|---|
| 47 | 7. Edit your stylesheet to include needed CSS. (see STYLES below) |
|---|
| 48 | 8. Edit your templates to display your other profiles and your Action |
|---|
| 49 | Stream. (See the Template Author Guide in the doc/ folder.) A template |
|---|
| 50 | set is also provided for convenience. |
|---|
| 51 | 9. Edit the plugin's settings to enable automatically rebuilding your blog |
|---|
| 52 | as new actions are imported. This setting is under each of your blog's |
|---|
| 53 | plugin settings. |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | CRONJOB |
|---|
| 57 | |
|---|
| 58 | Action Streams uses Movable Type's scheduled task system to collect your |
|---|
| 59 | action data from remote services. To run scheduled tasks, configure a cron job |
|---|
| 60 | to run MT's tools/run-periodic-tasks script periodically. |
|---|
| 61 | |
|---|
| 62 | Add the following lines to your crontab to execute the script every 10 |
|---|
| 63 | minutes: |
|---|
| 64 | |
|---|
| 65 | # Movable Type scheduled tasks |
|---|
| 66 | */10 * * * * cd /path/to/mt; perl ./tools/run-periodic-tasks |
|---|
| 67 | |
|---|
| 68 | |
|---|
| 69 | STYLES |
|---|
| 70 | |
|---|
| 71 | To add icons to your Action Streams and other basic styling, add the following |
|---|
| 72 | line to the top of your main stylesheet (normally styles.css). |
|---|
| 73 | |
|---|
| 74 | @import url(<MT:StaticWebPath>plugins/ActionStreams/css/action-streams.css); |
|---|
| 75 | |
|---|
| 76 | The classes used in the template code examples use the same classes as the |
|---|
| 77 | default templates and thus they work well with the default themes. |
|---|
| 78 | |
|---|
| 79 | |
|---|
| 80 | TEMPLATE CODE |
|---|
| 81 | |
|---|
| 82 | See the Template Author Guide in the doc/ folder for help with Action Streams' |
|---|
| 83 | template tags. |
|---|
| 84 | |
|---|
| 85 | |
|---|
| 86 | CREDITS |
|---|
| 87 | |
|---|
| 88 | This distribution contains icons from Silk, an icon set by Mark James, |
|---|
| 89 | licensed under the Creative Commons Attribution 2.5 License. |
|---|
| 90 | |
|---|
| 91 | http://www.famfamfam.com/lab/icons/silk/ |
|---|
| 92 | |
|---|
| 93 | |
|---|