Thread: BB Code Enhancements - JW video player
View Single Post
  #68  
Old 12-14-2015, 03:57 AM
CreativeIT's Avatar
CreativeIT CreativeIT is offline
 
Join Date: Sep 2013
Location: South Australia
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01085 seconds
  • Memory Usage 1,792KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete