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
[ Widgets ] CMS Player - Hosted Video - JW Player Details »»
[ Widgets ] CMS Player - Hosted Video - JW Player
Version: 1.00, by nextslit nextslit is offline
Developer Last Online: Mar 2014 Show Printable Version Email this Page

Category: vBulletin CMS Widgets - Version: 4.0.x Rating:
Released: 03-20-2010 Last Update: Never Installs: 20
Uses Plugins
Re-useable Code Additional Files Is in Beta Stage  
No support by the author.

Hello


I?m going to show you how to do a simple mod that you can use JW Player on your Vbulletin. This will allow you to have your own hosted player.



First you need to download JW Player: Flash Video Player
Quote:
Flash Video Player for FLV, H.264/MPEG-4, MP3
and YouTube Videos on your website

How to install :

1- Download JW flash player
2- unzip mediaplayer.zip
3- Upload swfobject.js to your js folder
4- Upload Player.swf and yt.swf to your home root
5- Creat a folder to upload you videos ( call it video )
6- Go to admincp/vbulletin CMS / Widgets / Creat new widget
7- Widget type : static HTML / Title : Player
8- Paste :

Code:
<p id='preview'>The player will show in this paragraph</p>
<script type='text/javascript' src='js/swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','400','300','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=video/video.flv');
s1.write('preview');
</script>
and save .

9 - go to Layout manager and then add your Player widget to your page .

Note : you can use this HTML code to every page ( CMS post - Thread Post - Blogs and anywher ) just remember to allow HTML code .

Note : It should work with any version of vbulletin .

Show Your Support

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

Comments
  #2  
Old 03-21-2010, 12:48 PM
nextslit's Avatar
nextslit nextslit is offline
 
Join Date: May 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved.
Attached Images
File Type: jpg 1.jpg (24.9 KB, 0 views)
File Type: jpg 2.jpg (90.2 KB, 0 views)
File Type: jpg 3.jpg (71.4 KB, 0 views)
Reply With Quote
  #3  
Old 03-21-2010, 03:13 PM
basilrath's Avatar
basilrath basilrath is offline
 
Join Date: Apr 2006
Posts: 741
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can also use the following code to add some personalisation to your player

PHP Code:
&logo=http://www.yoursite.com/path-to-logo/flv-logo.png 
gives the display like this http://www.tabletennistalk.co.uk/for...p?136-stream-1
Reply With Quote
  #4  
Old 03-21-2010, 10:08 PM
vividbreeze vividbreeze is offline
 
Join Date: Sep 2007
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about making it private so only a certain usergroup can view the video? Is this possible to be placed in a threads private section?
Reply With Quote
  #5  
Old 03-21-2010, 10:42 PM
betts02's Avatar
betts02 betts02 is offline
 
Join Date: Jun 2009
Posts: 910
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry for not being up to scrath with vb as i am new, but i do not see a js. file, where is this ?
cheers
Reply With Quote
  #6  
Old 03-22-2010, 12:56 AM
nextslit's Avatar
nextslit nextslit is offline
 
Join Date: May 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by basilrath View Post
you can also use the following code to add some personalisation to your player

PHP Code:
&logo=http://www.yoursite.com/path-to-logo/flv-logo.png 
gives the display like this http://www.tabletennistalk.co.uk/for...p?136-stream-1
Thanks basilrath :up:
Reply With Quote
  #7  
Old 03-22-2010, 01:02 AM
nextslit's Avatar
nextslit nextslit is offline
 
Join Date: May 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vividbreeze View Post
What about making it private so only a certain usergroup can view the video? Is this possible to be placed in a threads private section?


I don't have any idea how to make it private as widget , but you can use the HTML code to any template or page .


creat a custom ( like : tube.php ) page and hide the player from guest by using following code :

[HOW TO - vB4] Create a own vBulletin page



Code:
<vb:if condition="$show['guest']">
<div class="collapse wgo_block" style="text-align: center;">
<h2><span>Hello guest! </span></h2>
<div class="wgo_subblock" style="text-align: center;">		
<p>Player is disabled for guests!<br />
To be able to view this video, you must either <a href="register.php{vb:raw session.sessionurl_q}">{vb:rawphrase register}</a> or login. </p>	
</div>	
</div>
<vb:else />

JW _ Player Code here

		</vb:if>
Attached Images
File Type: jpg 2.jpg (55.0 KB, 0 views)
File Type: jpg 3.jpg (100.1 KB, 0 views)
Reply With Quote
  #8  
Old 03-22-2010, 01:26 AM
nextslit's Avatar
nextslit nextslit is offline
 
Join Date: May 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by betts02 View Post
sorry for not being up to scrath with vb as i am new, but i do not see a js. file, where is this ?
cheers
  • Creat a new folder ( Name the folder ?js? ) on Public_html
  • upload swfobject.js to js folder .
Reply With Quote
  #9  
Old 03-22-2010, 07:50 PM
betts02's Avatar
betts02 betts02 is offline
 
Join Date: Jun 2009
Posts: 910
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Totally lost with this, Probably something simple to many but a newbie like me,lol

I downloaded the file

Creatd a "js" file and placed in to public_html/

so its public_html/js

The "Upload Player.swf and yt.swf to your home root "

So these are placed at
public_html/ ?
or
Public_html/forums ?

The the "Videos" folder i need to create, where do i install this ?

And what code do i put in this ?

All i am trying to do is have a page with my videos on it, i have the page with all the header/footer/etc i just need the html code to place a video in it

Can someone please help me and others like me who are just starting out with vb ?

cheers
Reply With Quote
  #10  
Old 03-24-2010, 04:03 AM
murekhalir murekhalir is offline
 
Join Date: Oct 2006
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way you can integrate JW player with AME3?

I need to use AME3 (to detect youtube videos) then shove that youtube video INTO the JW player for threads and etc.

LMK. I'm willing to pay.

I ultimately want people to show off their youtube videos on my site. But I want to also brand the player over the YT video and and use my adtonomy pre roll ad.
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 07:52 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.05703 seconds
  • Memory Usage 2,333KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_code
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (5)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete