{"id":2266,"date":"2007-11-28T01:08:45","date_gmt":"2007-11-28T01:08:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/comments-maximum-number\/"},"modified":"2009-02-12T17:10:03","modified_gmt":"2009-02-12T17:10:03","slug":"comments-maximum-number","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/comments-maximum-number\/","author":214498,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"2.7","requires":"","requires_php":"","requires_plugins":"","header_name":"Maximum Number of Comments","header_author":"Jos\u00e9 Lopes","header_description":"","assets_banners_color":"","last_updated":"2009-02-12 17:10:03","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.bombolom.com\/weblog_en\/wordpress\/PluginMaximumNumberComments-2007-10-27-12-05.html","header_author_uri":"http:\/\/www.bombolom.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":2313,"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":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[107],"plugin_category":[44],"plugin_contributors":[84610],"plugin_business_model":[],"class_list":["post-2266","plugin","type-plugin","status-closed","hentry","plugin_tags-comments","plugin_category-discussion-and-community","plugin_contributors-zelopes","plugin_committers-zelopes"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/comments-maximum-number.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin enables the setting of a maximum number of comments allowed to display\nin each post. In addition, it provides a link to expand the comments showing all the remaining ones.<\/p>\n\n<p>All the comments above the defined maximum number are hidden.\nBy clicking on the link 'Click here to see the remaining comments' they will be shown.<\/p>\n\n<p>On the Plugin homepage you will find these description and instructions:<\/p>\n\n<ul>\n<li>in <a href=\"http:\/\/www.bombolom.com\/weblog_en\/wordpress\/PluginMaximumNumberComments-2007-10-27-12-05.html\">English<\/a><\/li>\n<li>in <a href=\"http:\/\/www.bombolom.com\/weblog_pt\/wordpress\/PluginMaximumNumberComments-2007-10-27-12-05.html\">Portuguese<\/a><\/li>\n<\/ul>\n\n<h3>Internationalization<\/h3>\n\n<p>This Plugin has English as the default language but you may find the POT file\navailable with this distribution to create your own language version.<\/p>\n\n<p>Also in this distribution you have the language versions:<\/p>\n\n<ul>\n<li>Portuguese (Portugal)<\/li>\n<li>French (France)<\/li>\n<\/ul>\n\n<h3>Credits<\/h3>\n\n<p>Copyright 2007 Jose Lopes<\/p>\n\n<p>This program is free software; you can redistribute it and\/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option) any later version.<\/p>\n\n<p>This program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.<\/p>\n\n<p>You should have received a copy of the GNU General Public License\nalong with this program; if not, write to the Free Software\nFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Decompress the files to the \/wp-content\/plugins\/ directory.<\/li>\n<li>Confirm that the plugin content is on the directory maximum-number-of-comments.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Edit the comments.php file of your theme.<\/li>\n<li>Delete the comment block starting with &lt;?php if ($comments) : ?&gt; and ending with &lt;?php endif; ?&gt;.<\/li>\n<li><p>Write in its place &lt;?php  MaximumComments(2, $comments, $oddcomment) ?&gt;, were:<\/p>\n\n<ol>\n<li>the number 2 represents the maximum number of comments displayed (can be any value).<\/li>\n<li>the constant $comments should not be changed.<\/li>\n<li>for the constant $oddcomment, if it doesn't appear previouly on the comments.php file just write 'alt' instead.<\/li>\n<\/ol><\/li>\n<\/ol>","raw_excerpt":"Sets the maximum number of comments allowed to display in each post. Provides a link to show the remaining comments.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/2266","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=2266"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/zelopes"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=2266"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=2266"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=2266"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=2266"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=2266"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=2266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}