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"; } } ?> Downloads | YEMblog

    Downloads RSS

    May 23, 2012

    Free Downloads: Live Bait Volume 7 [LivePhish.com]

    February 28, 2012

    Downloads: Trey + Fish + Jazz Mandolin Project = Bad Hat [Hidden Track]

    December 26, 2011

    Downloads: Early Phish SBDs [Paradise Waits]

    November 2, 2011

    Downloads: UPDATED – Phish Leaked SBD Project [Ghetto-Fab Remasters]

    October 6, 2011

    Downloads: All of Miner’s Picks in FLAC and MP3 [Phish Thoughts]

    September 29, 2011

    Downloads: Free Trey Anastasio Soundboards [LivePhish.com]

    July 15, 2011

    Downloads: A Show For Your Weekend – Hampton ’96 [OPT]

    July 9, 2011

    InterviewsSim-Bop & Be-Bophone, All these Links are Grand!… “The Spreadsheet” [Phish.net]

    Most Phish fans can be categorized into two groups. One that has ‘The Spreadsheet’ in their browser bookmark bar and the other that is yet to experience the “Holy Shit!” moment when they discover it for the first time. A labor of love & dedication, the Spreadsheet is one of the definitive sources for Phish MP3’s and catalogs every known circulating show since 1983. A mere utterance of the term, “The Spreadsheet”, and most fans instantly know that you are talking about Kevin Hoy’s Google Doc. But how did this amazing resource come about? And who is Kevin?

    July 8, 2011

    Downloads: A Show For The Weekend – Montreal ’94 [Online Phish Tour]

    June 24, 2011

    Downloads: A Show For Your Weekend – Independence Day ’99 [OPT]

    June 5, 2011

    Streams/Downloads: Check Out “Steam” – Phish’s Newest Song [Barn Presents]

    May 20, 2011

    Downloads: Phish Live Bait Vol. 4 – Four Hours of Free Tracks [LivePhish]

    Phish archivist Kevin Shapiro has put together this compilation of unreleased tracks from Phish’s past summer shows. Consider this must-download/stream material and check it out immediately – ScottyB

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

    May 17, 2011

    Downloads: Show I’ve Never Heard – 11/27/1996 [OPT]

    May 15, 2011

    Downloads: Phish Soundboard Track From 2000 Surfaces [Hidden Track]

    May 13, 2011

    Downloads: Summer Rage Sauce – Big Cat 2000 [OPT]

    April 19, 2011

    Downloads: Phish – Rare & Unreleased DJ Set [Coventry]

    April 1, 2011

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

    March 26, 2011

    Downloads: A Get Down For The Melt Down [OPT]

    March 18, 2011

    Downloads: Hershey ’96 – The Sleeper [Online Phish Tour]

    March 11, 2011

    Downloads: Summer Rage Sauce – Ventura ’98 [OPT]

    March 4, 2011

    Downloads:  Free Mike Gordon Band Download 11/16/2010 SBD [LivePhish]

    Back on November 16, Mike Gordon and the Mike Gordon Band took the stage at the Fine Line Music Cafe in Minneapolis, Minn. for a rollicking performance that HT’s Joe Ringus felt opened with a sizzling Can’t Stand Still and “never let up.” With the MGB about to kick off its first tour of 2011 tomorrow night in Eugene, Oreg.; the Phish bassist has shared a free MP3 soundboard download of the group’s show at the Fine Line Music Cafe. [via HT]

    Downloads: Summer Rage Sauce – Lakewood ’97 [Online Phish Tour]

    March 1, 2011

    Downloads: Trey Anastasio Acoustic Mix – Stormy Mondays [Hidden Track]

    February 25, 2011

    Downloads: Summer Rage Sauce – Big Birch ’94 [OPT]

    Downloads: When TAB Was a Jamband [Online Phish Tour]

    February 11, 2011

    Downloads: A Show For The Weekend – Utah ’95 [OPT]

    February 4, 2011

    Downloads: A Show For Your Weekend – Warfield ’94 [OPT]

    January 28, 2011

    Downloads: Roseland ’93 – Show For Your Weekend [OPT]

    December 17, 2010

    Downloads: Get Drenched With a New Mexican Gin [OPT]

    December 10, 2010

    Downloads: A Show For The Weekend – 07/25/99 [OPT]

    December 3, 2010

    Downloads: A Show For Your Weekend – Alpine 2000 [OPT]

    December 2, 2010

    Free Downloads: Live Bait Volume 3 (STREAM) [LivePhish]

    Countdown/Auld Lang Syne >
    (1993-12-31 Worcester Centrum – Worcester, MA)

    Down With Disease Jam >
    (1993-12-31 Worcester Centrum – Worcester, MA)

    Split Open And Melt
    (1993-12-31 Worcester Centrum – Worcester, MA)

    Runaway Jim
    (1997-11-29 Worcester Centrum – Worcester, MA)

    Llama
    (1991-12-31 Worcester Memorial Auditorium “The New Aud” – Worcester, MA)

    November 24, 2010

    Downloads: A Look at Phish Thanksgiving Weekend Shows [OPT]

    November 19, 2010

    Downloads: A Show For Your Weekend – Rupp ’96 [OPT]

    November 12, 2010

    Downloads: Pah’s Picks – Fall Tour 2010 [OhKeePahBlog]

    November 10, 2010

    Downloads: Santana w/ Trey, Page and Fish [Online Phish Tour]

    October 5, 2010

    Free Downloads: How the LP Free Downloads Will Work [PhishNet]

    September 13, 2010

    Downloads: Miner’s Picks – Summer Leg II [Phish Thoughts]

    August 27, 2010

    Downloads: You Enjoy MySummer 2010 Mix [Coventry]

    August 23, 2010

    Downloads: Live Bait Volume 1 [Phish.com]

    The tracks were cherry-picked from the band’s first leg of their recently completed Summer Tour, and are fully mixed soundboards from LivePhish.com. Click here to stream “Phish: Live Bait Vol. 01″ now or download MP3s – absolutely free.

    August 4, 2010

    Downloads: Recommended – 08/28/1993 [OhKeePah Blog]

    July 28, 2010

    Downloads: The Phish Spreadsheet – Complete [Hidden Track]

    July 26, 2010

    Downloads: Miner’s Picks – Summer Tour Leg One [Phish Thoughts]

    July 13, 2010

    Downloads: Featured Download – 9/22/99 [Online Phish Tour]

    June 8, 2010

    Downloads: Bonnaroo From The Archives #2 – 06/14/2009 Pre-FM

    Download Links: FLACs, V0 MP3s, AACs

    As promised we’re following up yesterday’s posting of the definitive recording of the first Phish Bonnaroo From The Archives broadcast with the release of the same quality files for the second broadcast. For more details and a complete track list head over to Hidden Track.

    June 7, 2010

    Downloads: Another 2000 SBD Surfaces – Theme > Dog Log [Hidden Track]

    Phish soundboard recordings in circulation from 2000 aren’t plentiful, but we’ve made a step in the right direction over the last few hours. Earlier today we pointed you in the direction of the definitive recording of the Radio City Ghost and other gems from the first Bonnaroo From The Archives broadcast and now we’ve got another sick track from 2000 you’ve got to hear.

    Downloads: Bonnaroo From The Archives #1 – 6/12/2009 PRE-FM

    Download Links: FLACs, V0 MP3s, AACs

    We’re honored to share this unbelievably crisp recording of last June’s Bonnaroo From The Archives broadcasts. Today, we’ve got the Pre-FM files from the first broadcast. Stay tuned for files from the second broadcast. For more details and a complete track listing head over to Hidden Track.

    June 6, 2010

    Downloads: Ghetto-Fab Remasters – 07/21/1997 [GhettoFabRemasters]

    June 4, 2010

    Downloads: Free Download From Phish @ Toyota Park [WXRT]

    May 31, 2010

    Downloads: Phish Covers Compilation [Coventry]

    May 25, 2010

    Downloads: Summer Tours Past [Online Phish Tour]

    May 21, 2010

    Downloads: The Osaka Disease [Ghetto-Fab Remasters]

    May 7, 2010

    Downloads: Recent Additions to the Spreadsheet [SpreadsheetBlog]

    May 6, 2010

    Downloads: Light 2009 – 10-Disc Compilation [JiggsLot]

    May 5, 2010

    Downloads: 09/14/1999 Boise Remaster [Ghetto-Fab Remasters]

    May 2, 2010

    Phish 3D: Download – Audio From Mike’s Song [CoS]

    April 26, 2010

    Downloads: February Classic TAB Tour Downloads [Ghetto-Fab]

    April 19, 2010

    Remasters: 07/13/1999 Great Woods Mansfield, MA [Ghetto-Fab]

    March 16, 2010

    Rock Hall: Phish Performs Genesis Audio [drop.io]