{"id":6451,"date":"2009-08-14T18:46:26","date_gmt":"2009-08-14T18:46:26","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-comment-warrior\/"},"modified":"2009-09-14T21:42:42","modified_gmt":"2009-09-14T21:42:42","slug":"wp-comment-warrior","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-comment-warrior\/","author":3476259,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.3.15","stable_tag":"0.3.15","tested":"2.8","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"wp-comment-warrior","header_author":"flarefox","header_description":"","assets_banners_color":"","last_updated":"2009-09-14 21:42:42","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.mathelite.cn\/archives\/wordpress-comment-warrior-plugin.html","header_author_uri":"http:\/\/mathelite.cn\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1753,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.66","0.2.01","0.3.15"],"block_files":[],"assets_screenshots":{"screenshot-4.jpg":{"filename":"screenshot-4.jpg","revision":"1444643","resolution":"4","location":"plugin"},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1444643","resolution":"2","location":"plugin"},"screenshot-3.jpg":{"filename":"screenshot-3.jpg","revision":"1444643","resolution":"3","location":"plugin"},"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1444643","resolution":"1","location":"plugin"},"screenshot-5.jpg":{"filename":"screenshot-5.jpg","revision":"1444643","resolution":"5","location":"plugin"}},"screenshots":{"1":"<p>Widget(image and text) preview<\/p>","2":"<p>Cup preview<\/p>","3":"<p>Widget Settings<\/p>","4":"<p>Filter Settings<\/p>","5":"<p>Cup Settings<\/p>"}},"plugin_section":[],"plugin_tags":[107,22715,522,67220],"plugin_category":[36,44],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-6451","plugin","type-plugin","status-closed","hentry","plugin_tags-comments","plugin_tags-period","plugin_tags-stats","plugin_tags-warrior","plugin_category-analytics","plugin_category-discussion-and-community","plugin_committers-flarefox"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-comment-warrior.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-comment-warrior\/trunk\/screenshot-1.jpg?rev=1444643","caption":"<p>Widget(image and text) preview<\/p>"},{"src":"https:\/\/ps.w.org\/wp-comment-warrior\/trunk\/screenshot-2.jpg?rev=1444643","caption":"<p>Cup preview<\/p>"},{"src":"https:\/\/ps.w.org\/wp-comment-warrior\/trunk\/screenshot-3.jpg?rev=1444643","caption":"<p>Widget Settings<\/p>"},{"src":"https:\/\/ps.w.org\/wp-comment-warrior\/trunk\/screenshot-4.jpg?rev=1444643","caption":"<p>Filter Settings<\/p>"},{"src":"https:\/\/ps.w.org\/wp-comment-warrior\/trunk\/screenshot-5.jpg?rev=1444643","caption":"<p>Cup Settings<\/p>"}],"raw_content":"<!--section=description-->\n<p>Dunno what is a comment warrior? Please refer to FAQ Section.<\/p>\n <h4>This plugin has two purposes<\/h4>\n <p>Firstly, stat comment warriors periodically, and show relevant warriors for different period. For example, when open an article posted in Jul. 2009, widget will list warriors in Jul. 2009.<\/p>\n <p>Secondly, if a comment's author is a warrior, an cup image can be shown in the warrior's comment.<\/p>\n <h4>Options<\/h4>\n <p>Period can be <code>calendar month<\/code>, <code>calendar year<\/code> or <code>custom days<\/code>.<\/p>\n <p>Display style of warrior list can be <code>only text<\/code>, <code>only image<\/code> or <code>image and text<\/code>.<\/p>\n <p>You can also choose whether to show <code>comment counts<\/code>, whether to show <code>cup image<\/code>, <code>image size of warrior<\/code>, <code>image of cup<\/code>, <code>image size of cup<\/code> and so on.<\/p>\n <h4>And more<\/h4>\n <p>Find more information in <code>FAQ<\/code> section.<\/p>\n <p>If you have any question or suggestion, please post here or send mail to flarefox@163.com. I will appreciate it very much and response as soon as possible.<\/p>\n\n<!--section=installation-->\n<ol>\n<li><p>Upload <code>wp-comment-warrior<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/p><\/li>\n<li><p>Activate the plugin through the 'Plugins' menu in WordPress<\/p><\/li>\n<li><p>Add widget in admin panel. You can use functions too, please refer to FAQ section.<\/p><\/li>\n<\/ol>\n\n<!--section=faq-->\n<h4>What is comment warrior?<\/h4>\n <p>In 2005 and 2006 I played world of warcraft for several months. That's why I name <em>the most active commentators<\/em> as WARRIORS.<\/p>\n <h4>How to use the plugin?<\/h4>\n <p>After install and activate it, you can add <code>Comment Warrior<\/code> Widget in admin panel, or you can add below codes anywhere:<\/p>\n <pre><code>&lt;?php if function_exists('show_comment_warrior') show_comment_warrior(); ?&gt; <\/code><\/pre>\n <p>A <code>ul-li<\/code> list will be generated.<\/p>\n <h4>I cannot see any photo in widget!<\/h4>\n <p>Please check comment warrior settings first. Do you choose <code>Warrior Show Style<\/code> to be <code>Image and Text<\/code> or <code>Image<\/code>?<\/p>\n <p>Then check General-&gt;Discussion settings. You should focus on:<\/p>\n <ol>\n<li><p><code>Avatar Display<\/code> must be turned on, that is to say, <code>Show Avatars<\/code>.<\/p><\/li>\n<li><p>If <code>Default Avatar<\/code> is <code>Blank<\/code>, persons who haven't custom their photoes in avatar site will be displayed as a blank image.<\/p><\/li>\n<\/ol>\n <h4>Can I add stats period in widget?<\/h4>\n <p>Sure. You can use such codes:<\/p>\n <pre><code>&lt;?php if function_exists('get_warrior_period') echo get_warrior_period(); ?&gt; <\/code><\/pre>\n <p>Example( Period Type : get_warrior_period() )<\/p>\n <pre><code>Calendar month : Jul. 2009  Calendar month : 2009  Custom 30 days : recent 30 days  Custom 0 days : all days <\/code><\/pre>\n <h4>The widget's style is urgely, or it doesn't display at all!<\/h4>\n <p>This problem is probably caused by css style. You can modify comment-warrior.css in plugin folder.<\/p>\n <p>After V0.3.15, there is not comment-warrior.css in plugin folder any more. You can modify <code>Css Style<\/code> settings in option page.<\/p>\n <h4>Option page doesn't work, why?<\/h4>\n <p>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.<\/p>\n <h4>How to show cup image?<\/h4>\n <p>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 <em>comment time<\/em> or <em>comment author picture<\/em>.<\/p>\n <pre><code>&lt;?php if function_exists('get_cup') get_cup($comment-&gt;comment_author_email); ?&gt; <\/code><\/pre>\n <p>An img tag will be generated.<\/p>\n <h4>How to find the right place to add cup codes?<\/h4>\n <p>Here is a sample walkthrough.<\/p>\n <ol>\n<li><p>Open comments.php in your theme folder, then search <code>wp_list_comments<\/code>.<\/p><\/li>\n<li><p>If find, check args of wp_list_comments function.<\/p><\/li>\n<li><p>If the args contain some string like <code>callback=custom_list_comments<\/code>, the right place is just in function <code>custom_list_comments<\/code>.<\/p><\/li>\n<li><p>If the args don't contain <code>callback<\/code>, the right place lies in function start_el in wp-includes\/comment-template.php.<\/p><\/li>\n<li><p>If not find <code>wp_list_comments<\/code>, the right place is somewhere in comment.php in the theme folder.<\/p><\/li>\n<\/ol>\n <p><em>I admit it may be not simple. If anyone have a better idea such as auto insert the cup image, please mail to <code>flarefox at 163 dot com<\/code>. I would appreciate it very much!<\/em><\/p>\n\n<!--section=changelog-->\n<h4>0.3.15<\/h4>\n <ul>\n<li>You have the ability to ban warriors through email or url filters.<\/li>\n<li>CSS style is saved in options table, so plugin's update will not reset your customed style. (Remember to backup your custom style before update to this version)<\/li>\n<li>When display style is <code>Image and Text<\/code>, the image size can be changed now.<\/li>\n<li>Warriors won't be displayed as links any more if their site urls are empty.<\/li>\n<li>Fix the bug that warrior's photo is very big in some conditions.<\/li>\n<li>Add help info in option page. Just click (?).<\/li>\n<\/ul>\n <h4>0.2.01<\/h4>\n <ul>\n<li>Fix the bug that warriors don't update.<\/li>\n<li>Add alt for image in widget.<\/li>\n<li>Add a setting. Those who comment less than <code>minimum comment counts<\/code> times will not be warriors.<\/li>\n<li>Widget can display stats period now.<\/li>\n<li><code>Custom 0 days<\/code> equals to <code>all days<\/code> now.<\/li>\n<\/ul>\n <h4>0.1.66<\/h4>\n <ul>\n<li>Rewrite option page with jQuery, thus all elements are ajaxed.<\/li>\n<li>Add some option items.<\/li>\n<li><\/li>\n<\/ul>\n <h4>0.0.89<\/h4>\n <ul>\n<li>Works on wordpress 2.8 and 2.7.<\/li>\n<\/ul>","raw_excerpt":"Show relevant comment warriors in different period. Also an honor cup can be inserted for comment warriors in their comments.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/6451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=6451"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/flarefox"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=6451"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=6451"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=6451"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=6451"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=6451"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=6451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}