Back to vBulletin 3.8 Template Modifications

Mp3player block for CMPS
Mod Version: 1.00, by macc

vB Version: 3.8.2 Rating: (4 votes - 4.75 average) Installs: 15
Released: 02 Apr 2009 Last Update: Never Downloads: 4
Not Supported Template Edits Re-usable Code  

Hello!

This is simple mod to add mp3-player block to your CMPS portal page or your forum.

1. you must download from http://www.longtailvideo.com/players/jw-flv-player/ your non-commercial license and without virtal plugin.

2. make one directory (mediaplayer) on your server root and upload downloaded files (unpack before) - yourdomain.com/mediaplayer

3. make one subdirectory (mp3) in your mediaplayer directory - yourdomain.com/mediaplayer/mp3 - there you can upload your songs.

4. with notepad make your playlist.xml file and upload in mediaplayer directory

Code:
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
  <title>mp3_1 title</title> 
  <location>http://yourdomain.com/mediaplayer/mp3/name_song1.mp3</location> 
</track>
<track>
  <title>mp3_title</title> 
  <location>http://yourdomain.com/mediaplayer/mp3/name_song2.mp3</location> 
</track>
<track>
  <title>mp3_3 title</title> 
  <location>http://yourdomain.com/mediaplayer/mp3/name_song3.mp3</location> 
</track>
<track>
 <title>mp3_4 title</title>
 <location>http://yourdomain.com/mediaplayer/mp3/name_song4.mp3</location>
</track>
</trackList>
</playlist>
6. Now you can go to your Admin cp - VBa CMPS - add new module -

a. module title - mp3-player (or what you want)
b. template to include - adv_portal_player (just write player)
c. If you are adding a new template to use with this module, please specify the style you would like to add this template to here.
d. Templete content - add this
Code:
<tr>
<td class="$bgclass"> <center><embed
  src="http://yourdomain.com/mediaplayer/player.swf"
  width="470"
  height="20"
  bgcolor="#ffffff"
  allowscriptaccess="always"
  allowfullscreen="true"
  flashvars="file=http://yourdomain.com/mediaplayer/playlist.xml&backcolor=FFE87C"/></center> 
</td>
</tr>
just change in code above "yourdomain.com" to your site. (two places) and change color code if you want some another color!

e. use wrap module - yes
f. edit your usergroups permissions
g. SAVE

After just select position of your new module (recommend central position) and save.

That is all and hope that you will like it!

Want see this in action? http://libar-libar.com

Regards

macc/bosss

If you like it, just click to install!

Download

No files for download.

Screenshots

Click image for larger version
Name:	mp3.jpg
Views:	987
Size:	72.0 KB
ID:	97228  

Similar Mods

Fedex Tracking: CMPS Block vBulletin 3.5 Add-ons
vBa CMPS: Teamspeak Block vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024