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.

WordPress Comment Warrior

Show relevant comment warriors in different period. Also an honor cup can be inserted for comment warriors in their comments.

What is comment warrior?

In 2005 and 2006 I played world of warcraft for several months. That's why I name the most active commentators as WARRIORS.

How to use the plugin?

After install and activate it, you can add Comment Warrior Widget in admin panel, or you can add below codes anywhere:

<?php if function_exists('show_comment_warrior') show_comment_warrior(); ?>

A ul-li list will be generated.

I cannot see any photo in widget!

Please check comment warrior settings first. Do you choose Warrior Show Style to be Image and Text or Image?

Then check General->Discussion settings. You should focus on:

  1. Avatar Display must be turned on, that is to say, Show Avatars.

  2. If Default Avatar is Blank, persons who haven't custom their photoes in avatar site will be displayed as a blank image.

Can I add stats period in widget?

Sure. You can use such codes:

<?php if function_exists('get_warrior_period') echo get_warrior_period(); ?>

Example( Period Type : getwarriorperiod() )

Calendar month : Jul. 2009

Calendar month : 2009

Custom 30 days : recent 30 days

Custom 0 days : all days

The widget's style is urgely, or it doesn't display at all!

This problem is probably caused by css style. You can modify comment-warrior.css in plugin folder.

After V0.3.15, there is not comment-warrior.css in plugin folder any more. You can modify Css Style settings in option page.

Option page doesn't work, why?

This plugin's option page need jQuery. I have tested it in wordpress 2.7 and 2.8. I dunno if other versions support jQuery too.

How to show cup image?

Well, it's a little complicated. You must manually insert below codes into a right place in comments.php or elsewhere. For example, you can append them to comment time or comment author picture.

<?php if function_exists('get_cup') get_cup($comment->comment_author_email); ?>

An img tag will be generated.

How to find the right place to add cup codes?

Here is a sample walkthrough.

  1. Open comments.php in your theme folder, then search wp_list_comments.

  2. If find, check args of wplistcomments function.

  3. If the args contain some string like callback=custom_list_comments, the right place is just in function custom_list_comments.

  4. If the args don't contain callback, the right place lies in function start_el in wp-includes/comment-template.php.

  5. If not find wp_list_comments, the right place is somewhere in comment.php in the theme folder.

I admit it may be not simple. If anyone have a better idea such as auto insert the cup image, please mail to flarefox at 163 dot com. I would appreciate it very much!

Requires: 2.7 or higher
Compatible up to: 2.8
Last Updated: 7 years ago
Active Installs: Less than 10


0 out of 5 stars


Got something to say? Need help?


Not enough data

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