Show relevant comment warriors in different period. Also an honor cup can be inserted for comment warriors in their comments.
In 2005 and 2006 I played world of warcraft for several months. That's why I name the most active commentators as WARRIORS.
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.
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:
Avatar Display must be turned on, that is to say, Show Avatars.
If Default Avatar is Blank, persons who haven't custom their photoes in avatar site will be displayed as a blank image.
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
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.
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.
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.
Here is a sample walkthrough.
Open comments.php in your theme folder, then search wp_list_comments.
If find, check args of wplistcomments function.
If the args contain some string like callback=custom_list_comments, the right place is just in function custom_list_comments.
If the args don't contain callback, the right place lies in function start_el in wp-includes/comment-template.php.
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: 2009-9-14
Downloads: 639
Got something to say? Need help?