Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[BB Code] YouTube embedded video Details »»
[BB Code] YouTube embedded video
Version: 1.00, by Danny W Danny W is offline
Developer Last Online: Dec 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-25-2006 Last Update: Never Installs: 255
 
No support by the author.

I didnt see anyone else release this so i thought i'd release it

What this code does is allow your members to embed YouTube Videos
into their posts. As YouTube url's always begin with http://www.youtube.com/v/
all your users need to do is copy and paste the last bit of url (found on the
YouTube site for whatever video they want to post) inside the tags (see the example below).

To Install:
1. Go To Admin CP
2. Scroll down the left nav and select Custom BB Codes
3. Add New BB Code
4. Fill in the following:

Title: YouTube BB Code
Tag: yt (You can change this to whatever you prefer, yt is just nice and small )
Replacement:
Code:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
Example: [yt]ejOJkcs-a7s[/yt]
Description: Embeds You Tube Videos
Use {Option}: No

Enjoy! (Although its not much, this is my first release on vb.org )

Show Your Support

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

Comments
  #72  
Old 10-28-2006, 11:16 PM
Carmen27 Carmen27 is offline
 
Join Date: May 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's not working for me.. 3.6.2

Carmen
Reply With Quote
  #73  
Old 10-28-2006, 11:18 PM
Carmen27 Carmen27 is offline
 
Join Date: May 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't see where I need to click so I can add my video..

this sucks cuz none of my videos are working with Anymedia and I was hoping this one would work.. Carmen
Reply With Quote
  #74  
Old 10-30-2006, 06:25 PM
pscoln1 pscoln1 is offline
 
Join Date: Jun 2006
Location: NYC
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work with vbulletin version 3.5.4?
Reply With Quote
  #75  
Old 10-31-2006, 06:45 AM
chkdgate's Avatar
chkdgate chkdgate is offline
 
Join Date: Jun 2006
Location: US
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ibuddy
This is awesome I was looking for this because im not familiar with bbcode.

But real quick I actually made it so the videos AUTO PLAY! which is pretty cool so your users dont have to click play, here is that code:
PHP Code:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}&autoplay=1"></param><embed src="http://www.youtube.com/v/{param}&autoplay=1" type="application/x-shockwave-flash" width="425" height="350"></embed></object
Can you please elaborate on this a little? Which part of the code do you modify? I tried several ways with no success.
Reply With Quote
  #76  
Old 10-31-2006, 09:48 AM
fishhub fishhub is offline
 
Join Date: Aug 2006
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it worked well initially. But I do not understand why it does not work today?

I got this.

rKpeDIFeV6U&autoplay=1">rKpeDIFeV6U&autoplay=1" type="application/x-shockwave-flash" width="425" height="350">
Reply With Quote
  #77  
Old 11-04-2006, 05:19 PM
smoknz28's Avatar
smoknz28 smoknz28 is offline
 
Join Date: Sep 2005
Location: SoCal
Posts: 257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have added to my site, but can't get the YouTube video to embed.

What part of the code are we to input? Here's the code I'm trying to get embeded:

http://www.youtube.com/watch?v=sjVSjQpowMM

Seems that YouTube has changed their code to all start with http://www.youtube.com/watch?v= I've changed the BB Code to start with this, but still no go. I wonder if YouTube caught on to this and changed their code to battle it?

Here's what I changed the code to read:

<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/watch?v={param}">
</param><embed src="http://www.youtube.com/watch?v={param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>

Thanks,
Mark
www.f-bodyhideout.com/forums
Reply With Quote
  #78  
Old 11-04-2006, 07:23 PM
Reverend Reverend is offline
 
Join Date: Mar 2002
Location: England
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by smoknz28
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/watch?v={param}">
</param><embed src="http://www.youtube.com/watch?v={param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
We are using the original code that Danny posted and it still works fine for us.


Quote:
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/{param}">
</param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
Reply With Quote
  #79  
Old 11-04-2006, 09:37 PM
smoknz28's Avatar
smoknz28 smoknz28 is offline
 
Join Date: Sep 2005
Location: SoCal
Posts: 257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay thanks....yea, all is well.

Thanks
Reply With Quote
  #80  
Old 11-09-2006, 02:48 AM
burntire burntire is offline
 
Join Date: Jun 2006
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Freesteyelz
The popup menus will display behind the video so I've added the "transparency" value so that the menu will now display in front of the video as such:

Code:
<object width="460" height="364">
<param name="movie" value="http://www.youtube.com/v/{param}">
<param name="wmode" value="transparent">
<embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="460" height="364" wmode="transparent">
</embed>
</object>
Anyway, thanks for the mod.
This code was needed to work with internet explorer 7
Thanks
Reply With Quote
  #81  
Old 11-09-2006, 05:07 AM
burntire burntire is offline
 
Join Date: Jun 2006
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wii
Would be nice to avoid the "click to active and use this control".
This only seems to apply to IE. It takes 2 clicks to get the video playing in IE and 1 in firefox.

Any way around this to make IE a single click?
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:10 AM.


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.04847 seconds
  • Memory Usage 2,318KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_php
  • (5)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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