Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Play Youtube Video and more on you forums with you images and logo Details »»
Play Youtube Video and more on you forums with you images and logo
Version: 1.1, by friend01 friend01 is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.7.x Rating:
Released: 06-26-2008 Last Update: 06-27-2008 Installs: 49
 
No support by the author.

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!

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 06-27-2008, 08:58 PM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 06-27-2008, 09:28 PM
Antek's Avatar
Antek Antek is offline
 
Join Date: May 2008
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't see watermark on my board. I did all steps from tutorial...
Reply With Quote
  #4  
Old 06-27-2008, 10:02 PM
friend01 friend01 is offline
 
Join Date: Jan 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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/
Reply With Quote
  #5  
Old 06-27-2008, 10:12 PM
Antek's Avatar
Antek Antek is offline
 
Join Date: May 2008
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was my mistake - I lost 1 symbol in code, apologise
Reply With Quote
  #6  
Old 06-27-2008, 11:02 PM
khaleel's Avatar
khaleel khaleel is offline
 
Join Date: Oct 2004
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 06-28-2008, 12:00 AM
friend01 friend01 is offline
 
Join Date: Jan 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by khaleel View Post
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:
Reply With Quote
  #8  
Old 06-28-2008, 12:34 AM
Scarface Claw Scarface Claw is offline
 
Join Date: May 2008
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does the tag have to be

[ ttyoutube ][ /ttyoutube ]

Or can it just be

[ youtube ][ /youtube]

-Minus the spaces of course.
Reply With Quote
  #9  
Old 06-28-2008, 12:45 AM
friend01 friend01 is offline
 
Join Date: Jan 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Scarface Claw View Post
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!
Reply With Quote
  #10  
Old 06-28-2008, 01:20 AM
Scarface Claw Scarface Claw is offline
 
Join Date: May 2008
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thought so.

I might give this a go.

Thanks.
Reply With Quote
Reply

Thread Tools

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 02:36 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.04702 seconds
  • Memory Usage 2,304KB
  • 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
  • (1)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
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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
  • (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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete