Adding a popular pages list to Typo using Mint
Posted in typo Thu, 13 Jul 2006 03:10:00 GMT
Geoffrey Grosenbach of Topfunky has a neat Typo plugin for Mint, a commerical PHP stats package, to display a popular articles list on his Nuby on Rails blog. It currently appears on his blog as the following (screen shot cut off at 5 results of 20):
It works by using data from Mint's mint_visit table which can be populated by Mint or using an included script to import data from server logs logs. To address performance issues from reading the table, the plugin has the ability to create a mint_caches table using an included rake task:
rake mint:create_cache_table
The table can be populated by the following which can be run periodically via cron:
rake mint:rebuild
See the following for additional details:
- http://topfunky.net/svn/plugins/
- http://topfunky.net/svn/plugins/mint/
- http://topfunky.net/svn/plugins/nuby_typo_tasks/
I haven't tried this yet but it's on the list.