Video Player & MP3 Player in Forums

naiakoa

New Member
Alright this is just a little tip on getting a Video Player and a MP3 player in your threads. 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 thats 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

MP3 Player Demo:
http://ultimatedestruction.co.cc/Demo/mp3.php

Video Player Demo:
http://ultimatedestruction.co.cc/Demo/video.php
 
Back
Top