vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   BB Code Enhancements - easy way to integration a perfect player to you vbulletin (https://vborg.vbsupport.ru/showthread.php?t=281092)

c0der 04-03-2012 10:00 PM

easy way to integration a perfect player to you vbulletin
 
1 Attachment(s)
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

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 :
PHP Code:

<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 : [JW]http://www.youtube.com/watch?v=qAgpz9rtAH0[/JW]
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

PHP Code:

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

PHP Code:

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

PHP Code:

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

PHP Code:

so.addVariable('related.onclick','link'); 

like i say this work only with related-1

PHP Code:

so.addVariable('volume','100'); 

the degree of sound

PHP Code:

so.addVariable('logo','http://www.shbab4ever.com/youtube/player/logo.png'); 

if u want add logo u can replace link to your logo

PHP Code:

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

where the logo show

PHP Code:

so.addVariable('logo.hide','false'); 

if when video playing u can make logo hide if u replce false to true

PHP Code:

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

PHP Code:

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

PHP Code:

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

Quote:

Originally Posted by WebCraker (Post 2321538)
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

Quote:

Originally Posted by Silencer Groans (Post 2325106)
يعطيك العافية

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

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


All times are GMT. The time now is 10:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03455 seconds
  • Memory Usage 1,765KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete