Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: addon: WordPress Audio Player on sNews  (Read 872 times)

tukangseo

  • Newbie
  • *
  • Karma: 0
  • Posts: 2
  • Oye!
    • jejaring
addon: WordPress Audio Player on sNews
« on: October 30, 2010, 04:22:32 AM »

Martine Laine has created very nice lean and simple audio player plugin for WordPress, here is simple way to put it in sNews:

1. Get stand alone version WordPress Audio Player here
2. Upload and extract everything on js folder of your sNews installation
3. Backup index.php just in case you mess up something
4. Edit index.php and put this code inside HEAD tag
Code: [Select]
<HEAD>
..
<script type="text/javascript" src="http://yoursite.com/path/to/audio-player/audio-player.js"></script>
<script type="text/javascript"> AudioPlayer.setup("http://yoursite.com/path/to/audio-player/player.swf", { width: 290 }); </script>
..
</HEAD>
5. Well done, now to test it in your post just put this code in your article:
Code: [Select]
<p id="audioplayer_1">Alternative content<;/p> <script type="text/javascript">
AudioPlayer.embed("audioplayer_1", {soundFile: "http://yoursite.com/path/to/mp3_file.mp3"}); </script>

6. Nice is'nt it?  To customize more the audio player, please check out WordPress Audio Player home page
« Last Edit: October 30, 2010, 05:50:12 AM by Keyrocks »
Logged