vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   BB Code Enhancements - Play Youtube Video and more on you forums with you images and logo (https://vborg.vbsupport.ru/showthread.php?t=183733)

friend01 06-26-2008 10:00 PM

Play Youtube Video and more on you forums with you images and logo
 
NEW YOUTUBE VIDEO BBCODE and more file type on you forums with you images and logo.


code by: friend01
http://thuytinh.name

Suport: on vBB v3.6x and vBB v3.7.x
and folge file type: Youtube video, images(jpg,png,gif....), mp3, rtmp stream,swf,flv.
:)

Install:

1. Upload the contents of the "upload" folder to you root forums.

2. Goto: ACP > Custom BB Codes > add new BB code

Title: Play Youtube Video

BB Code Tag Name: ttyoutube

Replacement:

Code:

<script type="text/javascript" src="http://youhome.com/forums/mediaplayer/swfobject.js"></script>
 
<div id="player">This text will be replaced</div>
 
<script type="text/javascript">
var so = new SWFObject('http://youhome.com/forums/mediaplayer/mediaplayer.swf','mpl','425','344','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','344');
so.addVariable('width','425');
so.addVariable('file','{param}');
so.addVariable('image','http://youhome.com/forums/mediaplayer/ttimages.png');
so.addVariable('logo','http://youhome.com/forums/mediaplayer/ttplayerlogo.png');
so.addVariable('displayheight','344');
so.addVariable('searchbar','false');
so.write('player');
</script>



Example:
[ttyoutube]http://de.youtube.com/watch?v=6yYBdiCoR9A[/ttyoutube]

Description: Play Youtube Video on you forums with you images and logo

Use {option}: no

Button Image (Optional): images/youtube.gif

3. click: save
4. :up: :)...
//////////////////////////////////////////////////////////////////////////////////////////

Importal:
a. Replace link in Red color with you forums pach.

b. Replace link in Green color with you with you bachground images. (support file jpg, png)

c. Replace link in Blue color with you with you logo images. (support file jpg, png)

//////////////////////////////////////////////////////////////////////////////////////////
Update: Add javascript!

iogames 06-27-2008 08:58 PM

Well I'm using 3.6x [yes because I want ;)] I think there's not a problem with that right?

And just one more question? can I build my own Flash Player?
www.tvzone.us <-- here I'm supposed to, but I can't access nothing

Antek 06-27-2008 09:28 PM

I can't see watermark on my board. I did all steps from tutorial... :(

friend01 06-27-2008 10:02 PM

Quote:

Well I'm using 3.6x [yes because I want ] I think there's not a problem with that right?
no problem with vB v3.6x
Quote:

I can't see watermark on my board. I did all steps from tutorial...
a. Replace link in Red color with you forums pach.

b. Replace link in Green color with you with you bachground images. (support file jpg, png)

c. Replace link in Blue color with you with you logo images. (support file jpg, png)

Examle: http://youhome/forums/images/youlogo.png

youlogo.png <<<< must Upload on http://youhome/forums/images/

Antek 06-27-2008 10:12 PM

It was my mistake - I lost 1 symbol in code, apologise

khaleel 06-27-2008 11:02 PM

PHP Code:

<script type="text/javascript">
            
            var 
so = new SWFObject

("http://www.****.com/flvPlayer.swf?

imagePath=http://www.***.com/image.jpg&vid

eoPath={param}

&autoStart=false&volAudio=60&newWidth=480&newHeig

ht=385&disableMiddleButton=false&playSounds=true&sou

ndBarColor=0x0066FF&barColor=0x0066FF&barShadowCo

lor=0x91BBFB&subbarColor=0xffffff"
"sotester""480"

"385""9""#efefef");
            
so.addParam

("allowFullScreen""true");
            
so.write("flashcontent");
            
        </
script

Tried this xHTML friendly and true JavaScript object declaration.. no luck. Also you need to tell people they need a JavaScript include within the headerinclude templates for your swfobject.js

friend01 06-28-2008 12:00 AM

Quote:

Originally Posted by khaleel (Post 1560749)
PHP Code:

<script type="text/javascript">
            
            var 
so = new SWFObject

("http://www.****.com/flvPlayer.swf?

imagePath=http://www.***.com/image.jpg&vid

eoPath={param}

&autoStart=false&volAudio=60&newWidth=480&newHeig

ht=385&disableMiddleButton=false&playSounds=true&sou

ndBarColor=0x0066FF&barColor=0x0066FF&barShadowCo

lor=0x91BBFB&subbarColor=0xffffff"
"sotester""480"

"385""9""#efefef");
            
so.addParam

("allowFullScreen""true");
            
so.write("flashcontent");
            
        </
script

Tried this xHTML friendly and true JavaScript object declaration.. no luck. Also you need to tell people they need a JavaScript include within the headerinclude templates for your swfobject.js

Thank! New code with JavaScript Update!:up:

Scarface Claw 06-28-2008 12:34 AM

does the tag have to be

[ ttyoutube ][ /ttyoutube ]

Or can it just be

[ youtube ][ /youtube]

-Minus the spaces of course.

friend01 06-28-2008 12:45 AM

Quote:

Originally Posted by Scarface Claw (Post 1560800)
does the tag have to be

[ ttyoutube ][ /ttyoutube ]

Or can it just be

[ youtube ][ /youtube]

-Minus the spaces of course.

you can any code to Replace!:D

Scarface Claw 06-28-2008 01:20 AM

thought so.

I might give this a go.

Thanks.


All times are GMT. The time now is 01:40 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.01108 seconds
  • Memory Usage 1,757KB
  • 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
  • (1)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
  • (2)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