Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-03-31 20:17:39

stefan
Archived Plugin Author
Registered: 2005-03-31
Posts: 12

[archived] ste_as_recent: Audioscrobbler "Recent played"

Notice: This thread is archived, this plugin is no longer available.

**********************************************************

I began the development of a “recent played” plugin based on the rss-feed from audioscrobbler.com. It’s available from:

download here

It’s called by writing <txp:ste_as_recent user=“as_username” num=“5” /> where user is your username at audioscrobbler.com and num is the number of songs you want to display.

It returns a string containing a numbered list of the songs in the format “artist – title”.

Last edited by stefan (2005-07-03 23:10:18)

Offline

#2 2005-03-31 20:34:44

stefan
Archived Plugin Author
Registered: 2005-03-31
Posts: 12

Re: [archived] ste_as_recent: Audioscrobbler "Recent played"

Sorry, the post got a bit messy. Here I go again:

I began the development of a “recent played

Offline

#3 2005-03-31 20:35:47

stefan
Archived Plugin Author
Registered: 2005-03-31
Posts: 12

Re: [archived] ste_as_recent: Audioscrobbler "Recent played"

Well, seems like it’s not possible to write txp-tags… Anyway, you call it with:
txp:ste_as_recent user=“stefan_yes” num=“5”

Offline

#4 2005-04-03 15:04:10

stefan
Archived Plugin Author
Registered: 2005-03-31
Posts: 12

Re: [archived] ste_as_recent: Audioscrobbler "Recent played"

New version, 0.5:
http://stefan.feelthemachine.com/index.php?s=file_download&id=6

It now uses fsockopen and has the connection-timeout set to 5 seconds. It also saves the most recent data received in mysql so that it can display recent songs even though AS can’t be reach and even though no recent songs exists in the rss-document.

Offline

#5 2005-04-03 21:58:05

kennethlove666
Member
From: arkansas
Registered: 2004-04-27
Posts: 107
Website

Re: [archived] ste_as_recent: Audioscrobbler "Recent played"

i always get the following error:

Fatal error: Call to undefined function: domxml_open_mem() in /home/l0vek3/public_html/eyeheartzombies-com/fool/textpattern/publish.php(632) : eval()’d code on line 989

any ideas?


Listen to Kenneth

Offline

#6 2005-05-11 19:50:22

The Safety Inspector
Member
From: London, UK
Registered: 2004-06-22
Posts: 32
Website

Re: [archived] ste_as_recent: Audioscrobbler "Recent played"

I’m getting the same error as Kenneth,

Fatal error: Call to undefined function: domxml_open_mem() in /home/hearth/public_html/textpattern/publish.php(767) : eval()’d code on line 340

Running RC1, so maybe that’s the problem.

Offline

#7 2005-05-11 19:59:31

stefan
Archived Plugin Author
Registered: 2005-03-31
Posts: 12

Re: [archived] ste_as_recent: Audioscrobbler "Recent played"

which php version do you run? it seems like it doesn’t have domxml-support… :/

Offline

#8 2005-07-03 23:09:02

stefan
Archived Plugin Author
Registered: 2005-03-31
Posts: 12

Re: [archived] ste_as_recent: Audioscrobbler "Recent played"

For the latest version, go to:
http://stefan.feelthemachine.com/index.php?s=file_download&id=6

Offline

Board footer

Powered by FluxBB