root/trunk/ActionStreams/README.txt @ 1278

Revision 1278, 4.7 kB (checked in by mpaschal, 12 months ago)

Change README to recommend running rpt every 10 minutes
BugzID: 80256

Line 
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
7OVERVIEW
8
9Action Streams for Movable Type collects your action on third party web sites into your
10Movable Type web site. Using it, you can aggregate those actions for your reference, promote
11specific items to blog posts, and stream the whole set to your friends and readers. Action
12Streams are a powerful part of your web profile.
13
14The plugin adds the ability for your Movable Type authors to list their accounts on third
15party web services. A periodic task then automatically imports your authors' activity on those
16services using XML feeds (where provided) and scraping HTML pages (where necessary). Your
17authors can then publish their action streams completely under their control: the provided
18template tags make it possible to display authors' accounts and actions on any page powered by
19Movable Type. The example templates and the provided template set also use the XFN and hAtom
20microformats and provide web feeds to integrate with tools your readers may be using.
21
22
23PREREQUISITES
24
25- Movable Type 4.1 or higher
26- Scheduled task or cron job to execute the Periodic Tasks script (see below)
27
28The Action Streams plugin ships with all of the external libraries you should need to run it.
29
30Note: Action Streams does not work when run-periodic-tasks is run in daemon mode.
31
32
33INSTALLATION
34
35  1. Configure a cronjob (see below) for the script run-periodic-tasks.
36  2. Unpack the ActionStreams archive.
37  3. Copy the contents of ActionStreams/extlib into /path/to/mt/extlib/
38  3. Copy the contents of ActionStreams/mt-static into /path/to/mt/mt-static/
39  4. Copy the contents of ActionStreams/plugins into /path/to/mt/plugins/
40  5. Navigate to your profile, and click on "Other Profiles."
41  6. Build a list of your accounts that you wish to display and stream actions from.
42  7. Edit your stylesheet to include needed CSS. (see STYLES below)
43  8. Edit your templates to display your other profiles and your Action Stream. (see
44     example_templates folder)  A template set is also provided for convenience.
45  9. Edit the plugin's settings to enable automatically rebuilding your blog as new
46     actions are imported.  This setting is under each of your blog's plugin settings.
47
48
49CRONJOB
50
51Action Streams uses Movable Type's scheduled task system to collect your action data
52from remote services. To run scheduled tasks, configure a cron job to run MT's
53tools/run-periodic-tasks script periodically.
54
55Add the following lines to your crontab to execute the script every 10 minutes:
56
57  # Movable Type scheduled tasks
58  */10 * * * * cd /path/to/mt; perl ./tools/run-periodic-tasks
59
60
61STYLES
62
63To add icons to your Action Streams and other basic styling, add the following line to
64the top of your main stylesheet (normally styles.css).
65
66  @import url(<MT:StaticWebPath>/plugins/ActionStreams/css/action-streams.css);
67
68The classes used in the template code examples use the same classes as the default templates
69and thus they work well with the default themes.
70
71
72TEMPLATE CODE
73
74The example_templates folder within the Action Streams plugin includes example widgets and
75index templates which make use of an author's Other Profiles and Action Stream.  Though it
76is possible to create Action Streams combining actions from multiple authors, all of the
77examples display profiles or actions from a single author.
78
79The following template code will produce a list of actions for the author "Melody Nelson":
80
81  <mt:ActionStreams display_name="Melody Nelson" lastn="20">
82      <mt:if name="__first__">
83  <div class="action-stream">
84      <ul class="action-stream">
85      </mt:if>
86          <li class="service-icon service-<mt:var name="service_type">"><mt:StreamAction></li>
87      <mt:if name="__last__">
88      </ul>
89  </div>
90      </mt:if>
91  </mt:ActionStreams>
92
93It is recommended that you add the above code as a template module or widget to make it
94easier to include and display profile actions throughout your web site.
95
96For more detailed examples see the templates in the example_templates directory.
97
98There are additional template tags, such as mt:StreamActionThumbnailURL, which need to
99be documented better in the future.
100    <mt:setvarblock name="thumb_url"><mt:StreamActionThumbnailURL></mt:setvarblock>
101    <mt:if name="thumb_url">
102        <div style='padding-left: 20px; padding-bottom: 10px; padding-top: 5px;'>
103            <img src='<mt:var name='thumb_url'>' />
104        </div>
105    </mt:if>
106
107CREDITS
108
109This distribution contains icons from Silk, an icon set by Mark James,
110licensed under the Creative Commons Attribution 2.5 License.
111
112http://www.famfamfam.com/lab/icons/silk/
113
114
Note: See TracBrowser for help on using the browser.