Nano_
10-13-2011, 10:00 PM
This BBCode allows you create an own video player.
Instructions:
1) Download JWPlayer (Free or Pro, you choose) here (http://www.longtailvideo.com/players/jw-flv-player/).
2) Unzip to temp folder and send to your host, following the instructions below:
2.1) Create a folder inside of your forum root folder, called ownplayer
2.2) Inside this ownplayer folder, create other 3 folders called js, skins and videos
2.3) Put jwplayer.js and swobject.js inside js folder
2.4) Put player.swf in your FORUM ROOT FOLDER
2.5) If you find any skins do you like, put this zip in skins folder (i use this (http://www.longtailvideo.com/addons/skins/52/Bekle-%28aka:-Overlay%29))
3) Go to your AdminCP > Custom BB Codes > Add New BB Code.
Title: OwnPlayer Video
BB Code Tag Name: ownplayer
Replacement:
<div align="center">
<p id='preview'></p>
<script type='text/javascript' src='js/swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','560','340','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=ownplayer/videos/{param}&skin=ownplayer/skins/bekle.zip&logo=ownplayer/logo.png');
s1.addParam('plugins', 'plugins=hd-1', 'plugins=gapro-1&gapro.accountid=UA-GOOGLEANALYTICSHERE');
s1.addParam('hd.file', 'ownplayer/videos/{param}');
s1.write('preview');
</script>
</div>
Use {option}: NO
Remove Tag If Empty: NO
Disable BB Code Within This BB Code: YES
Disable Smilies Within This BB Code: YES
Disable Word Wrapping Within This BB Code: YES
Button Image (Optional): 133806
4) Change "UA-GOOGLEANALYTICSHERE" to your Google Analytics ID. If you don't have one, just delete this "'plugins=gapro-1&gapro.accountid=UA-GOOGLEANALYTICSHERE'"
5) Put your logo in ownplayer folder, with logo.png name (140px x 56px)
6) Put your:
Videos in path/to/your/forum/ownplayer/videos;
Skins in path/to/your/forum/ownplayer/skins and change bold blue in code.
Example: example.flv
133807
--
+ Know Problems:
- Works only with one video per page (it's a JW Player's limitation, i think).
+ Notes:
- Tested in 4.0 to 4.1.5 PL1;
- Sorry for my poor english;
- I made this code because I needed it for my forums. I'm not a programmer.
Instructions:
1) Download JWPlayer (Free or Pro, you choose) here (http://www.longtailvideo.com/players/jw-flv-player/).
2) Unzip to temp folder and send to your host, following the instructions below:
2.1) Create a folder inside of your forum root folder, called ownplayer
2.2) Inside this ownplayer folder, create other 3 folders called js, skins and videos
2.3) Put jwplayer.js and swobject.js inside js folder
2.4) Put player.swf in your FORUM ROOT FOLDER
2.5) If you find any skins do you like, put this zip in skins folder (i use this (http://www.longtailvideo.com/addons/skins/52/Bekle-%28aka:-Overlay%29))
3) Go to your AdminCP > Custom BB Codes > Add New BB Code.
Title: OwnPlayer Video
BB Code Tag Name: ownplayer
Replacement:
<div align="center">
<p id='preview'></p>
<script type='text/javascript' src='js/swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','560','340','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=ownplayer/videos/{param}&skin=ownplayer/skins/bekle.zip&logo=ownplayer/logo.png');
s1.addParam('plugins', 'plugins=hd-1', 'plugins=gapro-1&gapro.accountid=UA-GOOGLEANALYTICSHERE');
s1.addParam('hd.file', 'ownplayer/videos/{param}');
s1.write('preview');
</script>
</div>
Use {option}: NO
Remove Tag If Empty: NO
Disable BB Code Within This BB Code: YES
Disable Smilies Within This BB Code: YES
Disable Word Wrapping Within This BB Code: YES
Button Image (Optional): 133806
4) Change "UA-GOOGLEANALYTICSHERE" to your Google Analytics ID. If you don't have one, just delete this "'plugins=gapro-1&gapro.accountid=UA-GOOGLEANALYTICSHERE'"
5) Put your logo in ownplayer folder, with logo.png name (140px x 56px)
6) Put your:
Videos in path/to/your/forum/ownplayer/videos;
Skins in path/to/your/forum/ownplayer/skins and change bold blue in code.
Example: example.flv
133807
--
+ Know Problems:
- Works only with one video per page (it's a JW Player's limitation, i think).
+ Notes:
- Tested in 4.0 to 4.1.5 PL1;
- Sorry for my poor english;
- I made this code because I needed it for my forums. I'm not a programmer.