MyBB Community Forums

Full Version: Grooveshark MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I googled around some and couldn't find this anywhere so I took a shot at it. If someone can do this more efficient or this has already been posted then just close this thread. Just trying to help ;]

Regular Expression
\[groove\](.*?)\[/groove\]

Replacement
<object width="190" height="40"> <param name="movie" value="http://listen.grooveshark.com/songWidget.swf"></param> <param name="wmode" value="window"></param> <param name="allowScriptAccess" value="always"></param> <param name="flashvars" value="hostname=cowbell.grooveshark.com&widgetID=$1&style=metal&p=0"></param> <embed src="http://listen.grooveshark.com/songWidget.swf" type="application/x-shockwave-flash" width="190" height="40" flashvars="hostname=cowbell.grooveshark.com&widgetID=$1&style=metal&p=0" allowScriptAccess="always" wmode="window"></embed></object>

Usage
[groove] ID [/groove]

It uses a width of 190 but you can adjust it. Also anyone not familiar with grooveshark, you have to "export to widget" to get the ID from the URL.