Jump to content


This topic is now archived and is closed to further replies.


last.fm image generator

Recommended Posts

Hey, folks. I don't know if anyone is familiar with the RPI generator that people use with last.fm. I've been able to go into the script that people have created as templates and customize it a little bit, but I'm stuck on two things. The first is that I want to limit the chart width to 160 px, because I want to put it into my LiveJournal sidebar. The second is that I want the song name to wrap into a second line if it would excede 160 px, instead of just being cut off. I have a request for this in at the forum where I got the code, but I hoped some outsiders would be able to get a better look at it.

Here's the image that gets generated, for reference.
[a href=\"http://jefmar21.coolinc.info/rpi/\" target=\"_blank\"]http://jefmar21.coolinc.info/rpi/[/a]

..and here's links to the code that builds it.

[a href=\"http://jefmar21.coolinc.info/rpi/index.txt\" target=\"_blank\"]http://jefmar21.coolinc.info/rpi/index.txt[/a]
[a href=\"http://jefmar21.coolinc.info/rpi/rpi.txt\" target=\"_blank\"]http://jefmar21.coolinc.info/rpi/rpi.txt[/a]
[a href=\"http://jefmar21.coolinc.info/rpi/sig.txt\" target=\"_blank\"]http://jefmar21.coolinc.info/rpi/sig.txt[/a]

Thanks if you can help. I'm a real n00b at php, so I'm clueless

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.