This module provides a field type which can be used as a hotness metric or a regular view counter for entities and for much much more. In essense, entities receiving attention (views or actions defined by Rules) are heated while inactive ones slowly cool down.

2.0

First stable release of the 2.x branch. Features are:

  • Views support
  • Rules support (still working on this)
  • Features import/export
  • Spam protection with grace
  • Memcached incident storage for high traffic sites

For basic usage information, please refer to a small introduction to Radioactivity 2.

Example

  • Viewing a node adds energy to it
  • The energy decays at a rate defined by the half-life period. For example, a view is worth 1 energy unit at the time of clicking, 0.5 energy units after one half-life period, 0.25 energy units after two half-life periods, and so on.

Thus, by keeping the half-life period short, let's say one hour, you'll get a metric that reflects the current node view rate, or hotness. Using this metric in a view, you can create a "most viewed nodes right now" list. By setting a longer half-life, let's say 12 hours, you can setup a view that roughly reflects most viewed nodes today.

Quick start for the above case:

  1. Enable the radioactivity module.
  2. Create a new decay profile in admin/structure/radioactivity.
  3. Create a field for a content type, select a decay profile for it and set the initial energy value
  4. Create a new view for nodes, add some fields (e.g. nid, title, radioactive energy) and sort by descending radioactive energy.
  5. Create some activity and watch the view evolve.

For D6, please see the documentation for a more detailed introduction and walkthrough. You might also be interested in a walkthrough video.

Status

Please note that the dev versions have no upgrade paths.

Data loss: certain configurations may experience data loss due to 3rd party modules and the core being buggy. I cannot stress this enough: before using in production always always always test that the energy emitting works (do plenty of cache clears, run the cron, and watch for errors) and then test some more. See core issue #1126000. This is not an issue at the moment since Radioactivity is directly updating the fields values in the database.

Testing, ideas and patches are welcome!

Downloads

Recommended releases

Version Downloads Date Links
7.x-2.2 tar.gz (24.5 KB) | zip (33.58 KB) 2012-Jan-27 Notes
6.x-1.3 tar.gz (25.2 KB) | zip (38.18 KB) 2010-Jun-28 Notes

Other releases

Version Downloads Date Links
5.x-1.3 tar.gz (25.75 KB) | zip (37.53 KB) 2009-May-03 Notes

Development releases

Version Downloads Date Links
7.x-2.x-dev tar.gz (24.26 KB) | zip (33.3 KB) 2012-Feb-10 Notes
6.x-1.x-dev tar.gz (27.86 KB) | zip (42.05 KB) 2012-Feb-10 Notes

Project Information


Maintainers for Radioactivity

  • tcmug - 88 commits
    last: 11 hours ago, first: 1 year ago
  • skiminki - 65 commits
    last: 1 year ago, first: 3 years ago

Issues for Radioactivity

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 16 Mar 09
nobody click here