jump to navigation

How to Embed Grooveshark Widgets in WordPress.com January 4, 2011

Posted by ActiveEngine Sensei in ActiveEngine, Problem Solving.
Tags:
trackback

Readers of this blog will not that there many references to music, music that rocks. To share a secret, Sensei was once a band nerd. A drummer band nerd, the one that you never could sit next to during a test because Sensei could not stop tapping rudiments. To this day he is still shunned from meetings. Not a bad strategy when you want to leave and get things done!

Prior to 2010 ClearSpring made a widget that allowed you to insert a Grooveshark playlist or single song into a post. Here are a few different samples.  In 2010 they announced that they would no longer support the widget platform, and, well, the widgets would be going away.

Come 1/1/2011 all the songs on this blog were gone.  “What the …” you say.  “How come I hear music playing now?”  Well credit goes to Panos at WordPress Tips, who has a great post on how to use gigya code to embed flash objects into your posts.

Here are the steps you need to perform:

  1. Create your Grooveshark song widget.  This can be a playlist or a single song.  For our example we’ll do one song.
  2. Once you have saved your song, select “Get Embedded Code”.  Note that the url will read something similar to this:http://widgets.grooveshark.com/finished?widgetid=23332943The parameter widgetid is the code you’ll want to copy, as this links you to your song.
  3. Past the following code into your post:

Don’t forget to change the widgetID code to match the code of your widget.  You should see the result below:

For a playlist change your gigya code to match the following:

Comments»

1. blazt3r - January 7, 2011

Grooveshark says “No hotlinking please.” Pfff

ActiveEngine Sensei - January 7, 2011

But the widgets are still pretty sweet!

2. love lyrics - January 7, 2011

what this widget for?

ActiveEngine Sensei - January 8, 2011

The widget is the song player that Grooveshark offers so that you can place a song or song list on your blog. Here’s a link to Grooveshark widgets. I’ll update my post too.

3. Lu - January 30, 2011

Hi ActiveEngine! I want to put this widget on my blog [gigya src="http://listen.grooveshark.com/songWidget.swf" width="250" height="40" "hostname=cowbell.grooveshark.com&widgetID=24551684&style=metal&p=0" wmode="window"] and it works because i can see the player, but it shows “no song found” and can’t play anything. What’s wrong? Thank you.

ActiveEngine Sensei - January 30, 2011

Looks like you have two issues:

First, you need to have flashvars= before the “hostname=cowbell.groove … So you should end up with:

[gigya src="http://listen.grooveshark.com/songWidget.swf" width="250" height="40" flashvars="hostname=cowbell.grooveshark.com&widgetID=24551684&style=metal&p=0" wmode="window"]

Second issue is your widgetID. Are you sure it’s correct? I tried in my widget and it says song not found. To make sure you are doing things correctly make a widget and use the widgetID from the song that I used as an example. That way you know that you have working widget and then you can figure out if you have the incorrect id. Hope this helps.

Lu - January 31, 2011

Yes, that’s helped me! Now the widget is working, and i can hear the song. Two issues resolved, I was writing the songID instead of the widgetID. Thank you so much 🙂

ActiveEngine Sensei - February 2, 2011

Cool. Glad it worked out. If you are looking for other ideas for embedding items in your post visit the WordPressTips link I listed above. Panos has some real good posts.

4. Lu - February 5, 2011

Sure! I’ve saved his blog. Thanks!

5. bloggingblacklines - February 9, 2011

Can you make a text version of the gigya code for embedding playlists? How am I supposed to copy and paste this code if its an image not text?

ActiveEngine Sensei - February 9, 2011

I tried to but couldn’t get the code format correctly for the post. You can always view the html source for the page and grab the code from there.

6. new-girl-on-the-blog - February 18, 2011

I found your tips very helpful, thanx a lot!!

ActiveEngine Sensei - February 19, 2011

Glad they’re of use. Music does add a good flavor to posting and for a while I was worried I would lose a lot of my theme songs. Spread the word and enjoy.

7. arielle royer - March 2, 2011

I have the code correct, but I am confused as to where to put the code in my html post. do i just post it as is?

[gigya src="http://listen.grooveshark.com/songWidget.swf" width="250" height="40" flashvars="hostname=cowbell.grooveshark.com&widgetID=24551684&style=metal&p=0" wmode="window"]

…when i do that, nothing displays. or do i need to add a first?

thanks!

ActiveEngine Sensei - March 2, 2011

arielle,

I think you have an issue with the id. You try this link to verify:

http://widgets.grooveshark.com/finished?widgetid=23332943

This is a direct link to the Kindred Spirit widget I have on GrooveShark. When I substitute your widget id – 24551684 – I don’t get the song and the widget information is blank. Check that you saved your widget and that you got the embedded code as I described.

Let me know if you need more help and I can try to send you screen shots.

If all else fails, you can always just use my widget play DreamTheater 🙂

8. arielle royer - March 2, 2011

*do i need to add a first?

9. devotedhastings - March 3, 2011

thanks, very helpful. i used this code for a songlist

[gigya src="http://listen.grooveshark.com/widget.swf" width="250" height="201"
flashvars="hostname=cowbell.grooveshark.com&widgetID=23408572&style=metal&bbg=993937&bfg=B81207&bt=5AA3A&bth=9939937&pbg=5AA3A0&pbgh=B81207&pfg=993937&pfgh=5AA3A0&silbg=5AA3A0&lbgh=B81207&lfg=993937@lfgh=5AA3A0&sb=B81207&p=0" allowScriptAccess="always"
wmode="window"]

ActiveEngine Sensei - March 13, 2011

Awesome. Another tip for you – if you set p=1 in the section “B81207&p=0″ allowScriptAccess=”always” the song will start automatically when your browser loads the page. Glad this worked out for you.

10. Doomradion « doomionista - March 29, 2011

[…] kom lösningen. Extremt doomtack till Panos på WordPress tips som hade lösningen och till ActiveEngine som pekade mig rätt. You guys are […]

11. Jonathan Castro (Bejoyfulsoul) - April 15, 2011

Hello, can anybody help? it seems not to be working for me, I am not sure what I could be doing wrong, I get the error: “embed_shortcode: is not a valid URL” when I preview the post. thank you

ActiveEngine Sensei - April 17, 2011

Can you send the entire code you’re trying – it makes it easier.

Jonathan Castro (Bejoyfulsoul) - April 17, 2011

ok now I just tried to do it again and when previewed I was able to see the gs box but empty, with no play button or song (at least im not getting the error msg anymore… I’m trying [gigya src="http://listen.grooveshark.com/songWidget.swf" width="250" height="40" flashvars="hostname=cowbell.grooveshark.com&widgetID=23436989&style=metal&p=0" wmode="window"]
thanks again

Jonathan Castro (Bejoyfulsoul) - April 17, 2011

I actually got it now! I think i just placed the wrong widgetID, thank you!

12. Matthew Hall - June 3, 2011

Is there anyway to embed a multitrack playlist (that you can forward from song to song) into a blog post?

ActiveEngine Sensei - June 3, 2011

Just make your widget with mulitple songs @ GrooveShark. The widget at the bottom of the post is a multiple track widget. It’s all done at GrooveShark.

13. Escuchemos Música « Usuario Root - June 19, 2011

[…] Publicado junio 19, 2011 Música Deja un Comentario Bueno, ya que por fin aprendí como empotrar un widget de Grooveshark en WordPress, este post va dedicado a un grupo llamado Tanimura Midnight. Digo grupo pero en […]

14. tunahan149 - June 23, 2011

hi
when i click http://widgets.grooveshark.com/finished?widgetid=23332943 this link adress changes and becomes http://widgets.grooveshark.com/
is something changed with grooveshark? I copied the html code but there is no song. thank you for your help sensei

ActiveEngine Sensei - June 23, 2011

I am answering via iPhone and can’t verify if this a GrooveSkark issue. Can you try the songs on Pay the Rent with Rock page? If those work then the issue is with your code. I’ll take a look later on when I have my laptop in frot of me. Thanks in advsnce if this turns out to be a GrooveShark issue.

tunahan149 - June 24, 2011

hi I can hear the first and last music but I couldnt hear the others.
May be there is a problem with my widgetID but I am writing what I see at the browser
my code is
[gigya src="http://listen.grooveshark.com/widget.swf" width="250" height="201"
flashvars="hostname=cowbell.grooveshark.com&widgetID=55789963src=5&style=metal&bbg=993937&bfg=B81207&bt=5AA3A&bth=9939937&pbg=5AA3A0&pbgh=B81207&pfg=993937&pfgh=5AA3A0&silbg=5AA3A0&lbgh=B81207&lfg=993937@lfgh=5AA3A0&sb=B81207&p=0" allowScriptAccess="always"
wmode="window"]
and what I see at the browser is http://grooveshark.com/#/playlist/Dsea/55789963 so I write as widgetID 55789963
Thank you for your help sensei

ActiveEngine Sensei - June 28, 2011

Sorry I haven’t responded. I take a look this evening.

15. iri - June 26, 2011

Unfortunately, they closed the site to create a widget. And the html code they give you on grooveshark. com doesn’t work with wordpress.com 😦 By chance, do you know an alternative way to embed the html code that you find on grooveshark. com on a post (I’m talking about wordpress.com, the free one, and a single song in a single post.)
p.s. Excuse me if I haven’t explained myself clearly, I’m Italian and my English is dreadful.

ActiveEngine Sensei - June 28, 2011

I’ll haves to research this a bit this evening. You and tunahsn149 may have discovered something that affects the widget creation. The strange thing is that my current songs still play. I’ll let you know what I find out.

16. iri - June 28, 2011

Hi, tank you so much for answer me. Yes, the same thing is happening on my blog. I can still hear the songs embedded in the ‘old way’
Anyway, a guy from the wordpress.com forum suggested me this solution:
– Go to grooveshark.com and copy the widget code of the song you want to embed (you can find it by clicking in the “sharing” button of the song)

– Now, from the original grooveshark widget code, cut the part which begins with the word “hostname” and ends with the word “window”.

-Paste the part you cut in the following gygia code, replacing the three XXX

[gigya src="http://grooveshark.com/songWidget.swf" type="application/x-shockwave-flash" width="250" height="40" flashvars="XXX" ]

– Embed on your blog editor (not in the html page) the final result.

And it works. Or at least, it partially works. I mean, that with the old ID song’s number that I was used to get in the now closed site, I was able to embed as many songs I wanted into a single post, without any problem. Now, if I embed more than 2 songs the buffering never ends. I’m not expert, but I think it’s because the ID song’s number featured in the widget code you can get from grooveshark.com is different from the one that was featured in the code that I used to get in the closed widget website.
We are talking about it on the forum:
en.forums.wordpress.com/topic/embed-grooveshark-widget-into-a-post?replies=6#post-635169
(I omit the Initial http:// because I don’t know if links are allowed here)
If you find out something better, please let me know.
Bye, and and forgive me If I haven’t explained myself clearly.

ActiveEngine Sensei - June 28, 2011

Thanks for the research. I’ll try this out and see what happens.

ActiveEngine Sensei - June 29, 2011

I did some experimentation and found that code from GrooveShark now uses songId instead of widgetid. I used that instead and the widget seemed to work. I have to play with this some more before I update my instructions. Thanks again for contacting me – your research has really helped out.

Andrés Rojas - December 15, 2011

Thanks, this actually works amazingly fine 🙂
Working here:

Ya no soy lo suficientemente joven…

17. iri - June 29, 2011

You’re welcome, and excuse me again for any mistakes, as I said, my english is something poor. XD I’ll check your site to see if you find a better solution. Bye, and thank you.

18. Agustín - July 7, 2011

The only thing you’ve to do is change “widgetID=” to “playlistID=” (playlist widget) or “songID=” (song widget). Here’s mine:

[gigya src="http://listen.grooveshark.com/widget.swf" width="200" height="250"
flashvars="hostname=cowbell.grooveshark.com&playlistID=56487835&bbg=3b2a19&bth=3b2a19&pfg=3b2a19&lfg=3b2a19&bt=bd934f&pbg=bd934f&pfgh=bd934f&si=bd934f&lbg=bd934f&lfgh=bd934f&sb=bd934f&bfg=d9d8d5&pbgh=d9d8d5&lbgh=d9d8d5&sbh=d9d8d5" allowScriptAccess="always"
wmode="window"]

ActiveEngine Sensei - July 7, 2011

Aweaome! I have to update the post to reflect this. Thanks!

Agustín - July 10, 2011

You’re welcome!

19. AngelaAR - July 11, 2011

waoo that was really helpful…and all the comments end up helping me build my grooveshark playlist widget…thanks =D

[gigya src="http://listen.grooveshark.com/widget.swf" width="250" height="201"
flashvars="hostname=cowbell.grooveshark.com&playlistID=51379082&bbg=2ba66f&bth=2ba66f&pfg=2ba66f&lfg=2ba66f&bt=FFFFFF&pbg=FFFFFF&pfgh=FFFFFF&si=FFFFFF&lbg=FFFFFF&lfgh=FFFFFF&sb=FFFFFF&bfg=666666&pbgh=666666&lbgh=666666&sbh=666666&p=0" allowScriptAccess="always"
wmode="window"]

20. mysteria85 - July 20, 2011

Really really helpfull! Thanks a lot! ^^

Lista de música: baladas del metal gótico y sinfónico

ActiveEngine Sensei - July 20, 2011

Glad this helped. I really struggled when I couldn’t include music with my posts and once I discovered how to keep it rolling I wanted to spread the word. Feel free to borrow these instructions and post a “how-to” on your blog so we can spread the GrooveShark love.

21. Hivemind - August 6, 2011

I host WordPress on my own server, if I edit a post in html mode and paste any of your code it will be displayed on the blog later on only as plain text, no widget is loaded at all.
If I used the code Groovershark provides me there is just a blank field, looks like the JS won’t load

How can I fix this or do I need to install any plugin?

ActiveEngine Sensei - August 6, 2011

The standard Grooveshark widget can work with WordPress hosted on servers. In other words, WordPress.com requires the use of the gigya code, where as your own WordPress setup should be able to use the embedded for WordPress that Grooveshark provides. My post is just for the WordPress.com blogs and is not meant for your situation. Since you are hosting yourself I would imagine that you have greater flexibility.

If you don’t mind my asking, why did you elect to hosting WordPress yourself?

22. iri - August 6, 2011

@Hivemind: Sorry if I’ve misunderstood, my english is not perfect. I don’t know about servers, but remember that the modified code must be paste not in the html page but as a normal text. At least with wordpress.com it works.

23. Kinder - August 22, 2011

Great post man, it really helped me out. I was getting crazy cause anything seemed to work. The post was really helpful! Cheers 😀

24. peppersasen - December 19, 2011

awesome! thanks.

ActiveEngine Sensei - December 19, 2011

Go forth and embed your widgets!


Leave a reply to Kinder Cancel reply