Page 1 of 1

Last.fm widgets

Posted: Fri Aug 29, 2008 4:29 am
by rhacer
I happen to love music and Last.fm's widgets, so was surprised when their were no plugins for their widgets to be displayed.

I know very little CSS and next to no PHP, so I took the simplest plugin I could find (Creative Commons) updated everything that looked like it needed updating and created two new plugins one for the Music Quilt and one for the Recently Played.

They seem to work just fine, but I think there is likely a far better way to handle the HORRIBLE style-sheet, flash applet code that I simply dumped into a string that gets echoed.

Has anyone looked at the Last.fm widgets and could someone who knows a lot more about PHP than I do suggest a good way to clean up the horrible HTML they provide for embedding their widgets?

Re: Last.fm widgets

Posted: Fri Aug 29, 2008 9:30 am
by garvinhicking
Hi!

I think you shouldn't really need a unique plugin for last.fm, because their widgets are embeddable through simply flash/javascript - you can simply create a s9y html nugget plugin instance and paste the code into there.

I agree though that their CSS and embed code does look a bit ugly :)

Regards,
Garvin

Re: Last.fm widgets

Posted: Fri Aug 29, 2008 12:31 pm
by rhacer
garvinhicking wrote:Hi!

I think you shouldn't really need a unique plugin for last.fm, because their widgets are embeddable through simply flash/javascript - you can simply create a s9y html nugget plugin instance and paste the code into there.

I agree though that their CSS and embed code does look a bit ugly :)

Regards,
Garvin
Way to burst my bubble! ;)

I have wondered and wondered what possible use HTML nuggets were, and didn't even think about it here because I didn't understand the concept. Now that I read your post, everything clicks and I understand!