Jump to content


Photo

last.fm image generator


  • Please log in to reply
No replies to this topic

#1 sjuhawk31

sjuhawk31
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 07 April 2006 - 08:39 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users