Jump to content

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.
Link to comment
https://forums.phpfreaks.com/topic/6838-lastfm-image-generator/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.