Monthly Archive for April, 2008

Live in NYC! 24 April 2008 @ Tank

Splice + Warper event at Tank NYC

I’m happy to that I’ll be doing my gp2x and gba visuals as Voltage Controlled:

What: Splice + Warper OVERLOAD! A night of awesome music and visuals.

Who: 15+ Musicians and Visualist including: Glomag, Honeychild Coleman, ( ) with Zemi 17 and Dok, Peter Kirn, Grey Thing, The Dream Machine by Sandrine, Freebass, _Vector Zero, !INCLUDE/The Sperm Whale, Bubblyfish, Secretary feat. Big Boss, I Synthesist, ATOM.

Where: The Tank NYC, 279 Church St b/t Franklin and White.

When: 7 PM - 1 AM

More info: info@warperparty.com and splicenyc.org

UPDATE: Get in for only $7 (instead of $10) by sending your name to rsvp@djshakey.com by 4 PM on 4/24/08 - pretty cool, right?

Adding Javascript to the WP e-commerce plug in

Lately I’ve been really loving WordPress as more than just blogging software.

Many people need a solution for collaborative website authoring - maybe a combination of static pages and blog posts. They want image galleries, music or video, and other functions and the good news is that WordPress can handle it quite well and still remain easy for people to use. In contrast, as powerful as it is, recent experiences showing non technical folks how to use Drupal (which I really like by the way) - showed me that it was too overwhelming for some users (no flames please - just my experience!).

Anyway… having decided to get a few users up and running with WordPress as a CMS, I decided to look into e-commerce solutions. Because WP is so popular I think we can expect to see more solutions in the future, but for now… there’s not much.

I decided to try out the plug in from from Instinct. This plug in comes in two flavors, free and Gold. I installed version 3.6 RC2 of the free version. At this point, I’m not sure if I will actually use this plug-in but in my limited testing it seemed to work fine. It’s fairly basic - definitely more basic then say OSCommerce but has the advantage that it’s already integrated into WP. In testing, I ran into one small issue which I will discuss here in case anyone else has the same problem and wants a fix.

Problem: I wanted to add JavaScript to the field holding additional product information:

adding JavaScript to a product description

The problem is that this field is processed so that it looks pretty and thus, code breaks.

Solution: I modified the file product_display_functions.php making one small change.

On about line 610 you will find

$output .= nl2br(stripslashes($product['additional_description'])) . “”;

The function nl2br converts newlines to HTML br tags - so we just remove that like so:

$output .= stripslashes($product['additional_description']) . “”;

and that was it.

I can now put JavasScript code into the Additional Description field.