Title: Hikari Featured Comments
Author: shidouhikari
Published: <strong>Hedra 3, 2010</strong>
Last modified: Hedra 3, 2010

---

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/hikari-featured-comments.svg)

# Hikari Featured Comments

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

[Download](https://downloads.wordpress.org/plugin/hikari-featured-comments.0.02.00.zip)

 * [Details](https://cor.wordpress.org/plugins/hikari-featured-comments/#description)
 * [Reviews](https://cor.wordpress.org/plugins/hikari-featured-comments/#reviews)
 *  [Installation](https://cor.wordpress.org/plugins/hikari-featured-comments/#installation)
 * [Development](https://cor.wordpress.org/plugins/hikari-featured-comments/#developers)

 [Support](https://wordpress.org/support/plugin/hikari-featured-comments/)

## Description

Have you ever wanted to highlight a valuable comment among all others? Or not let
that troll 6-paragraphs comment take more space than it deserve? Or even hide a 
whole thread of offtipics?

Well, now you can!

**[Hikari Featured Comments](http://hikari.ws/featured-comments/)** is a simple 
plugin that adds 3 new custom fields to comments, allowing you to add special properties
to each of them.

With this feature available, you can query any comment to know if it has any of 
those properties flagged, and if so you can take special actions within your theme
or another plugin.

#### Features

There are 3 special properties available, you can give them any semantic you like,
but default meanings are as follows:
 * _Featured_: a comment flagged as featured
should be highlighted from all others. You can give it special CSS styles from your
theme to make it more visible among all comments, and flag any valuable comment 
as so. * _Buried_: a buried comment is a comment you don’t wanna just delete, but
also don’t want it as visible as all others. You can use it to hide offtopic comments
which you don’t want to perpetuate. * _Children/Threaded buried_: this one has similar
meaning to the former, but it should be applied to nested/threaded/children comments
of the flagged comment.

Note that any comment can be independently flagged as _Buried_ and _Children buried_,
therefore a Children buried comment shouldn’t have special styles applied to itself.
In the same way, you can also have a featured AND buried comment, having both styles
should be applied together!

**Hikari Featured Comments** provides a special metabox in comment edit page (/wp-
admin/comment.php?action=editcomment&c=XXXX) where you can flag these properties,
and it automatically attach new classes (`featured`, `buried`, `children_buried`)
to comments in frontend.

## Screenshots

 * [[
 * The custom metabox in comment’s edit page, together with another metabox, just
   below comment’s content textarea

## Installation

**Hikari Featured Comments** requires at least _WordPress 2.9_ and _PHP5_ to work.

You can use the built in installer and upgrader, or you can install the plugin manually.

 1. Download the zip file, upload it to your server and extract all its content to 
    your `/wp-content/plugins` folder. Make sure the plugin has its own folder (for
    exemple `/wp-content/plugins/hikari-featured-comments/`).
 2. Activate the plugin through the ‘Plugins’ menu in WordPress admin page.
 3. That’s it! Go to any comment you wanna flag, open its edit page and see the new
    metabox available!
 4. At first, no change will be visible. You must edit your theme’s `comment.php` or`
    style.css` to add any feature your creativity creates based on these properties.

#### Upgrading

If you have to upgrade manually, simply delete `hikari-featured-comments` folder
and follow installation steps again.

#### Uninstalling

If you go to plugins list page and deactivate the plugin, it’s comments metadata
stored in database
 will remain stored and won’t be deleted.

In future version I’m gonna include an option to delete properties metadata from
database.

## FAQ

  Ok, I installed your plugin and as expected nothing happens when I flag a comment
as featured. What now?

Now your creativity defines what happens! These properties open a variety of possibilities,
in both Web Design and Web Development areas!

If you wanna give special CSS styles to flagged comments, just go to your theme’s`
style.css`, search for the section where comments styles are and add new styles 
there. A very simple exemple:

    ```
    .comment.featured{
        weight: bold;
    }
    .comment.buried{
        display: none;
    }
    ```

  Nice! This gives me some great ideas, but that would require more advanced code…
What can you offer?

If you wanna develop extra features based on these properties, I provide 3 functions
to help you:

 * `hkFC_is_comment_featured($comment)`
 * `hkFC_is_comment_buried($comment)`
 * `hkFC_is_comment_children_buried($comment)`

Just pass a comment object or ID as parameter to receive a boolean return saying
if that comment is flagged or not, you can also pass a _null_ parameter to use current
comment. There are also 3 filters you can use to change a comment property just 
before any code retrieves that data, without needing to hack the plugin:

 * `apply_filters( 'hkFC_is_comment_featured', $featured, $comment_id )`
 * `apply_filters( 'hkFC_is_comment_buried', $buried, $comment_id )`
 * `apply_filters( 'hkFC_is_comment_children_buried', $children_buried, $comment_id)`

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Hikari Featured Comments” is open source software. The following people have contributed
to this plugin.

Contributors

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

[Translate “Hikari Featured Comments” into your language.](https://translate.wordpress.org/projects/wp-plugins/hikari-featured-comments)

### Interested in development?

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

## Changelog

#### 0.02 – 04/10/2010

 * First public release.

## Meta

 *  Version **0.02.00**
 *  Last updated **16 years ago**
 *  Active installations **10+**
 *  WordPress version ** 2.9.0 or higher **
 *  Tested up to **3.0.5**
 *  Language
 * [English (US)](https://wordpress.org/plugins/hikari-featured-comments/)
 * Tags
 * [comment](https://cor.wordpress.org/plugins/tags/comment/)[feature](https://cor.wordpress.org/plugins/tags/feature/)
   [featured](https://cor.wordpress.org/plugins/tags/featured/)[Highlight](https://cor.wordpress.org/plugins/tags/highlight/)
   [threaded](https://cor.wordpress.org/plugins/tags/threaded/)
 *  [Advanced View](https://cor.wordpress.org/plugins/hikari-featured-comments/advanced/)

## Ratings

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/hikari-featured-comments/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/hikari-featured-comments/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://Hikari.ws/wordpress/#donate)