Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
OwnPlayer - Your own video player Details »»
OwnPlayer - Your own video player
Version: 1.0, by Nano_ Nano_ is offline
Developer Last Online: Jul 2017 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.1.5 Rating:
Released: 10-13-2011 Last Update: Never Installs: 6
Re-useable Code Additional Files Translations Is in Beta Stage  
No support by the author.

This BBCode allows you create an own video player.


Instructions:

1) Download JWPlayer (Free or Pro, you choose) here.

2) Unzip to temp folder and send to your host, following the instructions below:
Quote:
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)
3) Go to your AdminCP > Custom BB Codes > Add New BB Code.

Title: OwnPlayer Video
BB Code Tag Name: ownplayer
Replacement:
Code:
<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): Attachment 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: [ownplayer]example.flv[/ownplayer]

ownplayer.jpg

--
+ 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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-14-2011, 06:41 PM
Nano_ Nano_ is offline
 
Join Date: May 2006
Location: Rio de Janeiro - Brasil
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

reserved.
Reply With Quote
  #3  
Old 10-24-2011, 11:08 PM
dvL-den dvL-den is offline
 
Join Date: Sep 2011
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, this bbcode is working perfect, but one question... how I can turn off the video menu? I don't want this option in the video player.
Reply With Quote
  #4  
Old 10-10-2012, 01:32 PM
cbiweb cbiweb is offline
 
Join Date: May 2004
Location: Nova Scotia, Canada
Posts: 238
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This needs to be changed because JWPlayer is different now. For one thing, there is no swobject.js file anymore, making the bbcode not work.
Reply With Quote
  #5  
Old 11-25-2012, 07:11 PM
Smiler2009 Smiler2009 is offline
 
Join Date: Apr 2009
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the code I use for JWPlayer6. I'm using JWPlayer6 Pro but the free version will work identically.

<script src="/jwplayer/jwplayer.js"></script>

<div id='my-video'></div>
<script type='text/javascript'>
jwplayer('my-video').setup({
file: 'path/to/your/video/folder/{param}',
width: '480',
height: '270'
});
</script>

{param} is the filename of the video/audio file to be passed to the code.
All you need do is to make sure the video is uploaded into the folder you specify in the code, type the filename in a forum post, highlight it and click the icon.

Works very well indeed. If you reduce the height to 30 the player will switch into audio mode and display the audio control bar so you can also add an [AUDIO] tag if you wish.

Hope this helps

Jeff.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:27 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06516 seconds
  • Memory Usage 2,257KB
  • Queries Executed 19 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete