vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   BB Code Enhancements - JW video player (https://vborg.vbsupport.ru/showthread.php?t=238990)

Edge83 09-19-2011 04:10 AM

I am interested in jwplayer on my forum but is it possible to set this in a way that only certain usergroups can use the bbcode for it (without disabling all vbcode for them entirely)? Thanks

Mondi 02-22-2012 07:59 PM

Hi -

Got this to work nicely, using this replacement:

<script type='text/javascript' src='/video/swfobject.js'></script>
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
var so = new SWFObject('/video/player.swf','mpl','470','320','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','{param}');
so.addVariable('backcolor','CCCCFF');
so.addVariable('frontcolor','000000');
so.addVariable('lightcolor','000000');
so.addVariable('screencolor','000000');
so.write('mediaspace');
</script>

If' I'd like to give the player one of JW's skins - say it's called 'Schoon' - what/where does need changing/added in this code?

Thanks heaps!

Mondi

xony 11-26-2012 05:29 PM

Please, and for jwplayer 6 ?? Thanks.

baytalha 11-24-2013 06:30 PM

Thanks man its a work

thetechgenius 07-13-2014 12:12 AM

Yeah, but this only works if the Video file is hosted locally on your web server. That means other users will not be able to use the bbcode.

adelsayed 07-05-2015 12:01 AM

No it can play any file ended with mp4 but other extensions no
files without extension will not work also
solution is very simple by changing the BBcode

you can see here I use jwplayer as attachment player which means .attach extension

also here I use it for broadcasting .attach also
best regards
Adel


Quote:

Originally Posted by thetechgenius (Post 2506554)
Yeah, but this only works if the Video file is hosted locally on your web server. That means other users will not be able to use the bbcode.


CreativeIT 12-14-2015 03:57 AM

Here's a slight variation on the original video code along with several more ...

Works with VB 3+ and 4
JW Player 5+

Video
Code:

<div align="center">
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='470' height='320' id='video1' name='video1'>
<param name='movie' value='http://YOURDOMAIN.com/jwplayer/player.swf'>
<param name='allowfullscreen' value='true'>
<param name='allowscriptaccess' value='always'>
<param name='wmode' value='transparent'>
<param name='flashvars' value='file={param}&frontcolor=#cc0018&start=0'>
<embed
  id='video2'
  name='video2'
  src='http://YOURDOMAIN.com/jwplayer/player.swf'
  width='470'
  height='320'
  bgcolor='#000000'
  allowscriptaccess='always'
  allowfullscreen='true'
  flashvars='file={param}&backcolor=#252626&frontcolor=#E8ECED&start=0'
/></object>
<br />
<font size="1"><b>Source:</b> <a target="_blank" href="{param}">{param}</a></font>
<a target="_top" href="http://YOURDOMAIN.com/misc.php?do=bbcode#audio"><img src="http://YOURDOMAIN.com/extra/help_icon.png" width="12" height="12" border="0" alt="Video/Audio Embedding Codes" /></a>
</div>


Audio
Code:

<div align="center">
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='470' height='25' id='video1' name='video1'>
<param name='movie' value='http://YOURDOMAIN.com/jwplayer/player.swf'>
<param name='allowfullscreen' value='true'>
<param name='allowscriptaccess' value='always'>
<param name='wmode' value='transparent'>
<param name='flashvars' value='file={param}'>
<embed
  id='video2'
  name='video2'
  src='http://YOURDOMAIN.com/jwplayer/player.swf'
  width='470'
  height='24'
  bgcolor='#000000'
  allowscriptaccess='always'
  allowfullscreen='true'
  flashvars='file={param}&backcolor=#252626&frontcolor=#E8ECED&start=0'
/></object>
<br />
<font size="1"><b>Source:</b> <a target="_blank" href="{param}">{param}</a></font>
<a target="_top" href="http://YOURDOMAIN.com/misc.php?do=bbcode#audio"><img src="http://YOURDOMAIN.com/extra/help_icon.png" width="12" height="12" border="0" alt="Video/Audio Embedding Codes" /></a>
</div>


Liveleak
Code:

<div align="center">
<object width='470' height='320'>
<param name='movie' value='http://www.liveleak.com/e/{param}'>
<param name='wmode' value='transparent'>
<param name='allowscriptaccess" value='always'>
<embed
  src='http://www.liveleak.com/e/{param}'
  type='application/x-shockwave-flash'
  allowfullscreen='true'
  wmode='transparent'
  allowscriptaccess='always'
  width='470'
  height='320'
/></object>
<br />
<font size="1"><b>Source:</b> <a target="_blank" href="http://www.liveleak.com/view?i={param}">http://www.liveleak.com/view?i={param}</a></font>
<a target="_top" href="http://YOURDOMAIN.com/misc.php?do=bbcode#audio"><img src="http://YOURDOMAIN.com/extra/help_icon.png" width="12" height="12" border="0" alt="Video/Audio Embedding Codes" /></a>
</div>


HuffPost
Code:

<div align="center">
<iframe src="http://embed.live.huffingtonpost.com/HPLEmbedPlayer/?segmentId={param}&autoPlay=false" width="470" height="320" frameBorder="0" scrollable="no"></iframe>
<br />
<font size="1"><b>Source:</b> <a target="_blank" href="http://live.huffingtonpost.com/r/segment/{param}">http://live.huffingtonpost.com/r/segment/{param}</a></font>
<a target="_top" href="http://YOURDOMAIN.com/misc.php?do=bbcode#audio"><img src="http://YOURDOMAIN.com/extra/help_icon.png" width="12" height="12" border="0" alt="Video/Audio Embedding Codes" /></a>
</div>


DailyMotion
Code:

<div align="center">
<iframe frameborder="0" width="470" height="320" src="http://www.dailymotion.com/embed/video/{param}"></iframe>
<br />
<font size="1"><b>Source:</b> <a target="_blank" href="http://www.dailymotion.com/video/{param}">http://www.dailymotion.com/video/{param}</a></font>
<a target="_top" href="http://YOURDOMAIN.com/misc.php?do=bbcode#audio"><img src="http://YOURDOMAIN.com/extra/help_icon.png" width="12" height="12" border="0" alt="Video/Audio Embedding Codes" /></a>
</div>


Google Maps
Code:

<div align="center">
<iframe width="470" height="370" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="{param}&amp;spn=0,0&amp;output=embed"></iframe>
<br />
<font size="1"><b>Source:</b> <a target="_blank" href="{param}">http://maps.google.com/maps/ms?msid=...</a></font>
<a target="_top" href="http://YOURDOMAIN.com/misc.php?do=bbcode#audio"><img src="http://YOURDOMAIN.com/extra/help_icon.png" width="12" height="12" border="0" alt="Video/Audio Embedding Codes" /></a>
</div>


FreeWaLLe 07-13-2017 12:40 AM

Türkçe anlatım sunabilirmisiniz ?


All times are GMT. The time now is 03:08 AM.

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.01336 seconds
  • Memory Usage 1,751KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete