WordPress.org

Ready to get started?Download WordPress

Forums

Install XSPF Player in Sidebar (3 posts)

  1. richards1052
    Member
    Posted 7 years ago #

    I followed the plugin installation instructions from the author's Wiki. The xspf folder/files are on my server. The plugin is activated & appears in my admin interface. I've linked the plugin to an mp3 file.

    Now, what I want to do is place the 'wide list' player displayed here in my sidebar. I don't see anything in the instructions saying how to do that. I tried copying the author's code for the player on the above linked blog pg., but I couldn't figure out how to convert the 'data' and 'value' links to my own blog links. For example, his code is:
    <!-- WordPress XSPF_Player Plugin v. 3.1, by Boriel :-) -->
    <span id="xspf_player1">
    <object type="application/x-shockwave-flash" DATA="http://www.boriel.com/wp-content/plugins/xspf_player/xspf_player.swf?autoload=true&b_bgcolor=C0C0C0&repeat_playlist=true&playlist_url=http%3A%2F%2Fwww.boriel.com%2Fwp-content%2Fplugins%2Fxspf_player%2Fplaylist.php%3Forder%3D1-10"
    width="180" height="100" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">
    <param name="movie" VALUE="http://www.boriel.com/wp-content/plugins/xspf_player/xspf_player.swf?autoload=true&b_bgcolor=C0C0C0&repeat_playlist=true&playlist_url=http%3A%2F%2Fwww.boriel.com%2Fwp-content%2Fplugins%2Fxspf_player%2Fplaylist.php%3Forder%3D1-10" />
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#C0C0C0" />
    </object>
    </span>

    I have my files at:
    http://www.richardsilverstein.com/tikun_olam/wp-content/plugins/xspf_player/

    Would anyone be able to help me translate his code on the above pg. for my sidebar? I'd be grateful if you could.

  2. yose
    Member
    Posted 6 years ago #

    Once the plugin is installed, etc., get another sidebar widget called executable PHP widget. This lets you plug in code into the sidebar like the new Text box. In it plug the above code in but replace the URL of the player and playlist. Where it says DATA=", input the URL of where your player lives and where it says playlist=, type in the URL of your playlist. The code repeats so you have to replace a total of 4 URLs. Once you do that, the player should work.

  3. earthwalkersmag
    Member
    Posted 6 years ago #

    Can someone help me find out why my music is not playing? I've uploaded all the files, activated the plugin in the wordpress admin and loaded songs through the xspf manager. The player shows up on my site fine but it doesn't play the songs.

    I've used this code to put it in my sidbar:
    <?php xspf_player::start('Playlist'); ?>

    any suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic