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"; } } ?> Hidden Track | YEMblog - Page 2

    Hidden Track RSS

    December 23, 2011

    Video: Footage of the Seventh Reba Phish Ever Played Surfaces [Hidden Track]

    December 22, 2011

    Kangfirm’d: Promoter Confirms Phish Summer Tour 2012 In The Works [HT]

    December 19, 2011

    Books: Writer’s Workshop – Mr. Miner (a.k.a. Dave Calarco) [Hidden Track]

    December 14, 2011

    CK5: Chris Kuroda Added to Jam Cruise 10 [Hidden Track]

    December 13, 2011

    Webcasts: Phish To Offer Pay-Per-View Webcasts of MSG NYE Run [Hidden Track]

    Continuing a trend started last New Year’s Run, Phish is once again teaming up with Nugs.net to offer Pay-Per-View broadcasts of all four NYE Run shows set to take place at Madison Square Garden on December 28-31. If you look at the LivePhish page for the MSG shows, you’ll see a link for a $55 four-day pass marked as “Live Video.”

    Features: A Conversation with HT and YEMblog’s Scott Bernstein [KickShuffle]

    That leads me to my next question – what advice would you give to up and coming bands?

    Put on a great live show and make each performance interesting. Gain an audience by becoming a great live act and then those fans will buy your studio efforts. You don’t need to be a jam band to change your setlist every night. And don’t undervalue  Spotify. Ask your fans to add your music to their shared playlists. I’ve discovered plenty of acts that way in 2011.

    December 12, 2011

    Cactus: Mike Gordon Finally Brings In The Dude in Albany [Hidden Track]

    December 11, 2011

    Cactus: Mike Gordon @ Calvin Theatre Northampton, MA Setlist and Recap [HT]

    December 10, 2011

    Cactus: Mike Gordon @ The Met in Pawtucket – Setlist & Recap [Hidden Track]

    December 9, 2011

    Remembrances: Best Jam Ever? Albany YEM [Hidden Track]

    December 8, 2011

    Lists: 10 Best Archival Releases of 2011 [Hidden Track]

    December 7, 2011

    Tickets: Phish Announced MSG Re-Release Minutes Before It Happened [HT]

    Interviews: Catching Up with Mike Gordon – Pt. 2 [Hidden Track]

    Brian Bavosa: Your band played two shows in November, how did it go?

    Mike Gordon:  It was a whirlwind of activity getting ready and hitting the road for our first weekend in six months. There was a certain smoothness of intention which felt great in the first set – like instead of the music playing itself, our souls played themselves, or at least mine did. That may sound strange but that’s how it felt. There was a relaxedness and a tightness despite it being fresh, and it was also great to have a few new songs, including an epic cover and a new original, Sideways. That one in particular felt smooooth – it’s almost reggaeish, and yet dimented enough such that I don’t know what it is… A simple, haunting little ditty about the world on its side. Or something… Very cool to rehearse something and try so many subtle variations of groove and approach – tight vs. loose, repeating vs. improvised – and then remembering that it’s only on stage that the final element walks in the door – the magic.

    November 30, 2011

    New Year’s Runs: Phish New Year’s Run – Eternal Joy & Never-Ending Splendor [Hidden Track]

    Nobody ever really knows what to expect when it comes to Phish, especially come New Year’s, but today we’ll take a look at history to highlight some of the great moments in years past and assess how similar elements could play out during this year’s festivities.

    November 25, 2011

    2012Phish Won’t Return to Watkins Glen Next Year [Hidden Track]

    Phish front man Trey Anastasio threw fans for a loop earlier this year, when he told Rolling Stone that 2012 would be, “a less busy touring year” for the group. What 2012 will hold for Phish hasn’t become any clearer since the publication of that article in June, but we do now know of one event that won’t take place – a return to Watkins Glen International race track. Track official Ryan Lake told local paper The Leader that, “we are a motor racing facility and have decided to focus on our racing events, as well as the wine festival, in 2012.” [Article via@Pete716 Tweets – Pt. 1Pt.

    November 22, 2011

    Video: Phish Shares Official Video of Halley’s Comet From Hampton ’97 [Hidden Track]

    November 21, 2011

    Hampton / Winston-Salem ’97: HWS ’97 Release Party to Feature Archival Video Presentation [HT]

    November 17, 2011

    Lists: 10 Notable Changes in the World of Phish Since Bittersweet Motel [Hidden Track]

    6) Digital Cameras: The gag with Brad Sands intentionally cutting the heads off of fans seeking photos with the band members would never fly in the binary world. Since Bittersweet Motel, not only have we lived through the popularization of digital cameras, but now the majority of concertgoers have one on their phone.

    November 15, 2011

    Cactus: Review – Mike Gordon Band @ Portsmouth Music Hall [Hidden Track]

    After an initial run through the song, the improv that developed quickened with a pace and fury that left my jaw on the floor. While I shudder to think that I can’t make it out of my first comments without making a comparison to Phish, this jam found a space that harkens back to truly great You Enjoy Myself jams. At one point Mike even settled into a groove that some might argue was a direct nod to Phish classic. Sonic vibrations blasting the bodies in the front rows, it was hard to NOT be blown away.

    Audio: Listen To This – Mike Gordon Debuts Sideways [Hidden Track]

    November 9, 2011

    #fscalpers: Phish Fan Uses Twitter to Get Band’s Attention on Scalpers [Hidden Track]

    November 7, 2011

    Trey: Trey Anastasio Enters Studio with Peter Katis [Hidden Track]

    To update a story we first reported in September, Phish guitarist/vocalist Trey Anastasio has just entered the studio with acclaimed producer Peter Katis (Interpol, Fanfarlo, Frightened Rabbit) to work on a new solo album. According to Katis, Trey is setting out to do “something totally out of left-field for him.” While it isn’t clear yet whether this album, which is due out next year according to Katis’s management firm, will feature all of his current TAB septet, Natalie Cressman revealed on Twitter that she will be taking part in the sessions.

    Covers: Yonder Mountain String Band Covers Sand – Audio / Video [Hidden Track]

    November 3, 2011

    Interviews: Catching Up With Mike Gordon [Hidden Track]

    It’s easier with Phish to jump back in because we have the 28 years of experience and I guess that’s what also makes it fun with my solo band is because we don’t have that, we end up throwing caution to the wind and it’s even more unexpected from not having so much history. But with Phish, I know there’s a consistency that is going to be there – these days anyway. I know it’s gonna feel good. I know that when we play four nights, there’s going to be a couple of those that I really love, or certain sets, so there isn’t really any trepidation going into it.

    October 31, 2011

    Hampton ’97: Stream/Download AC/DC Bag -> Slave to the Traffic Light from new release [HT]

    October 29, 2011

    MSG Tickets: Poll – How Did You Do? Did You Score Phish Tickets? [Hidden Track]

    October 27, 2011

    Audio: Sample Mike’s > Hydrogen > Weekapaug from Hampton / Winston-Salem ’97 [Hidden Track]

    October 26, 2011

    How Did You Do?: Survey and Open Thread – Phish MSG NYE Tickets [Hidden Track]

    October 22, 2011

    Cactus: Marco GRABs Mike Gordon For Burlington Guest Spot (VIDEO) [Hidden Track]

    Phish bassist Mike Gordon has been making the most of his time off from touring by sitting in with jam stalwarts the Spin DoctorsJackie Greene and now old pal Marco Benevento within the past few weeks in his hometown of Burlington. Marco, along with bassist Dave Dreiwitz and drummer Andy Borger, is smack dab in the middle of a four-week residency at Burlington’s Radio Bean coffeehouse and invited Cactus out for the start of the second set. Gordon replaced Dreiwitz for a jazzy version of Green Onions (Booker T. and the MGs) and Benevento’s intense cover of Deerhoof’s Twin Killers that included teases of Rhapsody In Blue and Bathtub Gin.

    October 20, 2011

    Editorials: Pop The TAB and Drink It Up [Hidden Track]

    Funny how often the best things in the world of Phish and the Trey Anastasio Band, affectionately known as TAB, simply go unnoticed. In chatting this past weekend with Hidden Track Editor extraordinaire, Scott Bernstein, about HT’s 5th Anniversary and the 1st of Postcards From Page Side, we were both scratching our heads on the lack of TAB coverage from this mini-tour that just wrapped up, making this week’s column a no-brainer as to what to cover. I caught one TAB show this tour, on the eve of my 31st Birthday, with a large crew of friends at Montclair, New Jersey’s Wellmont Theatre.

    October 18, 2011

    Cactus: Video – Mike Gordon Sits In with Jackie Greene For Sugaree [Hidden Track]

    October 17, 2011

    Live Phish: Phish to Release Hampton / Winston-Salem ’97 [Hidden Track]

    When discussing the Holy Grail of Phish shows stuck inside the band’s vault, the Hampton ’97 performances and Big Cypress are usually towards the top of most fans’ lists. On December 6, Phish fans will finally get to hear the Hampton ’97 performances in all their Fred Kevorkian-mastered soundboard glory when JEMP Records puts out Hampton / Winston Salem ’97. The wonderful kicker is that the band has attached the severely underrated November 23, 1997 show to this seven-CD set that will also include never-before-heard soundchecks.

    Cactus: Mike Gordon Sat In With The Spin Doctors [Hidden Track]

    October 14, 2011

    Trey Anastasio: New Trey Musical To Debut in April [Hidden Track]

    October 11, 2011

    New Year’s Eve: Phish New Year’s Run at Madison Square Garden 12/28 – 12/31 [Hidden Track]

    HT faves Phish will return to Madison Square Garden for a four-night New Year’s Run in New York City on December 28-31. This marks the jamband’s sixth New Year’s Eve show at the newly renovated venue and 20th – 23rd Phish shows ever at the storied arena.

    Competitions: Cover Wars – While My Guitar Gently Weeps [Hidden Track]

    Update: Phired? Lauren Ober out at Seven Days [Hidden Track]

    October 6, 2011

    Lists: The B List – Nine Phish Song Title Swaps [Hidden Track]

    4. Microdot -> Mike’s Song

    Most tunes written at the beginning of Phish’s career were penned by Anastasio, so when bassist Mike Gordon brought a song to the band they simply called it “Mike Wrote That” or “Microdot.” Trey announced this original title from stage on October 17, 1985 and at some point shortly after that the title morphed to Mike’s Song. The rest, as they say, is history.

    October 5, 2011

    Audio: Stream Trey Anastasio’s Two New Tunes [Hidden Track]

    October 3, 2011

    Burlington: Trey Anastasio Band @ Higher Ground Setlist & Recap [Hidden Track]

    September 29, 2011

    Cactus: Mike Gordon Band Tour Dates – Five Fall Shows [Hidden Track]

    September 22, 2011

    Editorial: My Old Home Place – A Vermont Benefit [Hidden Track]

    September 19, 2011

    Trey Anastasio: TAB Adds A Pair of Shows, Including Flood Benefit [HT]

    Trey Anastasio has added two solo shows to his forthcoming fall tourincluding a Vermont Flood Recovery benefit. On October 1, Trey’s seven-piece will return to the Higher Ground in South Burlington, Vermont for a show in which proceeds will go towards The Waterwheel Foundation and The Vermont Community Foundation. Also, TAB will make their Baltimore debut on October 8 at Ram’s Head Live in the Inner Harbor.

    Essex: Picture Show – A Phish Homecoming [Hidden Track]

    September 16, 2011

    Essex: Phish Raises Over $1.2 Million For Vermont [Hidden Track]

    Phish has just posted a note on their official website thanking the dozens of companies that helped them throw Wednesday’s benefit for Vermont Flood Relief Efforts and also mentioned that the show in Essex Junction raised in excess of $1.2 million (!!) for the cause.

    September 15, 2011

    Essex: Phish Returns to Green Mountain State [Hidden Track]

    [Photo by Parker Harrington]

    In an extraordinarily low-key pre-show parking lot scene that was more akin to a family picnic than a rock show or typical Phish event, warm embraces and friendly conversation prevailed. Seemingly, most of the 8,000 tickets sold in Vermont stayed with Green Mountain Staters. The fairgrounds certainly felt like the local hometown show that it was. At the sole entrance to the venue, security and ticket takers greeted many of the incoming attendees by name. Regardless if they knew you or not, they were certainly more intent on welcoming you, smiling at you, and treating you to true Yankee hospitality than they were to bother with checking anything other than your ticket.

    Vermont Flood Relief: How To Get Involved [Hidden Track]

    September 13, 2011

    Apps: Live Phish App Now Available For Android [Hidden Track]

    September 12, 2011

    Video: Phish Back On The Train Hollywood Bowl 8/8/11 Kuroda Cam [Hidden Track]

    September 9, 2011

    Couch Tour: Vermont Flood Benefit To Be Webcast [Hidden Track]

    September 8, 2011

    Retrospective: Phish’s Storied History of Generosity [Hidden Track]

    Phish has a long history of giving back to not only the communities that they play in, but also to causes that are near and dear to many a fan’s heart. Though full blown benefit shows are few and far between, Phish philanthropy is well known. While history dictates that you will have about as much success predicting winning lottery numbers as you will a Phish setlist, it is nonetheless interesting to look back at previous benefit shows. Regardless of what goes down next week at the Champlain Valley Exposition, it is clear that the fans are in for a treat and that the state will benefit extraordinarily from another Phish philanthropic effort.

    Trey Anastasio: Trey Anastasio to Head Into The Studio With Producer Peter Katis in November [Hidden Track]

    We came across an article profiling Katis today in Sonicscoop that mentions the coming collaboration and describes the future project as “out of left field” for Big Red. Nothing could make us happier than to hear Trey tackle something completely unorthodox for him. How about some freestyle rapping or klezmer music? We hear dubstep is pretty popular these days as well.

    September 7, 2011

    Why We Love Still Love Phish: Keeping It Fresh [Hidden Track]

    For any Phish fan, the question they undoubtedly are asked time after time is some variation of “You’re going to see them again?” or “Don’t they play the same stuff?” or “Aren’t you sick of them by now?” While the polite reply may be to smirk whilst trying to gently explain that the band is always spontaneous and unpredictable, and never plays the same thing twice, you are probably thinking that this person is simply missing out on the ride of lifetime. Now, I am not trying to slam any non-Phish fan, but wanted to take a closer look into why we continuously do what we do and how the band manages to keep reeling us in and keeping things fresh after nearly 30 years.

    September 6, 2011

    Denver: Review – Phish Smokes Dick’s in Denver [Hidden Track]

    Ghost was far and away the most energetic, well executed, and exciting tune of the weekend. Though it was fairly short, the build-up was purely organic. A quick tease of Oye Como Va paid tribute to Carlos Santana’s performance a few miles away at the Red Rocks Amphitheatre, and led perfectly into Guy Forget, during which Gordon and Anastasio exchanged numerous smiles and laughter on stage. Even though it seemed like most people didn’t know the song being played, the excitement was palpable as they dropped back into Ghost to close out the tune. Walls of the Cave was an interesting choice to end the set, but it proved to be worthy of the spot as Anastasio again took the reigns and rode right to the top.

    September 5, 2011

    Denver: Phish Dick’s Sporting Goods Park Night Three – Setlist, Recap and Skinny [Hidden Track]

    While we usually point you in the direction of certain songs/jams to hear in this recap, just listen to it all – especially the second set – as Phish put one hell of an exclamation point on this tour. Let’s hope a New Year’s run is in the works before the quartet embarks on a less active year in 2012.

    September 3, 2011

    Denver: Phish Denver Dick’s Sporting Goods Park Night Two – Setlist, Recap and The Skinny [HT]

    Photos: Phish Denver Photos from Dick’s Sporting Goods Park [Hidden Track]

    [Photos by Jason Woodside]

    August 29, 2011

    Commerce City: Phish To Webcast Three-Night Tour Closer [Hidden Track]

    Great news for those of us unable to make it to Colorado for this weekend’sPhish shows – the band will webcast all three shows through LivePhish.com. You can purchase a three-day pass for $34.99Single-day passes are also available for $14.99 each. The performances take place Friday, Saturday and Sunday at Dick’s Sporting Goods Park in Commerce City, Colorado and cap off Summer Tour 2011.

    August 17, 2011

    Phish: 08/15/2011 Undermind [VQ: A+, AQ: A+, Pro-Shot]

    Chicago: Phish UIC Pavilion Night Two – Recap, Setlist and Skinny [Hidden Track]