MP3/Video player still works

naiakoa

New Member
The video player and MP3 player still works. and to set it up here is what you should do:
First Download the File MediaPlayer http://www.longtailvideo.com/jw/upload/mediaplayer-viral.zip or from the attachments. Next move the Player.swf and swfobject.js to your forum directory. After you have done that Go to your forum=>admincp=>Custom BB Codes=>Add New BB Code now enter the following

MP3 PLAYER
Title: MP3 Player
Tag: mp3

Replacement:
Code:
<script type="text/javascript" src="http://[color=Red][b]website url[/b][/color]/[color=Red][b]form directory[/b][/color]/swfobject.js"></script>
 
<div id="player">MP3 will play shortly please wait</div>
 
<script type="text/javascript">
var so = new SWFObject('http://[color=Red][b]website url[/b][/color]/[b][color=Red]forum directory[/color][/b]/player.swf','mpl','470','20','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&duration=33&file={param}&backcolor=000000&frontcolor=990000');
so.write('player');
</script>
(make shure u replace the website url and forum directory to your url and dir)

Example: (whatever u want)

Description: MP3 Player

Save the BBcode and you are done with the MP3 player.

Video Player
Now you are almost done with all this For the Video player you go to the Custom BBcode are and add a new one with this information

Title: Video Player
Tag: video
Replacement:
Code:
<p id='preview'>The player will show in this paragraph</p>

<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','680','480','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file={param}&backcolor=000000&frontcolor=990000');
s1.write('preview');
</script>
Example: whatever you want
Description: Video Player


WMV Player Files to download: http://www.longtailvideo.com/jw/upload/wmvplayer.zip
Code:
<script type="text/javascript" src="/jw/embed/silverlight.js"></script>
<script type="text/javascript"  src="/jw/embed/wmvplayer.js"></script>

<div id="mediaspace"></div>

<script type="text/javascript">
 var cnt = document.getElementById("mediaspace");
 var src = "/jw/embed/wmvplayer.xaml";
 var cfg = {height:"250", width:"470", file:"{param}"};
 var ply = new jeroenwijering.Player(cnt,src,cfg);
</script>

Save the BBcode and you are done

Well that's how u get a MP3 Player and a Video player working in your forum. This will work any version of vBulletin so i just decided to share this wit everyone. hope it helps. Also it works for anyother kinds of forums. enjoy
Demo for Both MP3 and Video player
Demo
 
naiakoa said:
The video player and MP3 player still works. and to set it up here is what you should do:
First Download the File MediaPlayer http://www.jeroenwijering.com/upload/mediaplayer.zip or from the attachments. Next move the Player.swf and swfobject.js to your forum directory. After you have done that Go to your forum=>admincp=>Custom BB Codes=>Add New BB Code now enter the following

MP3 PLAYER
Title: MP3 Player
Tag: mp3

Replacement:
Code:
<script type="text/javascript" src="http://[color=Red][b]website url[/b][/color]/[color=Red][b]form directory[/b][/color]/swfobject.js"></script>
 
<div id="player">MP3 will play shortly please wait</div>
 
<script type="text/javascript">
var so = new SWFObject('http://[color=Red][b]website url[/b][/color]/[b][color=Red]forum directory[/color][/b]/player.swf','mpl','470','20','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&duration=33&file={param}&backcolor=000000&frontcolor=990000');
so.write('player');
</script>
(make shure u replace the website url and forum directory to your url and dir)

Example: (whatever u want)

Description: MP3 Player

Save the BBcode and you are done with the MP3 player.

Video Player
Now you are almost done with all this For the Video player you go to the Custom BBcode are and add a new one with this information

Title: Video Player
Tag: video
Replacement:
Code:
<p id='preview'>The player will show in this paragraph</p>

<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','680','480','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file={param}&backcolor=000000&frontcolor=990000');
s1.write('preview');
</script>
Example: whatever you want
Description: Video Player

Save the BBcode and you are done

Well that's how u get a MP3 Player and a Video player working in your forum. This will work any version of vBulletin so i just decided to share this wit everyone. hope it helps. Also it works for anyother kinds of forums. enjoy

the Demo of them will be set up soon.
I would love for the demo to be up.
 
Added the Demo. It now works on any url. if the sound is all choppy aswell as the video sorry bout that my comp is acting up for some reason and makes everything all laggy.
 
The files came from the link but it took a while to get the script to work but it definitely works for any kind of website. and It doesnt really need to be updated cus it self update. All you need is just the script and it plays any music/video
 
Back
Top