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

---

Søg plugins

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

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

# Hikari Featured Comments

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

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

 * [Detaljer](https://da.wordpress.org/plugins/hikari-featured-comments/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/hikari-featured-comments/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/hikari-featured-comments/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/hikari-featured-comments/#developers)

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

## Beskrivelse

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.

## Skærmbilleder

[⌊The custom metabox in comment's edit page, together with another metabox, just
below comment's content textarea⌉⌊The custom metabox in comment's edit page, together
with another metabox, just below comment's content textarea⌉[

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)`

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“Hikari Featured Comments” er open source-software. Følgende personer har bidraget
til dette plugin.

Bidragsydere

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

[Oversæt “Hikari Featured Comments” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/hikari-featured-comments)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/hikari-featured-comments/),
tjek [SVN repository](https://plugins.svn.wordpress.org/hikari-featured-comments/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/hikari-featured-comments/)
via [RSS](https://plugins.trac.wordpress.org/log/hikari-featured-comments/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 0.02 – 04/10/2010

 * First public release.

## Meta

 *  Version **0.02.00**
 *  Senest opdateret **16 år siden**
 *  Aktive installationer **10+**
 *  WordPress-version ** 2.9.0 eller højere **
 *  Testet op til **3.0.5**
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/hikari-featured-comments/)
 * Tags
 * [comment](https://da.wordpress.org/plugins/tags/comment/)[feature](https://da.wordpress.org/plugins/tags/feature/)
   [featured](https://da.wordpress.org/plugins/tags/featured/)[Highlight](https://da.wordpress.org/plugins/tags/highlight/)
   [threaded](https://da.wordpress.org/plugins/tags/threaded/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/hikari-featured-comments/advanced/)

## Bedømmelser

Der er endnu ikke indsendt nogen anmeldelser.

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

[Se alle anmeldelser](https://wordpress.org/support/plugin/hikari-featured-comments/reviews/)

## Bidragsydere

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

## Support

Har du noget at sige? Har du brug for hjælp?

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

## Donér

Vil du gerne støtte udviklingen af dette plugin?

 [ Donér til dette plugin ](http://Hikari.ws/wordpress/#donate)