• Last Fm has changed a lot recently, and one feature I really miss is the ability to goto a song page and have some embedd code for a little play button to put on your site.

    I figured out how to do it manually, but I thought there must be a way to automate the link generation.

    Here is the way I found to get that functionalty back manually :

    Copy this code :

    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="13" height="13" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowScriptAccess" value="sameDomain" /><param name="FlashVars" value="resourceID=#########&amp;flp=true" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="src" value="https://static.last.fm/webclient/inline/6/inlinePlayer.swf";; /><embed type="application/x-shockwave-flash" width="13" height="13" src="https://static.last.fm/webclient/inline/6/inlinePlayer.swf";; bgcolor="#ffffff" quality="high" flashvars="resourceID=#########&amp;flp=true" allowscriptaccess="sameDomain"></embed></object>

    you will see there are 2 parts that have #########

    replace these 9 #’s with the parent resource number of the track in question.

    you can find that by going to a song page and viewing source for the page.

    Search out the following code :

    LFM.set("ParentResource", {"id":

    the number is immediatly after that between two inverted commas.

    eg

    LFM.set("ParentResource", {"id":"#########"

    you only need the number, not the inverted commas.

    ??

    I hope someone might find a useful way to make an admin plugin where it was possible to just enter the url of the song on Last Fm.

    So on the admin bar there was a link “Last Fm” with a dropdown field asking for the url of the song page on last fm.

    Of course the option of adding more last fm plugins to the Last Fm admin menu is possible ??

    Have I posted this in the right place for mod makers to see? Im sorry if i havnt.

    Thanks to anyone who can help make this happen!

    Repects

    F1ra

  • The topic ‘Idea for a Last Fm plugin. Any mod makers here?’ is closed to new replies.