Plugin Name: Brian's Latest Comments
Plugin URI: http://meidell.dk/archives/category/wordpress/latest-comments/
Description: This shows an overview of the recently active articles and the last people to comment on them. Original idea and code fixes contributed by 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")
function clamp($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.
$ping = "";
$ping = "AND comment_type<>'pingback' AND comment_type<>'trackback'";
$posts = $wpdb->get_results("SELECT
FROM ($wpdb->comments LEFT JOIN $wpdb->posts ON (comment_post_ID = ID))
WHERE comment_approved = '1'
ORDER BY comment_date DESC;");
$seen = array();
$num = 0;
$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.
$seen[$post->comment_post_ID] = true;
if($num++ > $num_posts)
$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."'
ORDER BY comment_date DESC
$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);
$title = " title=\"Last comment was ".time_since($comment->unixdate)." ago\"";
$title = "";
echo $prefix."".stripslashes($post->post_title). "".$count." \n";
foreach($commenters as $commenter)
$title = " title=\"Posted ".time_since($commenter->unixdate)." ago\"";
$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 ", ";
if($count > $num_comments)
echo " [...]";
Uncirculated | YEMblog
This tape belongs in an Archive. In this era of TS->InterWebstreaming and immediate MP3 post-show downloading, this tape is an historical artifact in the history of recorded live music. It is also one of those recordings that somehow managed to escape the tape collections of many of the most obsessive-compulsive Phish tape collectors in history. Of course, its failure to circulate widely in the previous 26 years may have resulted from its quality. (I’d have probably given it a “C-/D+” on my last tapelist, circa 2000.)
New, complete source of Phish’s performance at a New Hampshire prep school has surfaced thanks to one of the students in attendance that night as well as Chad Fagin, Adam Scheinberg, Charlie Dirksen and Brian Costigan. Well worth the addition to your Phish collection. – ScottyB
*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
Charlie Dirksen has helped unearth a rare soundboard from Phish’s penultimate show at The Front in Burlington. While Dirksen notes tape hiss and muddiness on this source, the rare addition of harmonica to YEM and crude version of BBFCFM makes it well worth a listen. – ScottyB
This tape used to circulate in the 1990s, and it is a mixed “demo” tape of live Phish songs from certain March and April 1992 gigs that was purportedly made for folks at Elektra. This mix of SBD recordings may have been made by a legendary fan and taper named Henry Petras, and Henry may have made this copy for Ellis. I have retained the fade-ins and fade-outs. The tape is labeled “Elektra Records Live Demo 4/16-21/92,” even though it includes Horse>Silent from March 7, 1992, according to the labeling of these tracks on the jcard. Note that there is a lot of crowd noise between Rocky Top and Contact that I did not edit out (Rocky Top ended the second set and Contact began the encore on 4/18/92).
Here’s part of a never-before circulated Stone Church show from ’89, which was transfered by Charlie Dirksen from a tape given to him by Mason Riedl. Check it out for what Charlie calls “strong early versions” of YEM and La Grange. – ScottyB
Page McConnell- Keyboards
Dave Grippo – Alto Sax
Sean Hartman – Bass
Jeff Salisbury – Drums
Screamin’ Dean – Harp
George Abele and Steven Kemp – Percussion
Joseph Somerville Jr. – Trumpet
Zaphed Beeble Brox – Tenor Sax
A soundboard of one of my all-time favorite shows has finally hit the digital realm over 11 years after the start of Etree. Be sure to download this ASAP, for 10 reasons why check out this post. – Scotty
Taper Scott Bernstein shares an uncirculated recording of the Dude of Life at the Wetlands in 1994. At this show the Dude was joined by Trey on guitar, Fish on drums and even Page for a few songs on keys. As with all of Scott’s recordings, this sounds great. – ScottyB
Over the past few years, as I’ve been digging through my analog/CD collection, locating and sharing Phish material that hasn’t circulated before, I’ve been keeping a separate folder of tracks, usually filler on tapes or CDs, that have otherwise, never had a home. In essence, I have no idea what they are, where they were played, or what the date is on them. I do know that they are all between 1985-1989, and I do know that none of them as circulated in a digital format before – other than perhaps as an oddball filler on an old shn fileset. – TaperWayne
The most complete copy of this show yet has come into circulation with the addition of six missing tracks from the first set. A fantastic early show, this is a worthy addition to any Phish fan’s collection. – SB
Thanks to Etree user Parkerjh for unearthing this new-to-circulation recording from 1991. I haven’t had a chance to listen yet, but comments on Etree make it seem as if the recording is a bit off-pitch. You might want to wait until someone corrects the pitch…or not. – ScottyB
Back in the days when Phish regularly played at colleges and boarding schools, they stopped by St. Paul’s in Concord, NH. This SBD features only about half of the show, but we’ll take what we can get. – ScottyB
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.
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.
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.
We can’t wait for tour to kick off on Friday and to help raise the energy to a fevered pitch, we’ve got some must-hear audio that every Phish fan will want to add to their collection. Keep your eyes on this site for more information.
TaperWayne unleashes the latest uncirculated gem he’s transferred to the digital realm. While it’s listed as a soundboard, the engineer did seem to be testing equipment as he screws with the settings frequently. Regardless, this rare recording provides an interesting listen. – ScottyB
If you don’t have this ’94 soundboard in your collection, now’s your chance to add a recording of a fantastic set that includes a YEM sandwich with a Catapult filling and an encore featuring the Dave Matthews Band for a drum duel into a tasty jam into a cover of Daniel Lanois’ The Maker. – ScottyB
TaperWayne has lovingly combined all three sources of this classic and historic show in Phish History into one recording that fans of early Phish will flip over. Tons of guests on this one including Russ Remington, Nancy Taube and Bobby Brown. – ScottyB