hot or not wordpress plugin
This wordpress plugins adds a radio button to the comment form so users can tell if a post is hot or not. Depending on the value that is chosen, another css class is added to comment .
- Download the plugin
- Adding the radionbutton group to the comment form.
-
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
- Dynamically add the class to the comment
-
<?php foreach ($comments as $comment) ?>
-
li id="comment-<?php comment_ID() ?>" class="<?php print $comment->css ?>">
- Activate the plugin
- Change the css style of your comments
Download the Hot Or Not plugin here
Unzip this file into the /wp- content/plugins/ folder.
This radiobutton has to be added in the < form > tag of the comments. You can find this somewere at the bottom of your "template/comments.php" file. It looks something like this.
HTML:
You have to paste the code below in that form.
In the beginning of that same file, there is a php foreach statement to print all comments.
HTML:
A bit further in the file you have to add the hotornot class to the listitem:
HTML:
Active the plugin in the admin "Plugins" screen in wordpress.
You can do this in the template/style.css file.
.vote_hot {style.css (line 692)
background-color:#CDEEAB;
border-top:1px dotted #006600;
color:#006600;
}.vote_not {style.css (line 699)
background-color:#FFE0E0;
border-top:1px dotted #F5857E;
color:#AB0000;
}
Popularity: 24% [?]



March 1st, 2008 - 10:12
Hi, Is there a demo of this plugin anywhere?
tks
james
March 1st, 2008 - 13:29
you can take a look at http://www.procontra.be/
October 14th, 2008 - 13:00
hello, I have some question.
how I can count the votes (totals, positives and negatives)?
how I can show the votes like in your example http://www.procontra.be ?
thanks !!
November 12th, 2008 - 22:05
The query below is used to join the hot or not table with the comments table. Then you should be able to find the totals / positives / negatives.
SELECT vote FROM tblcomments_hon INNER JOIN tblcomments chon ON chon.comment_ID = tblcomments_hon.comment_id WHERE chon.comment_post_ID = ‘$post_id’ AND $tblcomments_hon.comment_id =’$commentid’
You can then use this data to fill an chart.
June 14th, 2010 - 18:49
Unfortunately, I do not see the “hot or not” wordpress plugin…..can you please point me to the url for it?
Thank you
November 13th, 2010 - 23:19
Hello, but where is the ‘download’?
December 2nd, 2010 - 15:07
Seems there was an error with a plugin.
Download link is active again.