WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

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.

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.

Requires: 2.9 or higher
Compatible up to: 2.9.2
Last Updated: 2009-12-24
Downloads: 469

Ratings

0 stars
0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1