{"id":1533,"date":"2005-02-20T22:18:59","date_gmt":"2005-02-20T22:18:59","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/live-comment-preview\/"},"modified":"2015-10-29T17:40:01","modified_gmt":"2015-10-29T17:40:01","slug":"live-comment-preview","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/live-comment-preview\/","author":4206,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.0.3","stable_tag":"2.0.3","tested":"4.2.39","requires":"1.5","requires_php":"","requires_plugins":"","header_name":"Live Comment Preview","header_author":"Brad Touesnard","header_description":"","assets_banners_color":"b33c12","last_updated":"2015-10-29 17:40:01","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/live-comment-preview\/","header_author_uri":"http:\/\/bradt.ca\/","rating":3.5,"author_block_rating":0,"active_installs":100,"downloads":51400,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"2.0":"<p>This is a stable release containing several small bug fixes.<\/p>"},"ratings":{"1":"1","2":"1","3":0,"4":"2","5":"2"},"assets_icons":[],"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"640645","resolution":"1544x500","location":"assets","width":1544,"height":500},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"640645","resolution":"772x250","location":"assets","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.7","1.8","1.8.1","1.8.2","1.9","2.0","2.0.1","2.0.2","2.0.3","2.0b1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1573768","resolution":"1","location":"plugin","width":1346,"height":1864}},"screenshots":{"1":"Comment preview in WordPress' default theme Twenty Twelve"}},"plugin_section":[],"plugin_tags":[131,107,2475],"plugin_category":[44],"plugin_contributors":[77883,78535],"plugin_business_model":[],"class_list":["post-1533","plugin","type-plugin","status-closed","hentry","plugin_tags-comment","plugin_tags-comments","plugin_tags-preview","plugin_category-discussion-and-community","plugin_contributors-bradt","plugin_contributors-saurabhshukla","plugin_committers-bradt","plugin_committers-chuyskywalker","plugin_committers-danielbachhuber","plugin_committers-gagan0123","plugin_committers-pigeonhut","plugin_committers-saurabhshukla"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/live-comment-preview_b33c12.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/live-comment-preview\/trunk\/screenshot-1.png?rev=1573768","caption":"Comment preview in WordPress' default theme Twenty Twelve"}],"raw_content":"<!--section=description-->\n<h4>New in Version 2.0<\/h4>\n\n<ul>\n<li>Zero configuration required \/ intelligent parsing of theme comment HTML<\/li>\n<li>Disallowed HTML tags are stripped from the preview (thanks to Jamie Zawinski)<\/li>\n<\/ul>\n\n<p>Live Comment Preview (LCP) allows your users to see how their comment will\nappear on the site as they type it.<\/p>\n\n<p>Uses client-side Javascript only (no Ajax requests to the server) which means a\nresponsive, smooth, live comment preview.<\/p>\n\n<p><a href=\"https:\/\/github.com\/bradt\/live-comment-preview\"><strong>Contribute on Github<\/strong><\/a><\/p>\n\n<p>Photo credit: <a href=\"http:\/\/www.flickr.com\/photos\/amunivers\/\">AmUnivers<\/a><\/p>\n\n<h3>Thanks!<\/h3>\n\n<p>Thanks to <a href=\"http:\/\/jrm.cc\/\">Jeff Minard<\/a> for developing this plugin originally and also to <a href=\"http:\/\/www.softius.net\/\">Iacovos Constantinou<\/a> for his JS functions for parsing the comment text.<\/p>\n\n<!--section=installation-->\n<p>Use WordPress' built-in plugin installer, or do a manual install:<\/p>\n\n<ol>\n<li>Download live-comment-preview.zip<\/li>\n<li>Unzip the archive<\/li>\n<li>Upload the live-comment-preview folder to your wp-content\/plugins directory<\/li>\n<li>Activate the plugin through the WordPress admin interface<\/li>\n<\/ol>\n\n<p>Enjoy!<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Why isn't the comment preview showing up?<\/dt>\n<dd><p>First, check your theme's comments.php file. It must contain the code\n     or <code>&lt;?php\ndo_action('comment_form', $post-&gt;ID); ?&gt;<\/code>. If it doesn't, you will need\nto add it in.<\/p>\n\n<p>Second, if the comment form fields do not have the proper id values (same ones\nas the default WordPress theme), the comment preview will not work.<\/p><\/dd>\n<dt>Can I make the preview display in another location?<\/dt>\n<dd><p>Yes, you can add the code &lt;?php live_preview(); ?&gt; in comments.php where\nyou want the preview to be show.<\/p><\/dd>\n<dt>Why doesn't the comment preview look like the rest of the comments?<\/dt>\n<dd><p>Most likely because your theme does not use the standard comment HTML used by\nthe WordPress default theme. Comments should be wrapped in<\/p>\n\n<ol><\/ol>\n\n<p>.<\/p><\/dd>\n<dt>Can I supply my own HTML for the comment preview?<\/dt>\n<dd><p>Yes, simply create a file called comment-preview.php in your theme folder and\ninsert the strings COMMENT_CONTENT, COMMENT_AUTHOR, and AVATAR_URL where you would\nlike the respective content to show up.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.3 (2015-10-29)<\/h4>\n\n<ul>\n<li>Fixed an error notice when mocking a comment for preview<\/li>\n<\/ul>\n\n<h4>2.0.2 (2012-12-17)<\/h4>\n\n<ul>\n<li>Tested with WordPress 3.5 and Twenty Twelve theme<\/li>\n<li>Added aria live region for accessibility. Thanks <a href=\"http:\/\/www.brucelawson.co.uk\/\">Bruce Lawson<\/a> for this!\"<\/li>\n<li>Cleaned up a bunch of PHP warnings and notices when in debug mode<\/li>\n<\/ul>\n\n<h4>2.0.1 (2011-09-08)<\/h4>\n\n<ul>\n<li>Bug fix: <a href=\"http:\/\/wordpress.org\/support\/topic\/plugin-live-comment-preview-doesn?t-appear-the-preview-in-20\">Doesn't appear the preview in 2.0<\/a><\/li>\n<\/ul>\n\n<h4>2.0 (2011-09-04)<\/h4>\n\n<ul>\n<li>Bug fix: Avatar images not the correct size for Twenty Eleven theme<\/li>\n<li>Bug fix: <a href=\"http:\/\/wordpress.org\/support\/topic\/plugin-live-comment-preview-the-plugin-does-not-have-a-valid-header\">The plugin does not have a valid header<\/a><\/li>\n<li>Bug fix: <a href=\"http:\/\/wordpress.org\/support\/topic\/plugin-live-comment-preview-error-in-rendering-html-ending-in-a-digit\">error rendering html ending in a digit<\/a><\/li>\n<\/ul>\n\n<h4>2.0b1 (2011-01-16)<\/h4>\n\n<ul>\n<li>Zero configuration required \/ intelligent parsing of theme comment HTML<\/li>\n<li>Disallowed HTML tags are stripped from the preview (thanks to Jamie Zawinski)<\/li>\n<\/ul>\n\n<h4>1.9 (2008-04-19)<\/h4>\n\n<ul>\n<li>Added support for WordPress 2.5's gravatar settings.<\/li>\n<li><a href=\"http:\/\/dev.wp-plugins.org\/log\/live-comment-preview?action=stop_on_copy&amp;rev=41675&amp;stop_rev=28426&amp;mode=stop_on_copy&amp;verbose=on\">Several Bug Fixes<\/a><\/li>\n<\/ul>\n\n<h4>1.8.2 (2007-12-03)<\/h4>\n\n<ul>\n<li>Bug fix: Only works if blog url is the web site root.<\/li>\n<\/ul>\n\n<h4>1.8.1 (2007-12-02)<\/h4>\n\n<ul>\n<li>Bug fix: Javascript doesn't load for users who have WP in a subdirectory.<\/li>\n<\/ul>\n\n<h4>1.8 (2007-11-29)<\/h4>\n\n<ul>\n<li>First release by Brad Touesnard<\/li>\n<li>Added <a href=\"http:\/\/www.gravatar.com\/\">Gravatar<\/a> support<\/li>\n<\/ul>\n\n<h4>1.7 (2005-06-05)<\/h4>\n\n<ul>\n<li>Last release by Jeff Minard<\/li>\n<\/ul>","raw_excerpt":"Displays a preview of the user&#039;s comment as they type it.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/1533","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=1533"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/chuyskywalker"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=1533"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=1533"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=1533"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=1533"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=1533"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=1533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}