Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Grooveshark MyCode
#1
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
Code:
\[groove\](.*?)\[/groove\]

Replacement
Code:
<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
Code:
[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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)