• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • About Us
  • Contact Us
  • Who’s Who
  • Archive
  • Lauren Stuff
    • Lauren’s To-Do List
    • Bacon Mat Gallery
    • Preschool Quotes
    • Bat Bugs and You
    • Hilarious!
    • Pot Pie recipe
    • Utility Bills
    • Gas Bills
    • Building Committee CDC
  • Lloyd Stuff
    • Lloyd’s To-Do List
    • 50 Best Movies for Middle School
    • Good High School Websites
    • Fantasy Baseball Files
    • Website Rubric & Programming Rubric
    • I Want to Bake Bread
    • I Want to Forge Swords
    • Sorry Chuck. Sorry Brad.
    • The Lloyd Gallery
    • Narnia in Pop Culture
    • myMiniCity WordPress Plugin
    • Settlers Record
  • Prius Camping
  • Brazil
    • Martin Hofman Diaries – 1946
Lloyd and Lauren website logo

LaurenandLloyd.com

where our wasted time becomes your wasted time

  • Most Popular
  • Drawings
  • Videos
  • Worst day ever
  • Journal
  • More
  • Brazil

Recent Comments Plugin

October 17, 2006 by Lloyd 1 Comment

I’ve always like “RecentComments” features, and so I went looking for one. There are a couple of different ones floating around, but this one seemed simple, and simple is usually just about right. I installed it then modified the sidebar with this code:

<li><h2>Recent Comments</h2>
<ul><?php mdv_recent_comments(6, 30, ‘<li>’, ‘</li>’, true, 0); ?></ul></li>

The parameters for the function are:

$no_comments – sets the number of recent comments to display
$comment_lenth – the number of characters to display as a comment excerpt
$before – text to be displayed before the link to the recent comment
$after – text to be displayed after the link to the recent comment
$show_pass_post – whether or not to display comments from password protected posts
$comment_style – sets the style of comment to be used

  • 1 = “CommenterName on PostTitle” with CommenterName being a link to the comment
  • 0 = “CommenterName: WordsOfComment” with WordsOfComment being a link to the comment

I made some changes to the plugin…

  • Changed from showing a certain number of words per comment to a certain number of letters.
  • Removed any trailing spaces and added “…” to the end of the comment text.
  • Formatted the title of the link a little differently

Filed Under: Uncategorized Tagged With: Meta

Reader Interactions

Comments

  1. Lloyd says

    July 16, 2007 at 11:05 am

    This is out of date now. look in plugins and at the sidebar to see what’s going on now.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Comments

  • Jill December 1, 2025 at 1:09 pm on Good grief, Sam.Woo hoo! I love a good update.
  • Kristi November 26, 2025 at 8:42 pm on Good grief, Sam.Yay - a post! Thanks for the update. I've been wondering how life has been in Lloyd-and-Lauren Land.
  • Lloyd'sCousinSam November 23, 2025 at 7:53 am on Good grief, Sam.I am the Sam, I speak for nobody, but in this instance I am speaking for the earth. Quite apologizing[more]
  • Brady D Gurganious November 23, 2025 at 4:48 am on Good grief, Sam.Good job Sam. We’ve all been thinking it.
  • Lloyd'sCousinSam November 20, 2025 at 6:15 am on Memory archive – the stormI would like to help you move on from this disaster. The Paw Patrol has a Christmas special November 28.[more]

Friends

  • Brad
  • Deanne
  • Gretchen
  • Kitt
  • Kris
  • Kristi
  • Top

Sites

  • CSTA Nebraska
  • Lincoln Lutheran
  • Lorenz Family
  • Preschool Pointers
  • Programming Class
  • Sommerer Family
  • St. John CDC
  • Weber Family
  • WP Login

Tags

add art auction Bacon bathroom birthday brad camera cat cats choir christmas clothing computer Cricket family fire food Gadget game garden geek green hair house ipad iphone kitchen laundry mail Meta movie movies music mystery omaha Peggy preschool reunion royuks School seward Small Town tv ukulele

Brad Quote

When Brad Royuk pounds his own erasers the other erasers are jealous.

Copyright © 2025 · Genesis Sample on Genesis Framework · WordPress · Log in