Retrieve the top commenters or most recent commenters to your site (if called outside “the loop”) or for a particular post (if called inside “the loop”).
Category: WordPress
This plugin outputs a list of the N most recently commenting authors (with hyperlinks to their homepage if they provided an URL). You can define $before and $after text/HTML to bookend each list item. Specify $num_people to control how many people to list.
- Can be used inside or outside “the loop”
get_recent_commenters($num_people = 5, $before='<li>', $after='</li>')
- $num_people : The number of recent commenters to be returned; default is 5
- $before: The text to display before each recent commenter.
- $after: The text/HTML to display after each recent commenter.
Example:
<ul> <?php get_recent_commenters(3); ?> </ul>
Outputs:
<ul> <li><a href="http://www.joebob.org">Joe Bob</a></li> <li>No Homepage Guy</li> <li><a href="http://www.suzy.org">Suzy</a></li> </ul>
Example:
Recent love from: <?php get_recent_commenters(3, '', ','); ?>
Outputs:
Recent love from: <a href="http://www.joebob.org">Joe Bob</a>, No Homepage Guy, <a href="http://www.suzy.org">Suzy</a>,
- 08 Jul 2004 : Deprecated; use the Top/Recent Comments plugin insead.
- 07 Jul 2004 : v0.9 — Released to the public
Copyright (c) 2004, Scott Reilly
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of coffee2code.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
NOTE: This plugin has been officially deprecated in favor of the much more robust Customizable Post Listings plugin.
coffee2code.com/wp-plugins/get-custom-field-values
Easily retrieve and control the display of any custom field values/meta data for posts, inside or outside “the loop”. The power of custom fields gives this plugin the potential to be dozens of plugins all rolled into one.
WordPress formatting bugs
I came across a few formatting bugs in the course of creating the entry related to my first plugin. When I used Movable Type, I opted to not have MT do any formatting of my posts for me. While giving me complete control over the look and layout, it was a bit tedious to wrap each paragraph in <p> and </p>, using <br /> to denote end-lines and blank lines, etc. In using WordPress, I’ve allowed it to do some of the formatting, and I checked “WordPress should correct invalidly nested XHTML automatically.”
Such handling comes with a price. Here are a few samples which will trigger WordPress formatting bugs. The bugs involve at least the function balanceTags() in wp-includes/functions-formatting.php, and possibly others. At this point in time I haven’t gotten deep enough into this aspect of the WordPress code so I don’t have a solution to these particular problems, but I’ll document them in case someone else can fix them. (I’m not the first to encounter the worst of the items listed below, as evidenced by this bug tracker item.)
Plugin: Text Replace
coffee2code.com/wp-plugins/text-replace
Plugin: wpPHPMailer
This plugin has been deprecated! It is no longer being developed and there will not be any continued support for it. Comments to this post are also now closed.
Fear not, for the essence of the plugin continues on in my Configure SMTP plugin.
Plugin: wpuntexturize
coffee2code.com/wp-plugins/wpuntexturize