• Resolved brom

    (@brom)


    Hello!

    I’m using Brandon Fuller’s Now Playing Plugin For iTunes, and it’s working just the way it should. Among the code that’s pasted into my sidebar.php is this (dots are showing ‘left out’ code, for purpose of shortening this post)

    ...
    $file = "now_playing.xml";
    $xml_parser = xml_parser_create();

    if ( strlen( $title ) > 0 )
    {
    $artist = $vals[ $index["ARTIST"][$i] ]["value"];
    $album = $vals[ $index["ALBUM"][$i] ]["value"];

    $imageurl = $vals[ $index["IMAGE"][$i] ]["value"];
    $artworkID = $vals[ $index["ARTWORKID"][$i] ]["value"];

    echo "'" . $title . "'" . " by " . $artist;

    The thing is: I want to enable the $artworkID, but I cannot for the life of me understand which function to use. ‘Echo’ does not work. The plugin itself uploads the coverart-image to my server, but what will I have to use to display it?

    Help much appreciated! ??

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Maybe off topic, but regarding the $echo function’ is closed to new replies.