Michael Heilemann.
If you have Dunstan's Time Since installed, this plugin uses it for the title="" attributes on the comments and posts. (For WordPress 1.5) Author: Brian Meidell Author URI: http://meidell.dk/ Version 1.5: Now works without LOCK TABLE and CREATE TEMPORARY TABLE priviledges. Version 1.5.1: Can't remember what I did here Version 1.5.2: Fixed count select statement to not include spammy comments Version 1.5.3: Properly excludes track- and pingbacks Version 1.5.4: Excludes posts that are not published, even if they have comments Version 1.5.5: Fade old comments, fixed bug that wreaked havoc with Time Since Version 1.5.6: Bugfix from Jonas Rabbe (http://www.jonas.rabbe.com/) pertaining to timesince Version 1.5.7: Bugfix so old colors can be darker than new colors (stupid oversight), thanks to http://spiri.dk for spotting it. Bugfix where single digit hex would cause invalid colors, thanks to http://www.wereldkeuken.be/ for the fix. Version 1.5.8: Updated to work with WordPress 2.1 alpha by M. Heilemann. */ function blc_latest_comments($num_posts = 5, $num_comments = 6, $hide_pingbacks_and_trackbacks = true, $prefix = "
  • ", $postfix = "
  • ", $fade_old = true, $range_in_days = 10, $new_col = "#444444", $old_col = "#cccccc") { global $wpdb; function clamp($min, $max, $val) { return max($min,min($max,$val)); } $usetimesince = function_exists('time_since'); // Work nicely with Dunstan's Time Since plugin (adapted by Michael Heilemann) // This is compensating for the lack of subqueries in mysql 3.x // The approach used in previous versions needed the user to // have database lock and create tmp table priviledges. // This uses more queries and manual DISTINCT code, but it works with just select privs. if(!$hide_pingbacks_and_trackbacks) $ping = ""; else $ping = "AND comment_type<>'pingback' AND comment_type<>'trackback'"; $posts = $wpdb->get_results("SELECT comment_post_ID, post_title FROM ($wpdb->comments LEFT JOIN $wpdb->posts ON (comment_post_ID = ID)) WHERE comment_approved = '1' AND $wpdb->posts.post_status='publish' $ping ORDER BY comment_date DESC;"); $seen = array(); $num = 0; if($fade_old) { $max_time = $range_in_days * 24 * 60 * 60 ; $r_new = hexdec(substr($new_col, 1, 2)); $r_old = hexdec(substr($old_col, 1, 2)); //$r_min = min($min, $max); //$r_max = max($min, $max); $r_range = ($r_old-$r_new); $g_new = hexdec(substr($new_col, 3, 2)); $g_old = hexdec(substr($old_col, 3, 2)); //$g_min = min($min, $max); //$g_max = max($min, $max); $g_range = ($g_old-$g_new); $b_new = hexdec(substr($new_col, 5, 2)); $b_old = hexdec(substr($old_col, 5, 2)); //$b_min = min($min, $max); //$b_max = max($min, $max); $b_range = ($b_old-$b_new); } // print "ranges: $r_range, $g_range, $b_range
    "; // print "r: ".(0.5*$r_range+$r_new)."
    "; foreach($posts as $post) { // The following 5 lines is a manual DISTINCT and LIMIT, // since mysql 3.x doesn't allow you to control which way a DISTINCT // select merges multiple entries. if(array_key_exists($post->comment_post_ID, $seen)) continue; $seen[$post->comment_post_ID] = true; if($num++ > $num_posts) break; $commenters = $wpdb->get_results("SELECT *, UNIX_TIMESTAMP(comment_date) AS unixdate FROM $wpdb->comments WHERE comment_approved = '1' AND comment_post_ID = '".$post->comment_post_ID."' $ping ORDER BY comment_date DESC LIMIT $num_comments;"); $count = $wpdb->get_var("SELECT COUNT(comment_ID) AS c FROM $wpdb->comments WHERE comment_post_ID = $post->comment_post_ID AND comment_approved = '1' ".$ping); $i = 0; $link = get_permalink($post->comment_post_ID); if($usetimesince) $title = " title=\"Last comment was ".time_since($comment->unixdate)." ago\""; else $title = ""; echo $prefix."".stripslashes($post->post_title). "  ".$count."
    \n"; foreach($commenters as $commenter) { if($usetimesince) $title = " title=\"Posted ".time_since($commenter->unixdate)." ago\""; if($fade_old) { $diff = time() - $commenter->unixdate; $r = round($diff/$max_time*($r_range))+$r_new; $r = clamp(min($r_new, $r_old), max($r_new, $r_old), $r); $g = round($diff/$max_time*($g_range))+$g_new; $g = clamp(min($g_new, $g_old), max($g_new, $g_old), $g); $b = round($diff/$max_time*($b_range))+$b_new; $b = clamp(min($b_new, $b_old), max($b_new, $b_old), $b); $r_hex = str_pad(dechex($r), 2, '0', STR_PAD_LEFT); $g_hex = str_pad(dechex($g), 2, '0', STR_PAD_LEFT); $b_hex = str_pad(dechex($r), 2, '0', STR_PAD_LEFT); $colstr = " style=\"color: #".$r_hex.$g_hex.$b_hex.";\""; } if($i++ > 0) echo ", "; echo "comment_ID."\"$title>".stripslashes($commenter->comment_author).""; } if($count > $num_comments) echo " [...]"; echo "".$postfix."\n"; } } ?> 1998 | YEMblog

    1998 RSS

    August 27, 2012

    Phish: 10/03/1998 Official FarmAid Footage Playlist [VQ: A+, AQ: A+, Pro-Shot]

    Birds, Farmhouse, Moma, Runaway Jim, Arc, Down By The River

    March 16, 2012

    Phish: 10/20/1998 Ghost [VQ: A+, AQ: A, Sessions at West 54th]

    YouTube Preview Image

    March 13, 2012

    Phish: 07/05/1998 Cavern [VQ: B-, AQ: A]

    YouTube Preview Image

    Phish: 07/05/1998 Moma Dance [VQ: B-, AQ: A]

    YouTube Preview Image

    March 11, 2012

    Phish: 07/05/1998  Bathtub Gin [VQ: B-, AQ: A]

    March 1, 2012

    Phish: 11/09/1998 I Get A Kick Out of You [VQ: B+, AQ: A-]

    YouTube Preview Image

    February 26, 2012

    Phish: 11/09/1998 Freebird [VQ: A, AQ: A-]

    YouTube Preview Image

    “What Song Is It You Want To Hear?”

    February 24, 2012

    Phish: 11/09/1998 Bathtub Gin [VQ: B, AQ: A-]

    YouTube Preview Image

    February 15, 2012

    Phish: 10/03/1998 Runaway Jim [VQ: A+, AQ: A, Pro-Shot]

    YouTube Preview Image

    February 14, 2012

    Phish: Phish w/ Neil Young 10/03/1998 Arc > Down By The River [VQ: A+, AQ: A, Pro-Shot]

    YouTube Preview Image

    February 12, 2012

    Phish: 12/28/1998 Most of the Show Playlist [VQ: B, AQ: A-]

    Stash, Farmhouse, Taste, Sleep@, Albuquerque@, Driver@, Tube > Golgi Apparatus > Good Times Bad Times, Wolfman’s Brother (Two Parts), Birds of a Feather, Quinn the Eskimo -> David Bowie, Been Caught Stealing

    @ – Acoustic

    February 8, 2012

    Phish: 07/25/1998 Piper, Wilson, Frankenstein, Tweezer [VQ: B-, AQ: A]

    February 2, 2012

    Phish: 07/17/1998 Set I [VQ: C+, AQ: B+]

    YouTube Preview Image

    February 1, 2012

    Phish: 12/29/1998 //Boogie On, YEM, Divided Sky [VQ: B, AQ: B+]

    YouTube Preview Image

    Phish: 11/06/1998 Playlist [VQ: B, AQ: A-]

    Simple, Harry Hood, Fluffhead, Roggae, Split Open and Melt, Maze, Meat, Wilson, Sparkle, Funky Bitch, Birds of a Feather, Makisupa Policeman,

    January 29, 2012

    Phish: 07/09/1998 Set II Barcelona, Spain [VQ: B, AQ: A-]

    YouTube Preview Image

    December 28, 2011

    Phish: 11/24/1998 Tweezer [VQ: A-, AQ: B+]

    YouTube Preview Image YouTube Preview Image

    December 13, 2011

    Phish: 11/25/1998 DAUD New Source Albany, NY

    November 10, 2011

    Remembrances: MSG Memoirs – The “2001” of 1998 [Phish Thoughts]

    November 8, 2011

    Remembrances: MSG Memoirs – Carini > Wolfman’s [Phish Thoughts]

    Combining a eerie feel with a hard rhythmic focus, the band was creating some of their most engaging music of the year on the very first night of the New Year’s Run. Fishman altered his beat and the rest of the band followed along, creating an harrowing and danceable texture that spoke to the exact elements that I crave for in Phish music. Drifting from these patterns to a more ambient-drenched experiment, the methodical pocket and cymbal crashes never stopped as Trey and Page dug into space-aged effects that brought an enhanced sense of the occult back into play.

    October 9, 2011

    Phish: 07/06/1998 Ghost [VQ: A, AQ: A+]

    YouTube Preview Image

    August 26, 2011

    Phish: 07/02/1998 DAUD New Source Copenhagen, Denmark

    August 10, 2011

    Phish: 08/16/1998 Piper [VQ: B, AQ: A-]

    YouTube Preview Image

    August 3, 2011

    Phish: 07/17/1998 My Soul [VQ: A-, AQ: A-]

    YouTube Preview Image

    July 20, 2011

    Phish: 07/17/1998 Divided Sky [VQ: B+, AQ: A-]

    YouTube Preview Image YouTube Preview Image

    June 8, 2011

    Phish: 07/25/1998 Piper > Wilson [VQ: B-, AQ: B-]

    YouTube Preview Image

    May 27, 2011

    Phish: 12/31/1998 New Source DAUD New York, NY

    May 20, 2011

    Downloads: Summer Rage Sauce – Texas Heat ’98 [OPT]

    May 17, 2011

    Phish: 12/31/1998 Entire Show Playlist [VQ: B+, AQ: A-]

    setlist via phish.net

    Thursday, 12/31/1998
    Madison Square Garden, New York, NY

    Set 1: 1999[1] > Mike’s Song > I Am Hydrogen[2] > Weekapaug Groove[3], Ghost -> Ha Ha Ha > Cavern

    Set 2: NICU > Character Zero > Tweezer -> Cities > Wading in the Velvet Sea, Run Like an Antelope > Frankenstein

    Set 3: Runaway Jim[4] -> Auld Lang Syne -> Simple[5], Harry Hood > Tweezer Reprise, Llama

    Encore: While My Guitar Gently Weeps

    [1] Phish debut.
    [2] Albert teases from Trey.
    [3] 1999 teases.
    [4] 1999 and Auld Lang Syne teases.
    [5] Magilla teases.

    [via Phish Video Collection]

    May 13, 2011

    Phish: 08/15/1998 UNCIRCULATED FM/FOB Limestone, ME

    *This tape is by no means perfect….I never originally seeded it because it has FM reception flaws and mild distortion at
    points. I was wearing the DAT and radio in my pack top with headphones in the middle of the crowd.
    It is being seeded due to a large volume of requests for the FM source for this show, and we haven’t seen an alternative surface yet.
    I’m not letting this out as any definitive tape…people just told me they wanted it, and I wanted to make them happy. If someone has a
    better FM, please let it out until the band releases something definitive. – DS

    May 11, 2011

    Phish: 11/24/1998 Ghost, Halley’s, Tweezer, Possum [VQ: B, AQ: B]

    http://www.youtube.com/view_play_list?p=2CD6ED5C44C41092

    May 3, 2011

    Phish: 07/06/1998 Entire Show Playlist [VQ: B+, AQ: A-]

    http://www.youtube.com/view_play_list?p=3DEFE76E6863B7B4

    Re-uploaded by gdoucette1978 In honor of Duanebase

    Phish: 07/21/1998 New Source DAUD Phoenix, AZ

    April 5, 2011

    Phish: 04/05/1998 ENTIRE SHOW PLAYLIST [VQ: B+, AQ: A]

    http://www.youtube.com/view_play_list?p=43293501466F24E9

    The Oh Kee Pa Ceremony, You Enjoy Myself, Theme From The Bottom, McGrupp, Bathtub Gin, Cities, Sparkle, Split Open and Melt, Down With Disease, Ya Mar, Prince Caspian, Maze, Possum, Cavern, Bold As Love

    Videos: Playlists of the Complete Island Tour [Hidden Track]

    Phish: 04/04/1998 ENTIRE SHOW PLAYLIST [VQ: B+, AQ: A]

    http://www.youtube.com/view_play_list?p=CBA7DD9002B1A887

    Tweezer, Taste, Bouncing Around The Room, Funky Bitch, Ginseng Sullivan, Bouncing Around The Room, Funky Bitch, Ginseng Sullivan, Limb By Limb, Lawn Boy, Character Zero, Birds of a Feather, Also Sprach Zarathrustra, Brother, Brother (radio edit), Ghost, The Lizards, David Bowie, Harry Hood

    April 4, 2011

    Phish: 04/03/1998 ENTIRE SHOW PLAYLIST [VQ: B+, AQ: A]

    http://www.youtube.com/view_play_list?p=B08C4EBD194762D9

    Mike’s Song, Old Home Place, Weekapaug Groove, Train Song, Billy Breathes, Beauty of My Dreams, Dogs Stole Things, Reba, My Soul, Roses Are Free, Uniondale Jam, Piper, Loving Cup, Run Like An Antelope, Carini, Halley’s Comet, Tweezer Reprise

    Phish: 04/02/1998 ENTIRE SHOW PLAYLIST [VQ: B+, AQ: A]

    http://www.youtube.com/view_play_list?p=EA8FDECCDD9EECB3

    Tube, My Mind’s Got a Mind of It’s Own, The Sloth, NICU, Stash, Horn, Waste, Chalk Dust Torture, Punch You In The Eye, Simple, Frankie Sez, Twist, Sleeping Monkey, Rocky Top, Guyute

    April 1, 2011

    Downloads: Summer Rage Sauce – Va Beach ’98 [OPT]

    March 26, 2011

    Phish: 07/06/1998 Entire Show Playlist [VQ: A, AQ: A+]

    http://www.youtube.com/view_play_list?p=84FB1BA33A338A4D

    Buried Alive, AC/DC Bag, Ghost, Cities, Limb By Limb, Train Song, Roggae, Maze, Golgi, Julius, Meat, Piper, Makisupa Policeman, David Bowie, Loving Cup, Possum

    March 22, 2011

    Phish: 12/31/1998 ENTIRE SHOW PLAYLIST [VQ: B+, AQ: A-]

    http://www.youtube.com/view_play_list?p=2C315130C31329CD

    March 6, 2011

    Phish: 12/31/1998 Mike’s Song [VQ: B+, AQ: A]

    YouTube Preview Image

    March 3, 2011

    Phish: 12/31/1998 Runaway Jim > New Year’s Eve > Simple [VQ: B+, AQ: A-]

    YouTube Preview Image

    February 10, 2011

    Phish: 10/03/1998 Farm Aid Entire Show Playlist [VQ: A+, AQ: A, TV]

    http://www.youtube.com/view_play_list?p=D23EF5953E582932

    Birds of a Feather, Farmhouse, Moma Dance, Runaway Jim, Arc, Down By The River, All Star Finale

    February 4, 2011

    Phish: 08/15/1998 DAUD New Source Limestone, ME

    February 2, 2011

    Phish: 11/02/1998 DAUD New Source Salt Lake City, UT

    December 27, 2010

    Phish: 12/29/1998 Boogie On Reggae Woman [VQ: B, AQ: B]

    YouTube Preview Image

    December 7, 2010

    Phish: 11/29/1998 Simple [VQ: B, AQ: B]

    YouTube Preview Image YouTube Preview Image

    December 6, 2010

    Phish: 11/27/1998 Run Like An Antelope [VQ: A-, AQ: A+]

    YouTube Preview Image YouTube Preview Image

    December 3, 2010

    Phish: 11/27/1998 Weekapaug Groove [VQ: A-, AQ: A+]

    YouTube Preview Image YouTube Preview Image

    November 29, 2010

    Phish: 11/27/1998 Dog Log, Sanity, Buffalo Bill [VQ: A-, AQ: A+]

    YouTube Preview Image

    Phish: 11/27/1998 Buried Alive > Wipeout > Chalk Dust > Mirror In The Bathroom [VQ: A-, AQ: A+]

    YouTube Preview Image

    November 18, 2010

    Phish: 07/17/1998 Playlist [VQ: B, AQ: A-]

    http://www.youtube.com/view_play_list?p=41B24E9A5ED2F371

    Makisupa Policeman, Ya Mar, Gumbo, Divided Sky, Waste, My Mind’s Got a Mind of Its Own, My Soul

    October 20, 2010

    Phish: 11/08/1998 Chalk Dust Torture [VQ: B+, AQ: B+]

    YouTube Preview Image

    October 19, 2010

    Phish: 11/08/1998 Cavern, Stash [VQ: A-, AQ: A-]

    YouTube Preview Image YouTube Preview Image

    October 17, 2010

    Phish: 11/08/1998 Stash [VQ: A-, AQ: B+]

    YouTube Preview Image

    October 16, 2010

    Phish: 11/08/1998 Paul & Silas, Roggae [VQ: A-, AQ: A-]

    YouTube Preview Image

    October 14, 2010

    Phish: 11/08/1998 Fee [VQ: A-, AQ: B+]

    YouTube Preview Image

    October 13, 2010

    Phish w/ Seth Yac: 11/29/1998 Layla [VQ: A-, AQ: B]

    YouTube Preview Image

    October 12, 2010

    Phish w/ Seth Yac: 11/29/1998 All The Pain Throughout The Years [VQ: B+, AQ: B+]

    YouTube Preview Image