Title: Sentimeter
Author: swinton
Published: <strong>December 24, 2009</strong>
Last modified: December 24, 2009

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/sentimeter.svg)

# Sentimeter

 By [swinton](https://profiles.wordpress.org/swinton/)

[Download](https://downloads.wordpress.org/plugin/sentimeter.1.0.zip)

 * [Details](https://wordpress.org/plugins/sentimeter/#description)
 * [Reviews](https://wordpress.org/plugins/sentimeter/#reviews)
 *  [Installation](https://wordpress.org/plugins/sentimeter/#installation)
 * [Development](https://wordpress.org/plugins/sentimeter/#developers)

 [Support](https://wordpress.org/support/plugin/sentimeter/)

## 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](https://codex.wordpress.org/The_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 display
 * `smtr_the_sentiment` – initializes the current sentiment for display
 * `smtr_the_sentiment_name` – echoes the current sentiment name (“Happy”, “Neutral”,“
   Outraged” etc.), first escaping any HTML
 * `smtr_the_sentiment_value` – echoes the current sentiment value (“happy”, “neutral”,“
   outraged” etc.), first escaping any HTML
 * `smtr_has_topics` – determines whether their are any topics to display
 * `smtr_the_topic` – initializes the current topic for display
 * `smtr_the_topic_name` – echoes the current topic name (“Help”, “Ideas”, “Suggestions”
   etc.), first escaping any HTML
 * `smtr_the_topic_value` – echoes the current topic value (“help”, “ideas”, “suggestions”
   etc.), first escaping any HTML
 * `smtr_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:

    ```
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <ul>      <?php if ( function_exists('smtr_has_topics') ) : // ensure 'Sentimeter' plugin is installed ?>         <li>             <?php if ( smtr_has_topics() ) : ?>             <label for="smtr_topic">This is about</label>             <select id="smtr_topic" name="smtr_topic">             <?php while ( smtr_has_topics() ) : smtr_the_topic(); ?>                 <option value="<?php smtr_the_topic_value() ?>"<?php echo smtr_is_topic_selected() ? ' selected="selected"' : ''; ?>"><?php smtr_the_topic_name() ?></option>             <?php endwhile; ?>             </select>             <?php endif; ?>         </li>          <li>             <?php if ( smtr_has_sentiments() ) : ?>             <fieldset class="radio-group">                 <legend>I'm feeling</legend>                 <ul class="formatRadio">                     <?php $i = 0; while ( smtr_has_sentiments() ) : smtr_the_sentiment(); ?>                     <li>                         <label for="smtr_sentiment_<?php smtr_the_sentiment_value() ?>"><?php smtr_the_sentiment_name() ?></label>                         <input type="radio" id="smtr_sentiment_<?php smtr_the_sentiment_value() ?>" name="smtr_sentiment" value="<?php smtr_the_sentiment_value() ?>"/>                     </li>                     <?php $i++; endwhile; ?>                 </ul>             </fieldset>             <?php endif; ?>         </li>     <?php endif; ?>         <li>             <?php  // Other existing comment fields here (name, email, comment etc.) ... ?> 
    ```

## Screenshots

[⌊This screen shot shows an example sentiment analysis, broken down both by sentiment
and topic, within the WordPress admin UI.⌉⌊This screen shot shows an example sentiment
analysis, broken down both by sentiment and topic, within the WordPress admin UI
.⌉[

This screen shot shows an example sentiment analysis, broken down both by sentiment
and topic, within the WordPress admin UI.

## Installation

 1. Upload the `sentimeter` folder to your `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Modify your existing comments form to include options for sentiment and/or topic
    using the installed template tags
 4. Monitor sentiment through the admin UI, by navigating to the Sentimeter page, located
    under the Tools menu

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Sentimeter” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ swinton ](https://profiles.wordpress.org/swinton/)

[Translate “Sentimeter” into your language.](https://translate.wordpress.org/projects/wp-plugins/sentimeter)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/sentimeter/), check
out the [SVN repository](https://plugins.svn.wordpress.org/sentimeter/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/sentimeter/) by 
[RSS](https://plugins.trac.wordpress.org/log/sentimeter/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * First release.

## Meta

 *  Version **1.0**
 *  Last updated **16 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 2.9 or higher **
 *  Tested up to **2.9.2**
 *  [Advanced View](https://wordpress.org/plugins/sentimeter/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/sentimeter/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/sentimeter/reviews/)

## Contributors

 *   [ swinton ](https://profiles.wordpress.org/swinton/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/sentimeter/)