This plugin enables the setting of a maximum number of comments allowed to display
in each post. In addition, it provides a link to expand the comments showing all the remaining ones.
All the comments above the defined maximum number are hidden.
By clicking on the link ‘Click here to see the remaining comments’ they will be shown.
On the Plugin homepage you will find these description and instructions:
This Plugin has English as the default language but you may find the POT file
available with this distribution to create your own language version.
Also in this distribution you have the language versions:
- Portuguese (Portugal)
- French (France)
Copyright 2007 Jose Lopes
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Decompress the files to the /wp-content/plugins/ directory.
- Confirm that the plugin content is on the directory maximum-number-of-comments.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Edit the comments.php file of your theme.
- Delete the comment block starting with <?php if ($comments) : ?> and ending with <?php endif; ?>.
Write in its place <?php MaximumComments(2, $comments, $oddcomment) ?>, were:
- the number 2 represents the maximum number of comments displayed (can be any value).
- the constant $comments should not be changed.
- for the constant $oddcomment, if it doesn’t appear previouly on the comments.php file just write ‘alt’ instead.
Contributors & Developers
“Maximum Number of Comments” is open source software. The following people have contributed to this plugin.Contributors