| 1 |
****Microsummary Module****
|
| 2 |
// $Id: README.txt,v 1.1.2.3 2007/01/05 22:34:35 greggles Exp $
|
| 3 |
|
| 4 |
**Description:
|
| 5 |
This module provides a simple "microsummary" of a Drupal site.
|
| 6 |
|
| 7 |
See The Mozilla Wiki about microsummaries for details on possible uses.
|
| 8 |
http://wiki.mozilla.org/Microsummaries
|
| 9 |
|
| 10 |
Possible uses include providing a count of new or total users, a count of total
|
| 11 |
nodes on a site, a count of certain kinds of content added to the site, the
|
| 12 |
name of the most recent user: anything that changes on a semi regular basis.
|
| 13 |
|
| 14 |
By default this module currently displays three summaries:
|
| 15 |
1) a count of new and updated nodes for the user
|
| 16 |
2) a listing of registered users and active users
|
| 17 |
3) The most recent post title and the post time - useful for a blog site
|
| 18 |
|
| 19 |
The three default microsummaries can be disabled if they are not appropriate
|
| 20 |
for your site (or if you want to provide a better version.
|
| 21 |
|
| 22 |
Users can also specify a node which contains content to be used to create the
|
| 23 |
microsummary. The intended use of this feature is to have a PHP Snippet in the
|
| 24 |
node and then This completely opens up the functionality of the module. The
|
| 25 |
module respects the input format of the node so your site is protected from
|
| 26 |
accidentally running PHP that you did not intend to run.
|
| 27 |
|
| 28 |
|
| 29 |
**Install and Usage:
|
| 30 |
Basic case:
|
| 31 |
1. Enable the module on the admin/modules page
|
| 32 |
2. Visit admin/settings/microsummary and set a prefix or suffix for your summary
|
| 33 |
3. Using Firefox2 (or any other enabled browser) select the "Add Bookmark"
|
| 34 |
dialog and you should see a dropdown option for the "Title" of the bookmark to
|
| 35 |
be a Microsummary or "Live Title"
|
| 36 |
|
| 37 |
Configuring additional Microsummaries:
|
| 38 |
1. Create a new node that contains your microsummary - if you are using PHP code
|
| 39 |
to create the summary, be sure that you have selected the PHP Input format. Make
|
| 40 |
a note of node number for this summary. You can use any kind of node that has
|
| 41 |
a body, though I suggest the page or story node type.
|
| 42 |
2. In the microsummary settings page enter the node id of the node that you just
|
| 43 |
created into the "Microsummary nodes" text area and save the settings.
|
| 44 |
3. You should now be able to view this custom microsummary in your browser's
|
| 45 |
"Add bookmark" dialog as in the steps described above.
|
| 46 |
|
| 47 |
**Future Plans
|
| 48 |
There are no more real future plans aside from "bugfixing" because the module
|
| 49 |
now has the concept of user configurable microsummaries. If you have any ideas
|
| 50 |
for how to improve the module, see the last line of this file for the location
|
| 51 |
to report new feature requests.
|
| 52 |
|
| 53 |
**Credits:
|
| 54 |
This module developed by Greg Knaddison - Drupal user greggles.
|
| 55 |
|
| 56 |
Send thanks to: greg AT knaddison DOT com
|
| 57 |
|
| 58 |
Send problems/questions to: http://drupal.org/project/issues/microsummary
|
| 59 |
|
| 60 |
**Performance note (squeezing blood from a stone):
|
| 61 |
The microsummary module includes special links to the microsummaries in each
|
| 62 |
page load. By default this happens in the hook_footer. However, the content of
|
| 63 |
these links does not change very much between each pageload so there could be
|
| 64 |
some benefit to caching this output. For better performance it is possible to
|
| 65 |
provide these links as a block. In Drupal4.7 and 5.x the Block Cache module can
|
| 66 |
cache the output of these blocks to reduce the load on your site. This is a
|
| 67 |
very minor consideration, but if you use the block cache module then it might be
|
| 68 |
a good option for you to use this setting. To enable it, you must disable the
|
| 69 |
"Default linking method" method on the Microsummary settings page AND enable the
|
| 70 |
Microsummary Block
|