[ABD] Last.fm API 0.9.2

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
sheVcza
Registered User
Posts: 26
Joined: Tue Apr 15, 2008 3:05 pm
Location: Czech Republic
Contact:

Re: [BETA] Last.fm API

Post by sheVcza »

So, version 0.9.2 beta is here! :) You can download it here. Update from 0.9.1 is included in pack.
The major changes is possibility to editing data via ACP (thanks dragnaar) and new feature - TASTE-O-METER! Enjoy. 8-)

Note: What is the TASTE-O-METER? If you view the profile page of user, which have last.fm username (and you too), you see the musical compatibility (in percent) and some interprets, which you share..

Image
Skalat maðr rúnar rista
nema raða vel kunni
þat verðr morgum manni
es of myrkvan staaf villisk.

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [BETA] Last.fm API 0.9.2

Post by darkonia »

great thx for the new update :D
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

demon327
Registered User
Posts: 847
Joined: Thu Nov 16, 2006 2:16 pm

Re: [BETA] Last.fm API 0.9.2

Post by demon327 »

Nice mate :)

demon327
Registered User
Posts: 847
Joined: Thu Nov 16, 2006 2:16 pm

Re: [BETA] Last.fm API 0.9.2

Post by demon327 »

The mod works, but a few errors:

Code: Select all

[phpBB Debug] PHP Notice: in file /lastfmapi/core/class/apibase.php on line 66: Undefined property: lastfmApiTasteometer::$config
[phpBB Debug] PHP Notice: in file /lastfmapi/lastfmapi_mod.php on line 125: Undefined index: nowplaying
[phpBB Debug] PHP Notice: in file /lastfmapi/lastfmapi_mod.php on line 159: Undefined index: nowplaying
[phpBB Debug] PHP Notice: in file /lastfmapi/lastfmapi_mod.php on line 197: Undefined offset: 3
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4195: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4197: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4198: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4199: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
they only come when i enable debug ;)

User avatar
sheVcza
Registered User
Posts: 26
Joined: Tue Apr 15, 2008 3:05 pm
Location: Czech Republic
Contact:

Re: [BETA] Last.fm API 0.9.2

Post by sheVcza »

Thanks, I see.. I'll fix it in next version. :)
Skalat maðr rúnar rista
nema raða vel kunni
þat verðr morgum manni
es of myrkvan staaf villisk.

User avatar
dragnaar
Registered User
Posts: 43
Joined: Sun Jan 25, 2009 10:56 pm
Location: Crimea

Re: [BETA] Last.fm API 0.9.2

Post by dragnaar »

How to change number of TASTE-O-METER?
I want to change the 5 to 8

User avatar
sheVcza
Registered User
Posts: 26
Joined: Tue Apr 15, 2008 3:05 pm
Location: Czech Republic
Contact:

Re: [BETA] Last.fm API 0.9.2

Post by sheVcza »

As an example of musical compatibility the last.fm server provides only five shared artists using the taste-o-meter function. Because of this, the extention of result is not possible.
Skalat maðr rúnar rista
nema raða vel kunni
þat verðr morgum manni
es of myrkvan staaf villisk.

User avatar
dragnaar
Registered User
Posts: 43
Joined: Sun Jan 25, 2009 10:56 pm
Location: Crimea

Re: [BETA] Last.fm API 0.9.2

Post by dragnaar »

Ok.
How to change image size in TASTE-O-METER?
possible?
:D

User avatar
sheVcza
Registered User
Posts: 26
Joined: Tue Apr 15, 2008 3:05 pm
Location: Czech Republic
Contact:

Re: [BETA] Last.fm API 0.9.2

Post by sheVcza »

Well, it is possible, but...If you change the size of the the picture, the aspect ratio could be distorted (because you can change only the width), so you would have to change the html & css file and set the pictures as a background. Last.fm provides the pictures with aspect ratio 1:1 and this is what the MOD uses, but only the 126x126 size.

So, open lastfmapi/lastfmapi_mod.php, and find:

Code: Select all

126s
and change it to other valid width (without s), for example 252. But heigh won't be the same size!
Skalat maðr rúnar rista
nema raða vel kunni
þat verðr morgum manni
es of myrkvan staaf villisk.

Fridge
Registered User
Posts: 307
Joined: Sat Nov 11, 2006 1:41 am
Location: Rotterdam, The Netherlands
Name: Martin
Contact:

Re: [BETA] Last.fm API

Post by Fridge »

Before i ask for support, big thanks to mod author for making this Image
CemetaryMan wrote:I noticed one thing and that is users have to have a Last.fm account on their profile to view others list.

This i what i experienced.

User #1 has a last.fm account added to their profile, user #2 has not.
User #1 can view this mod, user #2 can not.

When user #1 views user #2 account the mod shows up even though they do not have a last.fm account added.
When user #2 views user #1 account the mod does not show up.

It shows up correct in the viewtopic, user #1 has and user #2 hasnt.

Is there something i have missed or will this be corrected in future release.
Oké....just installed it a my test board and encountered the same problem, users that don't have a last.fm account cannot see the last.fm statistics from users that do have one.
Second small problem...in acp the last.fm field of all users are filled out with my username, but should be blank if they don't have a last.fm account.
Somebody having the same problems and is there any solution to this?

Fridge
Registered User
Posts: 307
Joined: Sat Nov 11, 2006 1:41 am
Location: Rotterdam, The Netherlands
Name: Martin
Contact:

Re: [BETA] Last.fm API 0.9.2

Post by Fridge »

I solved the second problem...

Open acp_users.php and search for:

Code: Select all

'lastfm'      => utf8_normalize_nfc(request_var('lastfm', $user->data['user_lastfm'], true)),
replace with:

Code: Select all

'lastfm'      => utf8_normalize_nfc(request_var('lastfm', $user_row['user_lastfm'], true)),

Shaxx
Registered User
Posts: 12
Joined: Sun Apr 25, 2010 4:12 am

Re: [BETA] Last.fm API 0.9.2

Post by Shaxx »

I installed the mod on my forum today, and I'm experiencing these dubug notices while viewing my own profile (the font size has also increased on this page):

Code: Select all

[phpBB Debug] PHP Notice: in file /lastfmapi/lastfmapi_mod.php on line 104: Undefined variable: i
[phpBB Debug] PHP Notice: in file /lastfmapi/lastfmapi_mod.php on line 104: Undefined index: 
[phpBB Debug] PHP Notice: in file /lastfmapi/lastfmapi_mod.php on line 105: Undefined variable: i
[phpBB Debug] PHP Notice: in file /lastfmapi/lastfmapi_mod.php on line 105: Undefined index: 
[phpBB Debug] PHP Notice: in file /lastfmapi/lastfmapi_mod.php on line 105: Undefined variable: i
[phpBB Debug] PHP Notice: in file /lastfmapi/lastfmapi_mod.php on line 105: Undefined index: 
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4293: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3481)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4295: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3481)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4296: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3481)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4297: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3481)
Edit: A few bugs in this mod, but once debug is turned off, it works great. Thanks :)

Shaxx
Registered User
Posts: 12
Joined: Sun Apr 25, 2010 4:12 am

Re: [BETA] Last.fm API 0.9.2

Post by Shaxx »

I've found another bug. When I click a members lastfm username link in memberlist.php, it directs me to http://myforum.com/lastfmusername instead of http://www.last.fm/user

Goemans
Registered User
Posts: 116
Joined: Fri Feb 20, 2009 6:55 pm

Re: [BETA] Last.fm API 0.9.2

Post by Goemans »

Seems like a very nice and useful MOD, thanks for that! Although I get this error when installing...
Image
https://camo.phpbb.com/6f9fe162d7071c98303d03063a854344c7b647e1/687474703a2f2f6935342e74696e797069632e636f6d2f6e71623476732e6a7067


I forced the install and changed config.php, but I can't find a clue in my UCP that the MOD is installed

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [BETA] Last.fm API 0.9.2

Post by darkonia »

sorry but you make something wrong, this mod runs easy and without any probs :ugeek:
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.

Locked

Return to “[3.0.x] Abandoned MODs”