Content Autoscore

Component ID

1495384

Component name

Content Autoscore

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module automatically calculates scores for any node on a Drupal site. The score is calculated by adding together administratively controlled point values for given "events" relating to that node. Any module is able to provide new events by implementing hook_content_autoscore_events() and hook_content_autoscore_count($nid, $eventname).

Point values for individual events can be positive or negative, and the final score calculated by this module can also be positive or negative as well. This module does not store or modify the calculated score in any way beyond summing up weighted event counts. Event counts are cached if the module providing them says they can be, but the final score is calculated on demand. It is up to the site administrator to make sure the values of all events will result in sane and useful totals for his or her purposes.

Integration with Views: The plan is to expose the scores as fields that views can filter, sort and display
Integration with Rules: The plan is to allow Rules to test whether a node's score is within a certain range as a condition for triggering the associated actions.

Possible Use Cases

  • You want a slideshow on the front page that displays popular content based on page views (according to Statistics, or even Google Analytics) but you want it biased toward new content (See similar projects, below)
  • You want to set up a community moderation system that treats certain flag reasons as more severe than others, and have rules automatically unpublish content that goes low enough into the negatives
  • You want a list of new content that has not received much attention on social networks yet

Similar projects

Radioactivity: Measures "hotness" of entities based on view counts and Rules-based events. Automatically applies exponential decay over time. If you're only concerned with the total aggregated score, and not the events that led to it, use that. It's simpler.