Current time: 04-23-2014, 07:08 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Grooveshark MyCode
09-15-2009, 09:47 PM (This post was last modified: 09-15-2009 10:12 PM by Upem.)
Post: #1
Grooveshark MyCode
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication