{"id":1103,"date":"2005-02-03T00:10:26","date_gmt":"2005-02-03T00:10:26","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/get-recent-comments\/"},"modified":"2019-08-05T23:17:21","modified_gmt":"2019-08-05T23:17:21","slug":"get-recent-comments","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/get-recent-comments\/","author":12875,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.0.7","stable_tag":"2.0.7","tested":"5.2.24","requires":"1.5","requires_php":"","requires_plugins":"","header_name":"Get Recent Comments","header_author":"Krischan Jodies","header_description":"","assets_banners_color":"","last_updated":"2019-08-05 23:17:21","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/blog.jodies.de\/2004\/11\/recent-comments\/","header_author_uri":"http:\/\/blog.jodies.de","rating":4,"author_block_rating":0,"active_installs":2000,"downloads":342794,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":"2","5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.7","0.8","0.9","0.9rc1","1.0","1.1","1.2","1.3","1.3.1-lyceum","1.4","1.5","1.5.1","1.5.2","1.5.3","1.5.4","1.5.5","2.0","2.0.1","2.0.2","2.0.3","2.0.5","2.0.6","2.0.7"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"2134616","resolution":"1","location":"plugin","width":638,"height":686},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"2134616","resolution":"2","location":"plugin","width":720,"height":842}},"screenshots":{"1":"Activation of widget","2":"Administration Interface"}},"plugin_section":[],"plugin_tags":[107,162],"plugin_category":[43,44],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-1103","plugin","type-plugin","status-closed","hentry","plugin_tags-comments","plugin_tags-widget","plugin_category-customization","plugin_category-discussion-and-community","plugin_committers-kjodies"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/get-recent-comments.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/get-recent-comments\/trunk\/screenshot-1.jpg?rev=2134616","caption":"Activation of widget"},{"src":"https:\/\/ps.w.org\/get-recent-comments\/trunk\/screenshot-2.jpg?rev=2134616","caption":"Administration Interface"}],"raw_content":"<!--section=description-->\n<p>This plugin shows excerpts of the latest comments and\/or trackbacks in your\nsidebar. You have comprehensive control about their appearance. This ranges\nfrom the number of comments, the length of the excerpts up to the html layout.\nYou can let the plugin order the comments by the corresponding post, or simply\norder them by date. The plugin can (optionally) separate the\ntrackbacks\/pingbacks from the comments. It can ignore comments to certain\ncategories, and it offers support for gravatars. It only gives extra work to\nthe database, when actually a new comment arrived. You can filter out\nunwanted pingbacks, which originate from your own blog. And it is a widget.<\/p>\n\n<p>You might want to have a look in the <a href=\"http:\/\/blog.jodies.de\/2004\/11\/recent-comments\/2\/#changelog\">changelog<\/a>.<\/p>\n\n<p><em>Feature List<\/em><\/p>\n\n<ul>\n<li>Highly configurable via WordPress admin interface.<\/li>\n<li>Support for WordPress 1.5.x, 2.0.x, 2.1.x, 2.2.x, 2.3.x, 2.5.x, 2.6.x, 2.7.x and 2.8<\/li>\n<li>Adjustable layout by macros.<\/li>\n<li>Handles trackbacks and comments in separate lists, or in one combined list.<\/li>\n<li>Widget support<\/li>\n<li>Caches the output<\/li>\n<li>Order comments by date, or by posting<\/li>\n<li>Support for <a href=\"http:\/\/www.gravatar.com\/\">gravatars<\/a>.<\/li>\n<li>Option to exclude comments to posts in certain categories<\/li>\n<li>Doesn\u2019t show pingbacks originating from own blog<\/li>\n<\/ul>\n\n<h3>Contributors\/Changelog<\/h3>\n\n<p>Many users of the plugin gave feedback and contributed their ideas. They are\nreferenced in the <a href=\"http:\/\/blog.jodies.de\/2004\/11\/recent-comments\/2\/#changelog\">changelog<\/a>:<\/p>\n\n<p>Changelog<\/p>\n\n<p>Version Date       Changes\n2.0.7   2019\/08\/06 Remove XSS vulnerabilty. Check capabilites in\n                   set_options. Add License. Fix gravatar size\n                   url.\n2.0.6   2009\/03\/31 Suppress mb_strrpos warnings, when haystack\n                   is empty. Thanks to ted and Michael for\n                   reporting the problem.\n2.0.5   2009\/03\/27 Make all mb_* functions optional. If function\n                   does not exist - use old version.\n2.0.4   2009\/03\/27 Check for existence of mb_regex_replace and\n                   if it does not exist (i.e. php version &lt;\n                   4.2.0) use old wordwrap version\n2.0.3   2009\/03\/26 Fixed %BEG_OF_TITLE% bug. Thanks to everybody\n                   who reported this problem (a LOT of people)\n                   Fixed broken %author_url_href macro. Now it\n                   works again.\n                   Fixed broken gravatar function - needed to\n                   bring e-mail address to lowercase before\n                   using md5 on it.\n                   Applied Sven Anderson's patch which replaces\n                   the most critical string functions with\n                   multibyte character aware php functions.\n2.0.2   2007\/09\/25 Fix: Plugin was not compatible to WordPress\n                   2.0.11 any more. Thank you to Stephan for\n                   reporting the bug.\n2.0.1   2007\/09\/24 Added switch on the categories page, which\n                   reverses the selection. It is now possible to\n                   include or exclude categories.\n2.0     2007\/09\/24 New code for fetching the data: 1. Instead of\n                   one expensive database query we now use two\n                   or more cheap queries. Thanks to mirra, who\n                   reported the problem. And again thank you to\n                   the people mentioned in changlog 1.4, where\n                   the cache was introduced for the same\n                   (performance-) problems on big blogs. 2. This\n                   also fixed a bug, which lead to too less than\n                   requested comments in lists, ordered by post.\n                   Thanks to Johanna and Fr\u00e9d\u00e9ric for reporting\n                   and documenting this. Changed the css in the\n                   admin gui, to work around a display issue\n                   with Tiger Admin. Thank you, Andi, for\n                   finding this. Added %time_since macro, which\n                   displays the time since the comment was\n                   posted. Thanks to Imran and Keith for\n                   sugesting (something like) this (very long\n                   ago). Admin interface: Added switch fpr\n                   turning on and off smileys. Thank you, panos,\n                   for requesting this feature. Support for\n                   Custom Smileys Plugin. Thanks to Henry for\n                   suggesting this. Fix: Username was not\n                   displayed as \"Anonymous\", if commentor left\n                   no name. Thanks to Pixelation for reporting\n                   this. Added support for WordPress 2.3. It\n                   will drop the post2cat table. Changed plugin\n                   to new taxonomy scheme. A <em>great<\/em> thank you\n                   goes to Lakatos Zsolt, who provided a\n                   complete patch for get-recent-comments-1.5.6,\n                   which made it very easy for me to understand\n                   how 2.0-beta10 had to be changed. Thank you\n                   also to xelios, Ville and Kretzschmar who\n                   warned me, that WordPress 2.3 will break the\n                   old plugin code.\n1.5.5   2007\/03\/26 Added support for malyfred's Polyglot Plugin.\n                   Requested by Torben.\n1.5.4   2007\/02\/01 Use full pingback_author as %comment_author\n                   (instead of 'Unknown', if the pingback parser\n                   fails to recognize the pingback_author.\n                   Thanks again to Gant who found this in his\n                   blog. Added %author_url_href macros, which\n                   allows to generate inactive links, if the\n                   commentator did not leave an url. This was\n                   wished (in part long ago) by beej, carl,\n                   FilSchiesty and SwB.\n                   Added %profile_picture macro, which supports\n                   Hannah Gray's Profile Pics Plugin. Thank you\n                   for the idea and your help, Markus\n1.5.3   2007\/01\/15 Refresh cache, when a comment is approved by\n                   moderator. Problem found by Gant. Thank you!\n1.5.2   2007\/01\/05 Added option for excluding comments from blog\n                   authors. Suggested by This is Zimbabwe, Slim,\n                   marilyn's shampoo and Igor M.\n1.5.1   2006\/12\/29 Store the cache base64 encoded. There seems\n                   to be a problem with the unserialization of\n                   multibyte characters. Thanks to priv, who\n                   reported the problem and suggested the\n                   encoding.\n                   After upgrading to this version you should\n                   trigger a regeneration of the cache by adding\n                   a comment somewhere.\n1.5     2006\/12\/27 New pingback parser\n                   Stop losing html entities and tags in the\n                   post titles and comments by using\n                   wptexturize. Thanks to ejm (again!) and\n                   mobius for reporting the problem and making\n                   suggestions.\n                   Bugfix in widget code: Error, when trackbacks\n                   came before comments\n1.4     2006\/12\/24 The plugin is a widget now. Thanks to\n                   herrmueller and Thomas de Klein for\n                   suggesting this feature.\n                   Cache the output in order to reduce the\n                   database impact of the plugin. Thanks to the\n                   following people for reporting the poor\n                   performance and making suggestions to solve\n                   the problem: Brandon Stone, King of Fools,\n                   Robert Basic and especially CountZero.\n                   Option to combine comments and trackbacks in\n                   one list (requested by Maniac and die\n                   produzentin)\n                   Allow to Group comments by their posting\n                   (requested by eyolf)\n                   Allow limit of comments per post (suggested\n                   by Thomas)\n                   Use Wordpress 2.1 compatible database\n                   variables. Thanks to spencerp, for reporting\n                   and fixing.\n                   Bugfix: Wrong key used in gravatar hash\n                   (Thank you, Hamzeh N., for finding and fixing\n                   this).\n                   Updated the stylesheets to the look of\n                   wordpress 2.x.\n                   Added two macros: %comment_type and\n                   %post_counter.\n                   Use less option variables in db.\n                   Updated instructions page.\n                   Dropped support for Wordpress 1.2\n1.3.1   2006\/12\/11 Fixes for problems with wordpress running\n                   under windows.\n1.3     2006\/11\/26 Fixes for problems with php5.\n1.2     2005\/09\/15 Prevent pingbacks from own blog. Thanks to\n                   Matt for the idea and support!\n                   To use the feature, go to the trackbacks\n                   configuration and enter the address of your\n                   webserver.\n1.0     2005\/03\/21 Also show comments to static pages. (They are\n                   new in WP 1.5). Thanks to maza for the hint.\n0.9     2005\/03\/20 Introduced admin gui. Handle trackbacks\n                   different than comments. Replaced most\n                   regular expressions with basic string\n                   operations. Dedicated macro for posting time.\n                   Requested by Zonekiller\n0.8     2005\/02\/04 Readjusted sequence of arguments to the one\n                   described in the documentation. Thanks to\n                   Thomas\n0.7     2005\/02\/03 Renamed plugin to get-recent-comments, to\n                   make it possible to use the subversion system\n                   at www.wp-plugins.org\n                   Allow to specify your own formatting in the\n                   function call\n0.5     2005\/01\/02 Removed superfluous <\/p>\n0.4     2004\/12\/19 Use function arguments for displaying HTML\n                   before and after the comment\n                   Make number of comments and number of\n                   characters also function arguments\n0.3     2004\/12\/08 Link to permalink of comment\n                   Wrap very long strings\n0.2                Don\u2019t show comments that are not approved\n0.1     2004\/11\/03 Initial release\n\n<p>Thanks to all who sent bug reports and ideas for improvements.\nPlease send me a mail if I forgot you to mention here.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>get-recent-comments.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate <code>Get Recent Comments<\/code> through the 'Plugins' menu in WordPress.<\/li>\n<li><p>What to do now depends on how up to date your theme is:<\/p>\n\n<p><strong>Modern theme with widget support<\/strong><\/p>\n\n<p>The plugin is a <a href=\"http:\/\/automattic.com\/code\/widgets\/\">widget<\/a>. If your\ntheme supports widgets, and you have installed the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/widgets\/\">widget\nplugin<\/a>, adding the plugin to the\nsidebar is easy: Go to the presentation menu and drag and drop the widget into\nthe sidebar (<a href=\"http:\/\/wordpress.org\/extend\/plugins\/get-recent-comments\/screenshots\/\">Screenshot<\/a>). Don't forget the Get Recent Trackbacks box. And you might want to\nchange the title. All done.<\/p>\n\n<p><strong>Old school theme without widget support<\/strong><\/p>\n\n<p>You need to insert the following code snippet into the sidebar template.<br \/>\n<em>wp-content\/themes\/&lt;name of theme&gt;\/sidebar.php<\/em><\/p>\n\n<pre><code>&lt;?php if (function_exists('get_recent_comments')) { ?&gt;\n&lt;li&gt;&lt;h2&gt;&lt;?php _e('Recent Comments:'); ?&gt;&lt;\/h2&gt;\n      &lt;ul&gt;\n      &lt;?php get_recent_comments(); ?&gt;\n      &lt;\/ul&gt;\n&lt;\/li&gt;\n&lt;?php } ?&gt;   \n\n&lt;?php if (function_exists('get_recent_trackbacks')) { ?&gt;\n&lt;li&gt;&lt;h2&gt;&lt;?php _e('Recent Trackbacks:'); ?&gt;&lt;\/h2&gt;\n      &lt;ul&gt;\n      &lt;?php get_recent_trackbacks(); ?&gt;\n      &lt;\/ul&gt;\n&lt;\/li&gt;\n&lt;?php } ?&gt;\n<\/code><\/pre><\/li>\n<\/ol>","raw_excerpt":"Display the most recent comments or trackbacks with your own formatting in the sidebar.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/1103","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=1103"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kjodies"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=1103"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=1103"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=1103"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=1103"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=1103"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=1103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}