vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - [ Widgets ] CMS Player - Hosted Video - JW Player (https://vborg.vbsupport.ru/showthread.php?t=238755)

nextslit 03-20-2010 10:00 PM

[ Widgets ] CMS Player - Hosted Video - JW Player
 
1 Attachment(s)
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 .

nextslit 03-21-2010 12:48 PM

1 Attachment(s)
Reserved.

basilrath 03-21-2010 03:13 PM

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

vividbreeze 03-21-2010 10:08 PM

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?

betts02 03-21-2010 10:42 PM

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

nextslit 03-22-2010 12:56 AM

Quote:

Originally Posted by basilrath (Post 2007598)
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:

nextslit 03-22-2010 01:02 AM

1 Attachment(s)
Quote:

Originally Posted by vividbreeze (Post 2007797)
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 :D , 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>


nextslit 03-22-2010 01:26 AM

Quote:

Originally Posted by betts02 (Post 2007807)
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 .

betts02 03-22-2010 07:50 PM

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

murekhalir 03-24-2010 04:03 AM

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.


All times are GMT. The time now is 10:55 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.01164 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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