Sentimeter
Allows sentiments (e.g. happy, neutral, outraged etc.) to be attached to comments, aggregated sentiment is available as a pie chart in the admin UI.
Plugin info
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 5852 days ago
Is Sentimeter abandoned?
Possibly abandoned (last update 5852 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
This plugin allows users to express sentiments (a la getsatisfaction.com, e.g. happy, neutral, outraged etc.) through the WordPress commenting system. Users can also associate their comment with a pre-defined ‘topic’. Overall sentiment, and comment topics, can be viewed as pie charts in the admin system, within a user-defined date range. Additionally, comments (along with their sentiment, and topic, if specified) can be exported as a CSV for further offline analysis.
Note that, in order to fully incorporate this plugin, you will need to modify your theme. This is so that theme developers have full control over the markup that is generated. The following Loop-inspired template tags are provided in order to render the defined sentiments and topics:
smtr_has_sentiments– determines whether their are any sentiments to displaysmtr_the_sentiment– initializes the current sentiment for displaysmtr_the_sentiment_name– echoes the current sentiment name (“Happy”, “Neutral”, “Outraged” etc.), first escaping any HTMLsmtr_the_sentiment_value– echoes the current sentiment value (“happy”, “neutral”, “outraged” etc.), first escaping any HTMLsmtr_has_topics– determines whether their are any topics to displaysmtr_the_topic– initializes the current topic for displaysmtr_the_topic_name– echoes the current topic name (“Help”, “Ideas”, “Suggestions” etc.), first escaping any HTMLsmtr_the_topic_value– echoes the current topic value (“help”, “ideas”, “suggestions” etc.), first escaping any HTMLsmtr_is_topic_selected– returns TRUE if the current topic should be selected (intended for use when rendering a select formm element with multiple topic options)
One suggested arrangement of these template tags is:
Installation
- Upload the
sentimeterfolder to your/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Modify your existing comments form to include options for sentiment and/or topic using the installed template tags
- Monitor sentiment through the admin UI, by navigating to the Sentimeter page, located under the Tools menu
Frequently Asked Questions
How do I specify my own sentiments and/or topics?
Currently, there is no admin UI to override the default sentiments or topics, this is planned for a future release.
However, the default sentiments and topics are just options in the wp_option database table. The following PHP script, when placed in the root of your WordPress install, can be used to override the default sentiments and topics after the plugin has been installed:
<?php // Load up WordPress include 'wp-load.php'; // Define sentiments/topics (edit as required, but maintaining the data structure) $sentiments = array( array( 'name' => 'Happy', // name is show to the end user 'value' => 'happy' // value is stored in the database ), array( 'name' => 'Neutral', 'value' => 'neutral' ), array( 'name' => 'Outraged', 'value' => 'outraged' ) ); $topics = array( array( 'name' => 'Help', 'value' => 'help' ), array( 'name' => 'Ideas', 'value' => 'ideas' ), array( 'name' => 'Improvements', 'value' => 'improvements' ), array( 'name' => 'Something else', 'value' => 'other', 'default' => 'true' // this will cause Something else to be pre-selected in a drop-down ) ); // Load sentiments/topics update_option('smtr_sentiments', $sentiments); update_option('smtr_topics', $topics); ?>
How can I use my own emoticons/icons for the sentiments, a la getsatisfaction.com?
Excellent question. We’ve had success with Ryan Fait’s custom form elements script.
Where is that awesome pie-chart generator from?
We’re using the gRapha?l charting JavaScript library. Yes, it is awesome, isn’t it? 🙂
I have another question!
Get in touch with me.
Review feed
Changelog
1.0
- First release.
