PDA

View Full Version : Mini Mods - Add Radio Page to your site with last.fm! (radio.php)


mikey1991
10-03-2009, 10:00 PM
#################################
#/ Add Radio Page to your site with last.fm!
#################################
#/ 1] Upload radio.php
#/ 2] Import product_mikeylastfm.xml
#/ 3] Configure to taste
#/ 4] Enjoy!
#################################
#/ PARTNER SITES
#################################
#/ http://vbfans.com
#/ http://forum.vbulletinsetup.com
#/ http://wetalk.tv
#/ http://vbirc.com
#/ irc://irc.vbirc.com
#/ Love you guys! <3
#################################
#/ COPYRIGHT!!
#################################
#/ All the code (minus the last FM code)
#/ was coded by me (mikey1991) and it
#/ took me a while to do, all for free so
#/ while I realise that the base code in itself
#/ is not my property, I would appreciate my
#/ copyright notice is left intact.
#################################
#################################
#/ Demo: http://parlancia.com/forums/radio.php
#/ Screenies: See attachments.
#################################
#/ Please click installed.
#################################
#/ Excuse the ASCII, I was bored
#################################

Features:

Embeds a Last.FM Group playlist into your site, on a new page.
[BUGFIXED] Adds a navbar link option.
Adds "Info" fields next to the embedded player, customisable from the admincp
Adds links to your group on the same page.
[New in 1.0.1b] Adds Dropdown Menu Option
[New in 1.0.1b] Can now select user personal playlist
[New in 1.0.1b] Can now select artist similar artist playlist
[New in 1.0.1b] Group now clickable
[New in 1.0.1b] Multi Radio Player Ability (not reccommended)

Troubleshooting:

I get "Not enough content", why?

1] Are you logged into last.fm?
2] Does your group have more than 2 members and has it been up for more than a week?
3] Does the artist you've chosen exist?
4] Does the user you've chosen exist?

If you answered "no", to either of those, feel free to use my group (http://last.fm/group/parlancia), or try out a popular group/artist/user on last.fm.

Upgrading:

If upgrading from 1.0.0a, simply reupload radio.php, and overwrite it and upload the product.xml, overwriting it.

http://i35.tinypic.com/wqy4qp.png
http://i38.tinypic.com/2en8civ.png

Please click installed! If you really like this hack, please consider clicking the support developer link.

Floris
10-04-2009, 01:06 AM
Awesome, going to use this on wetalkmusic.net soon :) :)

You forgot the navbar dropdown! :p

SwollenCranium
10-04-2009, 01:14 AM
This is really restrictive since it only allows Group play.

Thanks anyway !!

mikey1991
10-04-2009, 01:20 AM
Awesome, going to use this on wetalkmusic.net soon :) :)

You forgot the navbar dropdown! :p

Added as addon :D https://vborg.vbsupport.ru/showthread.php?t=224508

This is really restrictive since it only allows Group play.

Thanks anyway !!

Well, now I have the basecode, I can make this work for a /user/ thing, I'll release that as an add on soon.

SwollenCranium
10-04-2009, 01:27 AM
Well, now I have the basecode, I can make this work for a /user/ thing, I'll release that as an add on soon.


Actually, as I investigate more into it the Group setting, while restrictive, is a usable idea for the time being.

Thanks.

mikey1991
10-04-2009, 01:41 AM
You're wlcome, please remember to mark as installed if you use :)

Brandon Sheley
10-04-2009, 02:14 AM
Looks great, can't wait to test it out!

* Brandon Sheley clicks install

ps.. I would love a "pandroa" version :D

ChopSuey
10-04-2009, 08:03 AM
This would be good for my Gaming site. Tagged.

WEBDosser
10-04-2009, 08:16 AM
interesting.. tagged

agitated
10-04-2009, 08:59 AM
I'm interested. *tagged* Great idea. Just tried it (I was logged in @lastfm) and it worked fine.

mikey1991
10-04-2009, 12:45 PM
ps.. I would love a "pandroa" version :D

Pandora is US only, so I can't get that code, but I'll see what I can do.

This would be good for my Gaming site. Tagged.

Sure thing.

interesting.. tagged

Thanks :)

I'm interested. *tagged* Great idea. Just tried it (I was logged in @lastfm) and it worked fine.

Good to hear!

SwollenCranium
10-04-2009, 12:55 PM
Possibly an issue with last.fm but I am unable to get this to work.

When I view the page on my forum it returns an error saying can not play this station.




https://vborg.vbsupport.ru/external/2009/10/64.jpg

Michael.A
10-04-2009, 01:12 PM
am saving this post for later..!

matthewhotdude
10-04-2009, 01:12 PM
Doesnt work, Have the same problem as swollencranium

and nothing shows up in the navbar

mikey1991
10-04-2009, 02:05 PM
Possibly an issue with last.fm but I am unable to get this to work.

When I view the page on my forum it returns an error saying can not play this station.


http://swollencranium.com/forums/picture.php?albumid=168&pictureid=2380

Your group (http://www.last.fm/group/The+Swollen+Cranium) has 2 members, and no plays. I'd think that's why there isn't enough content to play. This message could also occur if you're not logged into last.fm. Feel free to use my group (http://www.last.fm/group/Parlancia) and see if it plays..

Doesnt work, Have the same problem as swollencranium


No, it doesn't work for you, it DOES work, I've been USING it ever since I made it, I hate when someone comes in a thread and condemns something which I know to work.

The Navbar link should work, but if it doesn't, check out the add-on, where you can add the radio player as a drop down.

As for the "Not enough content", heres some troubleshooting:

1] Are you logged into last.fm?
2] Does your group have more than 2 members and has it been up for more than a week?

matthewhotdude
10-04-2009, 02:11 PM
Nevermind uninstalled no need to be an arse

mikey1991
10-04-2009, 04:46 PM
Nevermind uninstalled no need to be an arse

Sorry if I came across as that. Sorry you couldn't get it working.. I looked on your site and couldn't see the mod so I couldn't look at any errors.. Wing me a PM on your site and I'll take a look if you like (i'm mikey on there)

MagicThemeParks
10-04-2009, 05:35 PM
Gotta read into Last.fm and how that works (similar to Pandora?). I'd love to add this if there are enough theme park or Disney related tracks :up:

*tagged*

mikey1991
10-04-2009, 06:19 PM
Gotta read into Last.fm and how that works (similar to Pandora?). I'd love to add this if there are enough theme park or Disney related tracks :up:

*tagged*


I'm going to be making a version with pandora functionality if I can get the feed RSS code, pandora is US only, and I'm located outside of the US, so I can't get the code.

http://Last.fm/about

SwollenCranium
10-04-2009, 08:23 PM
1] Are you logged into last.fm?
2] Does your group have more than 2 members and has it been up for more than a week?


I was unaware of the time on target requirement.

Thanks for your help.

SwollenCranium
10-05-2009, 03:58 PM
Update :

This is now working for me but it took me buying a subscription, 2 days of waiting , 9 group members and over 100 songs played before Last/FM would aggregate my data into a recommended list.

I'm not sure if this is normal behavior for others.

mikey1991
10-05-2009, 05:54 PM
Update :

This is now working for me but it took me buying a subscription, 2 days of waiting , 9 group members and over 100 songs played before Last/FM would aggregate my data into a recommended list.

I'm not sure if this is normal behavior for others.


The song playcount and the waiting time and the members should be expected, the radio needs content to play it, however, my group was founded back in 07 and has thousands of plays, so I wouldn't know. As for the subscription, I'm not sure why that was needed, as it works fine for me..

Thanks for coming back and confirming it works though. I'm currently working on v1.0.1b

redlabour
10-07-2009, 10:30 PM
Awesome - BUT please phrase it completely:

Welcome to the

Join our Group!

Note, you may need a last.fm account, or be logged into last.fm to listen.

Feature Request:

It was nice if Users can add their own Channel at their UserCP and display it at their Profilepage and have a Last.FM Icon at Postbit (like Skype, ICQ and so on).

mikey1991
10-08-2009, 08:58 AM
Awesome - BUT please phrase it completely:



Why does it need phrasing, for so little phrases?





Feature Request:

It was nice if Users can add their own Channel at their UserCP and display it at their Profilepage and have a Last.FM Icon at Postbit (like Skype, ICQ and so on).

In the works.

redlabour
10-08-2009, 09:56 AM
Why does it need phrasing, for so little phrases?

Ever seen a Product with broken Languages across the Forums? :eek:

Every Product should take care of 2 Points for quality Reasons:

1. Product without any Fileedits.

2. 100% phrased.

And BTW - why should you not phrase them if they are so little phrases. ;)

talkncaasports
01-19-2010, 10:44 AM
installed, works great. Thanks.

mikey1991
01-29-2010, 08:17 PM
vB4 version released https://vborg.vbsupport.ru/showthread.php?t=234495

DynaMow
12-30-2010, 03:22 PM
all I get is its not compatable with 1.0.1a, needs higher.

so I go get 1.0.1b and it says same thing.