Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] bsl_audioscrobbler

#31 2004-09-23 04:07:46

botono9
Member
Registered: 2004-07-07
Posts: 17
Website

Re: [archived] bsl_audioscrobbler

I found this thread a while back and loved the idea, but was frustrated that so many of the problems in the plugin had not been addressed, so I did the open source thing and updated it myself.

All attributes now work (1.0rc1 doesn’t like underscores in attribute names, apparently).

Special characters don’t get garbled anymore.

If you’re going to use the cache, the directory AND the XML file need to exist beforehand or it will spit up an ugly PHP error. I’ll look into this further in the future, but for now you’ve got to hold its hand a little bit.

I’m running this on my site right now and it is performing nicely. I manually hacked my version to display in a list format. The standard plugin will only accept a break tag to slap at the end of each link. Unordered list capability forthcoming.

Here’s the plugin:

bsl_audioscrobbler v0.6

Last edited by botono9 (2004-09-24 15:03:31)


The future is… now!

Offline

#32 2004-09-24 14:35:16

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: [archived] bsl_audioscrobbler

Could you please make it work with vinyl and maybe even my tapes as well? Pleeease???

Offline

#33 2004-09-24 15:02:52

botono9
Member
Registered: 2004-07-07
Posts: 17
Website

Re: [archived] bsl_audioscrobbler

Done and done.


The future is… now!

Offline

#34 2004-09-24 15:29:40

raveoli
Member
From: Copenhagen
Registered: 2004-03-06
Posts: 205
Website

Re: [archived] bsl_audioscrobbler

I just installed it and it ain’t showing that I’m listening to the Flashdance-soundtrack on vinyl full-on?!

Offline

#35 2004-09-27 00:39:16

botono9
Member
Registered: 2004-07-07
Posts: 17
Website

Re: [archived] bsl_audioscrobbler

Version 0.7 is now ready. The plugin now does the following:

  • Supports forms
  • Will create the cache XML file if it does not exist (directory must be CHMODed to at least 666 for this to work)

An example form might look like this:

<pre><li><txp:permlink><txp:author /> – <span class=“songtitle”><txp:title /></span></txp:permlink></li></pre>

A number of attributes have been removed in lieu of forms, which is The Textpattern Way. The help has been updated and I hope it is clear enough.

bsl_audioscrobbler v0.7

Last edited by botono9 (2004-09-27 00:40:33)


The future is… now!

Offline

#36 2004-09-27 02:59:56

kevinashworth
Member
From: Massachusetts
Registered: 2004-07-30
Posts: 26
Website

Re: [archived] bsl_audioscrobbler

I can’t upload the plug-in. “Badly formed or empty plugin code.” Is it just me, or is there a problem with v.0.7?

I’m using OS X, Safari, TXP 1rc1.

Offline

#37 2004-09-27 14:30:12

botono9
Member
Registered: 2004-07-07
Posts: 17
Website

Re: [archived] bsl_audioscrobbler

I just tested it and it worked fine for me under rc1. I copied the base64 code out from between the single quotes and copied it into the “Install plugin:” box to install.

It seems that uploading the text file is the problem. Try copying out the base64 and installing it that way, and I’ll look into the problem with the text file this evening. Thanks for the info.


The future is… now!

Offline

#38 2004-09-30 16:45:53

gonzo409
Member
From: Ohio
Registered: 2004-06-25
Posts: 50
Website

Re: [archived] bsl_audioscrobbler

nevermind

Last edited by gonzo409 (2004-10-12 23:48:05)


Liberal. Geek.

Offline

#39 2004-10-01 19:10:49

botono9
Member
Registered: 2004-07-07
Posts: 17
Website

Re: [archived] bsl_audioscrobbler

Did you change the formatting of the tag to remove the underscores from the attribute names? My tag looks like this:

<pre><txp:bsl_audioscrobbler limit=“10” username=“botono9” form=“audioscrobbler” usecache=“1” cachepath=”./cache” feedtimeout=“2” cacheoldtime=“900” /></pre>

Also, and this is just a shot in the dark, does your PHP config require you to define variables before you use them?

Last edited by botono9 (2004-10-01 19:13:54)


The future is… now!

Offline

#40 2004-10-01 22:33:12

gonzo409
Member
From: Ohio
Registered: 2004-06-25
Posts: 50
Website

Re: [archived] bsl_audioscrobbler

Well, I recently made a half-assed attempt to install a local server on my machine, but I’m not geek enough to venture out of any hand holding tutorials, so it is possible that the variables need defined. Wouldn’t know where to start and if this was running on my web host, I most likely wouldn’t have this problem.

I tried plugging in your code (changing the cache path and username) and I still got a list of errors. Most of them stating “undefined variable,” hence what I previously said…

Last edited by gonzo409 (2004-10-01 22:33:47)


Liberal. Geek.

Offline

#41 2004-10-10 00:01:06

andrea
Member
From: la la land
Registered: 2004-02-24
Posts: 62
Website

Re: [archived] bsl_audioscrobbler

version 0.7 didn’t work for me but v0.6 did ~ perfect!

thanks so much, this is a great plugin. looking forward to using forms for formatting, but until then a simple < div > works fine for me.

Offline

#42 2004-10-14 03:19:34

botono9
Member
Registered: 2004-07-07
Posts: 17
Website

Re: [archived] bsl_audioscrobbler

In what way(s) did 0.7 not work for you? It works great for me, so I have a hard time troubleshooting problems. Can you produce any error messages?

Thanks for using it!


The future is… now!

Offline

#43 2004-11-24 16:46:46

qrayg
Member
From: USA
Registered: 2004-08-27
Posts: 81
Website

Re: [archived] bsl_audioscrobbler

I can’t seem to get 0.7 to work at all. It does not throw any errors… it just does not spit out anything. I have the form created with the correct code.

I have the tag inside of a UL tag but when I view the page all I get is an empty UL tag.

I thought maybe it was the cache path so I created my cache dir in multiple places and CHMod 777 on all. I don’t understand what is wrong.

Offline

#44 2004-11-24 16:54:24

qrayg
Member
From: USA
Registered: 2004-08-27
Posts: 81
Website

Re: [archived] bsl_audioscrobbler

Ughh!

Nevermind… I didn’t know that TXP does not activate plugins by default. My bad… sheesh.

Offline

#45 2004-12-01 21:35:33

arakune
Member
Registered: 2004-10-23
Posts: 13

Re: [archived] bsl_audioscrobbler

I just tried installing 0.7, and get the following error when I activate it:

Fatal error: Call to undefined function: curl_init() in /u2/afs/home/arakune/web_tree/pretty.cp/textpattern/publish.php(767) : eval()’d code on line 513

I’m calling it with the following tag:

txp:bsl_audioscrobbler limit=“10” username=“arakune” form=“audioscrobbler” usecache=“1” cachepath=”./cache” feedtimeout=“2” cacheoldtime=“900”

and am using the sample “audioscrobbler” form provided above.

Offline

  1. Index
  2. » Archives
  3. » [archived] bsl_audioscrobbler

Board footer

Powered by FluxBB