{"id":52420,"date":"2016-11-30T23:55:31","date_gmt":"2016-11-30T23:55:31","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/civil-comments\/"},"modified":"2017-01-26T19:24:56","modified_gmt":"2017-01-26T19:24:56","slug":"civil-comments","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/civil-comments\/","author":5788739,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.2.1","stable_tag":"0.2.1","tested":"4.7.33","requires":"4.2","requires_php":"","requires_plugins":"","header_name":"Civil Comments","header_author":"Civil Comments","header_description":"","assets_banners_color":"92b4e1","last_updated":"2017-01-26 19:24:56","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.civilcomments.com\/","header_author_uri":"https:\/\/www.civilcomments.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":778,"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":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1543695","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1543695","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"1590168","resolution":"1544x500","location":"assets"},"banner-1880x609.jpg":{"filename":"banner-1880x609.jpg","revision":"1590168","resolution":"1880x609","location":"assets"},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1590168","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.0","0.2.0","0.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1543705","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1543705","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1543705","resolution":"3","location":"assets"}},"screenshots":{"1":"The Civil Comments comment form.","2":"Moderating submitted comments before a comment is posted.","3":"The Civil Comments settings page."}},"plugin_section":[],"plugin_tags":[127268,127269,107,2316,599],"plugin_category":[44,54],"plugin_contributors":[127270,82519,83142],"plugin_business_model":[],"class_list":["post-52420","plugin","type-plugin","status-closed","hentry","plugin_tags-civil","plugin_tags-civil-comments","plugin_tags-comments","plugin_tags-community","plugin_tags-spam","plugin_category-discussion-and-community","plugin_category-security-and-spam-protection","plugin_contributors-civilco","plugin_contributors-jjeaton","plugin_contributors-reaktivstudios","plugin_committers-jjeaton"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/civil-comments_92b4e1.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/civil-comments\/assets\/screenshot-1.png?rev=1543705","caption":"The Civil Comments comment form."},{"src":"https:\/\/ps.w.org\/civil-comments\/assets\/screenshot-2.png?rev=1543705","caption":"Moderating submitted comments before a comment is posted."},{"src":"https:\/\/ps.w.org\/civil-comments\/assets\/screenshot-3.png?rev=1543705","caption":"The Civil Comments settings page."}],"raw_content":"<!--section=description-->\n<p>Civil Comments is a subscription service that lets you host civil discussions and debates on your site without the usual spam, harassment, and abuse. Built to integrate seamlessly with WordPress, Civil Comments gives site owners and developers control over how their community looks and runs.<\/p>\n\n<p><em>A subscription to Civil Comments is required to use this plugin.<\/em><\/p>\n\n<p>[vimeo https:\/\/vimeo.com\/199699519]<\/p>\n\n<h4>Get rid of moderation headaches<\/h4>\n\n<p>Civil Comments uses a patent-pending peer review system to keep comments non-toxic and fun\u2014even at massive scale.<\/p>\n\n<h4>Define your style<\/h4>\n\n<p>Make your comments match the look and feel of your page with fully customizable CSS.<\/p>\n\n<h4>Speed up your page loads<\/h4>\n\n<p>Civil Comments was built in modern, progressive React.js, with blazing-fast server-side rendering and the smallest file size of any full-featured drop-in platform.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>civil-comments<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Check the box to \"Enable Civil Comments\" and add your publication slug to begin using Civil Comments on your site.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Which hooks are available?<\/dt>\n<dd><ul>\n<li>** civil_login_url ** - Override the login page url, defaults to the standard <code>wp_login_url()<\/code> which can also be filtered.<\/li>\n<li>** civil_logout_url ** - Override the logout page url, defaults to the standard <code>wp_logout_url()<\/code> which can also be filtered.<\/li>\n<li>** civil_custom_js ** - Add custom JS to the Civil initialization, for analytics integration or other custom code.<\/li>\n<\/ul><\/dd>\n<dt>How do I integrate analytics?<\/dt>\n<dd><p>Use the <code>civil_custom_js<\/code> action. Here is an example to be used in your theme's functions.php:<\/p>\n\n<pre><code>function prefix_civil_integrate_analytics() {\n?&gt;\n    function myLogEventFunction (eventName, eventData) {\n        console.log(\"Civil event called\");\n        console.log(\"Event Name:\", eventName);\n        console.log(\"Event Data:\", eventData);\n\n        \/\/ ...add event to your analytics platform\n    }\n    Civil({ logEvent: myLogEventFunction });\n&lt;?php\n}\nadd_action( 'civil_custom_js', 'prefix_civil_integrate_analytics', 10 );\n<\/code><\/pre><\/dd>\n<dt>Can I use a custom comments template?<\/dt>\n<dd><p>Yes, in your theme, just create a new template at <code>templates\/civil-comments.php<\/code>. The template can be completely custom, just place the <code>show_civil_comments()<\/code> template tag in that file where you want the comments to be displayed. The default template is located inside this plugin at <code>templates\/civil-comments.php<\/code>.<\/p><\/dd>\n<dt>Can I hide the comments until clicked?<\/dt>\n<dd><p>Yes. In the Civil Comments setting page, check the box next to <code>Hide Comments Until Clicked<\/code>. Comments will be hidden until the user clicks the comments button.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.2.1<\/h4>\n\n<ul>\n<li>Dev - Don't deactivate on WordPress.com VIP.<\/li>\n<\/ul>\n\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>Feature - Add hide comments until clicked.<\/li>\n<li>Fix - Login and Logout URLs didn't work with unauthenticated users.<\/li>\n<li>Fix - Refactor comments.php to only require a single template tag <code>show_civil_comments()<\/code>.<\/li>\n<li>Dev - Add login\/logout url filters and custom js hook to support analytics integration.<\/li>\n<li>Dev - Add inline hook documentation.<\/li>\n<li>Dev - Allow loading a custom template from the theme. Create <code>templates\/civil-comments.php<\/code> in your active theme to use a custom template.<\/li>\n<li>Dev - Tested compatibility with 4.7.<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Civil Comments is a subscription service that lets you host civil discussions and debates on your site without the usual spam, harassment, and abuse.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/52420","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=52420"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jjeaton"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=52420"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=52420"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=52420"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=52420"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=52420"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=52420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}