PDA

View Full Version : BB Code Enhancements - easy way to integration a perfect player to you vbulletin


c0der
04-03-2012, 10:00 PM
hey

today i playing with my player

Jw player

its good player with all u need to show any video from any where

example player

here (http://www.shbab4ever.com/youtube/t795)

some picture for player at attachment

before use this plz make install :D

this player work with all video and at phone ..

let start

from your admincp area

Custom BB Codes

Add New BB Code

and use this

Title : Video Player
BB Code Tag Name : JW

Replacement :
<script type='text/javascript' src='http://www.shbab4ever.com/youtube/player/swfobject4.js'></script>
<div id='mediaplayer'><h1>Your Browser Does Not Support Flash Player</h1><h2><a href="http://www.macromedia.com/go/getflashplayer">Click Here To Download</a></h2></div>
<script type='text/javascript'>
//this code was edit by c0der WwW.Shbab4Ever.CoM
//Please Use It At Your Risk
var so = new SWFObject('http://www.shbab4ever.com/youtube/player/player4.swf','video_div','660','420','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','{param}');
so.addVariable('backcolor','C0C0C0');
so.addVariable('frontcolor','000000');
so.addVariable('plugins','related-1,hd-2,timeslidertooltipplugin-2,sharing-1');
so.addVariable('related.file','http://www.shbab4ever.com/youtube/related169.xml');
so.addVariable('related.onclick','link');
so.addVariable('stretching','fill');
so.addVariable('volume','100');
so.addVariable('logo','http://www.shbab4ever.com/youtube/player/logo.png');
so.addVariable('logo.position','bottom-right');
so.addVariable('logo.hide','false');
so.addVariable('logo.link','http://www.shbab4ever.com/youtube');
so.addVariable('enablejs','true');
so.write('mediaplayer');
//so.write('mediaspace');
</script>


Example : http://www.youtube.com/watch?v=qAgpz9rtAH0
Description : JW Player:Video Player
Use {option} : no
Button Image (Optional) : http://pjd.mscui.net/Images/wmv.png
Remove Tag If Empty : no
Disable BB Code Within This BB Code : no
Disable Smilies Within This BB Code : no
Disable Word Wrapping Within This BB Code : no
Disable Automatic Link Parsing Within This BB Code : no

then save

now let see

how we config this player like we want

this at last we need to edit

var so = new SWFObject('http://www.shbab4ever.com/youtube/player/player4.swf','video_div','660','420','9');
this for load player to page when js calling so u just need edit 660 and 420 for size of player

so.addVariable('plugins','related-1,hd-2,timeslidertooltipplugin-2,sharing-1');
this is plugins for Jw player (i use related-1 for show more video and u can delete it , timeslidertooltipplugin for show time when u move mouse at line bar , sharing-1 for make link of where video share any where :D and hd-2 for show video at high quality :D

so.addVariable('related.file','http://www.shbab4ever.com/youtube/related169.xml');
if u delete plugin related-1 u need to delete this line 2 or u can use your xml :D

so.addVariable('related.onclick','link');
like i say this work only with related-1

so.addVariable('volume','100');
the degree of sound

so.addVariable('logo','http://www.shbab4ever.com/youtube/player/logo.png');
if u want add logo u can replace link to your logo

so.addVariable('logo.position','bottom-right');
where the logo show

so.addVariable('logo.hide','false');
if when video playing u can make logo hide if u replce false to true

so.addVariable('logo.link','http://www.shbab4ever.com/youtube');
what a link when click at logo

that it

at end u can host player and js file at u site

ver of Jw player 5.8

download from attachment

and edit this 2 line

<script type='text/javascript' src='http://www.shbab4ever.com/youtube/player/swfobject4.js'></script>


var so = new SWFObject('http://www.shbab4ever.com/youtube/player/player4.swf','video_div','660','420','9');


to your link of player and js file

ps : for coder u can use player any where like example :D

good luck guys

i missing some lines and now edit :D

WebCraker
04-19-2012, 10:41 AM
would be exciting if it's a fully automated product ;)

Hope to see it from you soon with more options so the webmasters don't have to modify anything with the code but update the product options from control panel.

BTY thnx for sharing bro ..

c0der
04-21-2012, 05:29 PM
would be exiting if it's a fully automated product ;)

Hope to see it from you soon with more options so the webmasters don't have to modify anything with the code but update the product options from control panel.

BTY thnx for sharing bro ..

soon bro i will made it

but for now i have alot of work to do :(

so maybe later :D

Silencer Groans
05-01-2012, 02:29 AM
يعطيك العافية

ريتك حطيت شيء ثاني غير الاغاني :)

c0der
05-13-2012, 02:51 PM
يعطيك العافية

ريتك حطيت شيء ثاني غير الاغاني :)

جزاك الله كل خير على المرور :)