PDA

View Full Version : Profile Enhancements - Audioscrobbler integration with user profile


buro9
06 Dec 2004, 15:34
No longer supported by the author.

buro9
06 Dec 2004, 15:35
Oh, and if you do install it... please click "Install" as I will send updates if any major changes are made :)

buro9
09 Dec 2004, 19:40
Oh, and if you do install it... please click "Install" as I will send updates if any major changes are made :)
Hmmm... no installs.

For those of you who have music related forums, etc... is there something that you think I'm missing? Or is it the dependency on PEAR modules that puts you off?

If people don't want this... cool... but if people do want this and just don't like my implementation, please feedback how you'd like such a thing to work and I'll consider changes, etc.

weirdpixels
09 Dec 2004, 21:25
Well just found this hack got to say it looks promising, only problem is I can't install those PEAR modules on my server, since I am on a shared server, so I can check out this hack :(

buro9
09 Dec 2004, 21:31
Well just found this hack got to say it looks promising, only problem is I can't install those PEAR modules on my server, since I am on a shared server, so I can check out this hack :(
Well PEAR modules are usually installed as part Cpanel or something.

But you can download them from the PEAR site (links provided in hack), and then place them where you wish and just modify the two lines that are commented as including the PEAR files.

PEAR modules are merely .php files, so there's no problem in installing them... it's just that normally you have a global install and everything points at them... meaning you don't have to worry about keeping them up to date, etc. But copying them relative to the hack will also work too :)

buro9
09 Dec 2004, 21:31
Well PEAR modules are usually installed as part Cpanel or something.

But you can download them from the PEAR site (links provided in hack), and then place them where you wish and just modify the two lines that are commented as including the PEAR files.

PEAR modules are merely .php files, so there's no problem in installing them... it's just that normally you have a global install and everything points at them... meaning you don't have to worry about keeping them up to date, etc. But copying them relative to the hack will also work too :)
Oh, and the two lines are within the audioscrobbler.php file :)

weirdpixels
09 Dec 2004, 21:40
thanks, will try it out tomorrow and let you know how i get on :)

buro9
09 Jan 2005, 17:02
Moved it to full release. It's been running on my server now for over a month with no issues :)

SecTa
16 Apr 2005, 22:18
This hack is exactly what i need for my forum! Many thanks for your work, buro9!
However, some help required.
I need to check this hack on my localhost test forum install. I used WAMP (http://www.wampserver.com/) for installation on windows. Can you explain me how to install those two components, required for your hack to work?

buro9
16 Apr 2005, 23:16
If you don't have any PEAR components installed then you should download the PEAR installer.

It's rather simple... go to this URL:
http://go-pear.org/

And save that text as go-pear.php on your desktop.

Then open a CMD line window and do:
php go-pear.php

This is documented on the PEAR site here:
http://pear.php.net/manual/en/installation.getting.php

And then you can use their command line installer to install the packages:
http://pear.php.net/manual/en/installation.cli.php

Then you can run the following from the command line:
pear install <package>

Where <package> is XML_RSS and CacheLite

Most shared hosts have PEAR installed, and PHP installs Pear too... so you might actually just want to check whether PEAR is already installed ;)

buro9
16 Apr 2005, 23:21
Ah WAMP doesn't include PEAR, but...

This thread on the WAMP forums suggest just getting go-pear and dropping it into your wamp\php directory:
http://www.wampserver.com/phorum/read.php?f=2&i=781&t=777#reply_781

rossco_2005
26 Jul 2005, 23:11
I'm trying to install this hack, but don't understand how to install the PEAR packages...
I downlaoded the xml_rss package and cache_lite package and extracted the files, modded audioscrobbler.php to include the files from that folder, but then it says:

"Warning: main(XML/Parser.php) [function.main]: failed to open stream: No such file or directory in \XML_RSS\RSS.php on line 23"

which wasn't included in the xml package.
What do I do?

buro9
26 Jul 2005, 23:30
I'm trying to install this hack, but don't understand how to install the PEAR packages...
I downlaoded the xml_rss package and cache_lite package and extracted the files, modded audioscrobbler.php to include the files from that folder, but then it says:

"Warning: main(XML/Parser.php) [function.main]: failed to open stream: No such file or directory in \XML_RSS\RSS.php on line 23"

which wasn't included in the xml package.
What do I do?

Does your host not have PEAR installed? Quite a lot do, cPanel servers come with it out of the box and I would suspect that other hosts also supply it.

I've just had a look at the PEAR pages, and it seems that XML_RSS depends on XML_Tree which depends on XML_Parser which depends on PEAR.

It might take a while to attempt to build a list of all of the dependencies. If you can let me know whether PEAR is available on your server I'll look at whether it is feasible to package all of the required PEAR files together. I'm afraid this may take a while for me to do though as I fly to NYC and onto Redmond tomorrow and will be out of the country (UK) for a few weeks.

rossco_2005
27 Jul 2005, 03:09
Does your host not have PEAR installed? Quite a lot do, cPanel servers come with it out of the box and I would suspect that other hosts also supply it.

I've just had a look at the PEAR pages, and it seems that XML_RSS depends on XML_Tree which depends on XML_Parser which depends on PEAR.

It might take a while to attempt to build a list of all of the dependencies. If you can let me know whether PEAR is available on your server I'll look at whether it is feasible to package all of the required PEAR files together. I'm afraid this may take a while for me to do though as I fly to NYC and onto Redmond tomorrow and will be out of the country (UK) for a few weeks.
Not sure about the host, I was just testing this on my own pc (apache, php, mysql installed) and couldn't figure out how to install PEAR so I thought it would be easier to just copy the files into the forums folder and include them like you said above.

ah well, i will try to find an install guide for pear.

buro9
27 Jul 2005, 06:03
Not sure about the host, I was just testing this on my own pc (apache, php, mysql installed) and couldn't figure out how to install PEAR so I thought it would be easier to just copy the files into the forums folder and include them like you said above.

ah well, i will try to find an install guide for pear.

A guide on installing and using PEAR:
http://www.sitepoint.com/article/getting-started-with-pear/2

A windows package that includes Apache, PHP + PEAR, MySql, etc:
http://www.apachefriends.org/en/xampp-windows.html

rossco_2005
27 Jul 2005, 17:08
A guide on installing and using PEAR:
http://www.sitepoint.com/article/getting-started-with-pear/2

A windows package that includes Apache, PHP + PEAR, MySql, etc:
http://www.apachefriends.org/en/xampp-windows.html
:D Works! Thanks!
Now as soon as vb3.5 is released I can install it on the 'live' forum.

buro9
05 Aug 2005, 16:04
:D Works! Thanks!
Now as soon as vb3.5 is released I can install it on the 'live' forum.

I'll be converting this to 3.5 over the next few weeks :)

rossco_2005
05 Aug 2005, 23:40
I'll be converting this to 3.5 over the next few weeks :)
Hmm, it already worked for me in 3.5 anyway. :lick:
Would be nice to have it as a plugin tho ofcourse. :)

jaredvolkl
09 Aug 2005, 23:31
Well Audioscrobbler is all switched up now. Looks like last.fm is what they are now. It's great because there's all kinds of new features, but of course our hack is broken now.

Bratac
01 Oct 2005, 16:47
Well Audioscrobbler is all switched up now. Looks like last.fm is what they are now. It's great because there's all kinds of new features, but of course our hack is broken now.

any updates on the progress of this for vb 3.5? I would really love to have this as a plugin.

buro9
01 Oct 2005, 18:18
any updates on the progress of this for vb 3.5? I would really love to have this as a plugin.

Oops... I'll package something soon-ish. I have a vb3.5 one running on my forum, but always forget to maintain the vb.org version when I'm upgrading.

Bratac
01 Oct 2005, 18:27
Oops... I'll package something soon-ish. I have a vb3.5 one running on my forum, but always forget to maintain the vb.org version when I'm upgrading.

cool, thanks very much :):)

Bratac
14 Oct 2005, 22:08
A guide on installing and using PEAR:
http://www.sitepoint.com/article/getting-started-with-pear/2

A windows package that includes Apache, PHP + PEAR, MySql, etc:
http://www.apachefriends.org/en/xampp-windows.html

any updates on the progress of the 3.5 version?

buro9
14 Oct 2005, 23:30
any updates on the progress of the 3.5 version?

Sorry... had forgotten, now using rememberthemilk.com, I've got it down to deliver to you guys this Sunday... will get it done then :)

buro9
16 Oct 2005, 18:28
Sorry... had forgotten, now using rememberthemilk.com, I've got it down to deliver to you guys this Sunday... will get it done then :)

3.5 port found here:
http://www.vbulletin.org/forum/showthread.php?t=98545

Only noticeable differences:
1) No need to include the Who's Online bit, I skip location information... it should just say that someone is viewing a profile.
2) The IFRAME in the MEMBERINFO template is now called with two extra query string elements, one I was using for the Who's Online, and the other is a style var... it's to prevent that page from caching in the browsers profile in the instance where a user changes style... the style of the iframe contents are guaranteed to be synchronised with the page now.

Bratac
16 Oct 2005, 20:12
awesome thanks :)