Reports now available as RSS feeds
Posted by mholmes on 08 Jan 2007 in Activity log
Added the following new features to the HCMC Stats reporting:
- You can choose to use a custom title for your report, by checking a checkbox on the report page and entering a title in the text box below.
- The title now shows up as a header in the page, above the report table, and as the document title in the standalone report view.
- Each report is now also available as an RSS feed (RSS 2 only). To get the RSS, generate the report, then click on the RSS image at the top right of the report table.
- The RSS feed also uses the custom title.
- The following variables in the reports.php file (near the beginning) can be used to control aspects of the RSS output:
- $rss_content_max_length = 150; (content of the post is truncated at 150 words).
- $rss_item_limit = 12; (only the first 12 posts meeting the filter criteria are shown).
Modified the following files:
- /blogs/inc/CONTROL/hcmc_stats/hcmc_stats.css
- /blogs/inc/CONTROL/hcmc_stats/hcmc_stats.php
- /blogs/inc/CONTROL/hcmc_stats/report.php
Here is an example feed, which always shows the last twelve posts I've made to all the blogs. IE7 doesn't seem to handle RSS 2, but Firefox and Opera handle it natively, and any RSS reader such as Sage will have no problem. I don't think it's worth re-doing this work several times to get the other RSS formats, because these feeds will be specific to individual users, generally speaking.
This entry was posted by Martin and filed under Activity log.