Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications

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
  #42  
Old 08-11-2006, 06:46 AM
chkdgate's Avatar
chkdgate chkdgate is offline
 
Join Date: Jun 2006
Location: US
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^ How are you entering your tags?

Anyone figure out how to set permissions?
Reply With Quote
  #43  
Old 08-14-2006, 07:39 AM
Lalib's Avatar
Lalib Lalib is offline
 
Join Date: Mar 2006
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks installed
Reply With Quote
  #44  
Old 08-14-2006, 05:56 PM
matt3830 matt3830 is offline
 
Join Date: Dec 2005
Location: Vancouver Canada
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to change this so that users can just enter the entire youtube url. Some of users have a hard time figuring out what piece of the url to use.
Reply With Quote
  #45  
Old 08-14-2006, 08:44 PM
chkdgate's Avatar
chkdgate chkdgate is offline
 
Join Date: Jun 2006
Location: US
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's just the number tag, that's it. Just post an announcement on your forum with a screen capture of what to look for.
Reply With Quote
  #46  
Old 08-16-2006, 06:29 AM
Gbml2u's Avatar
Gbml2u Gbml2u is offline
 
Join Date: Mar 2006
Location: Inside
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

enjoy
Reply With Quote
  #47  
Old 08-18-2006, 07:13 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by giorgiotave
Have problem with layout



??
Use the wmode attribute in the replacement..

Example:
Code:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}"></param><param name="wmode" value="opaque"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350" wmode="opaque"></embed></object>
This may not work on some custom skins, however.
Reply With Quote
  #48  
Old 08-19-2006, 11:44 AM
giorgiotave giorgiotave is offline
 
Join Date: Nov 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, now is ok
Reply With Quote
  #49  
Old 08-21-2006, 01:07 AM
matt3830 matt3830 is offline
 
Join Date: Dec 2005
Location: Vancouver Canada
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Small problem using this in internet explorer 7. I have this setup with a button icon. A user highlights the video id in there entry and clicks the 'youtube' button. The tags are then insterted, like this:

[yt]lkjd9845[/yt]

But, in IE7 it does this:

[yt]
lkjd9845
[/yt]

The video just shows a blank white box, unless the user goes in a puts it all on one line. Any idea why this is happening?
Reply With Quote
  #50  
Old 08-23-2006, 11:47 AM
GreysAnatomy's Avatar
GreysAnatomy GreysAnatomy is offline
 
Join Date: May 2005
Location: Chocoland
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfectly fine on my 3.6.0 too, thanks!
Reply With Quote
  #51  
Old 09-08-2006, 04:41 AM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

worked great!
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 09:14 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.04573 seconds
  • Memory Usage 2,301KB
  • 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_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
  • (1)pagenav_pagelinkrel
  • (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