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
  #82  
Old 11-11-2006, 01:53 AM
The Notorious's Avatar
The Notorious The Notorious is offline
 
Join Date: Jan 2006
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a better version for the button image, right size.
Reply With Quote
  #83  
Old 11-30-2006, 10:42 AM
snobird1211 snobird1211 is offline
 
Join Date: Nov 2006
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great thanks installed other one was too much all i need is you tube
Reply With Quote
  #84  
Old 12-05-2006, 09:57 AM
perfphysio's Avatar
perfphysio perfphysio is offline
 
Join Date: Sep 2006
Location: London, UK
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My you tube BB Code has stopped working in 3.6.4 in firefox browser 1.5.0.8

It mall formats the actual link. You can see an axample at the beginning of an existing post at http://www.physiobob.com/forum/showthread.php?t=3510

The first word was a link working perfectly until a recent upgrade. This might be a firefox issue or it might be a vbulletin issue. This is because I also have now seen that my plugin which does the same thing for adding utube plugins is also asking to install a plug to make it work!

I attach a screen shot of that as well for you interest in case it help to work out where the issue might be coming from.
Reply With Quote
  #85  
Old 12-05-2006, 05:32 PM
Reverend Reverend is offline
 
Join Date: Mar 2002
Location: England
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by perfphysio View Post
My you tube BB Code has stopped working in 3.6.4 in firefox browser 1.5.0.8

It mall formats the actual link. You can see an axample at the beginning of an existing post at http://www.physiobob.com/forum/showthread.php?t=3510
The link in that post that you mention is unresolvable, and why is there an asterisk in it?

http://www.physiobob.com/forum/*http://en.wikipedia.org/wiki/Plantar

And what exactly has that problem got to do with this YouTube Mod??
Reply With Quote
  #86  
Old 12-05-2006, 05:57 PM
perfphysio's Avatar
perfphysio perfphysio is offline
 
Join Date: Sep 2006
Location: London, UK
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Reverend View Post
The link in that post that you mention is unresolvable, and why is there an asterisk in it?

http://www.physiobob.com/forum/*http...g/wiki/Plantar

And what exactly has that problem got to do with this YouTube Mod??
This is the BUG/Issue. This is therefore not working any longer in IE or Firefox. The link is not resolving correctly for wikipedia? I have no idea why there is a * in there? Also the end should say Plantar_fasciitis in the link not just Plantar
Reply With Quote
  #87  
Old 12-07-2006, 06:44 PM
Nuguru Nuguru is offline
 
Join Date: Jun 2006
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nxs View Post
Installed over "anymedia" after all why use a sledgehammer on a small nail.

Changed the BBcode tho, may be of use to others so posted it here (we also take advantage of autoplay the video is not played until the user clicks AGREE to a small disclaimer. Some code borrowed from the anymedia plugin so credit where its due

Code:
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="466">
  <tr><td class="smallfont"><strong>IMPORTANT NOTICE:</strong> No media files are hosted on these forums. By clicking the link below you agree to view content from an external website. We can not be held responsible for the suitability or legality of this material.</div></td></tr>
  <tr><td class="smallfont" align="right"><a href="#" onclick="return toggle_collapse('{param}')"></a><a href="#" onclick="return toggle_collapse('{param}')"> I AGREE</a></td></tr>
  <tbody id="collapseobj_{param}" style="display:none;"><tr><td class="alt1" align="center"><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></td></tr></tbody>
</table>
Normal



After clicking 'AGREE'

p.s. Power Rangers rule


Hello,

For some reason videos were not showing up when using the initial code so I installed this and now the videos show up great in firefox.

Thanks, this worked great for fixing the firefox problem. Now off to test opera. Boy, I hope it works.

Nuguru
Reply With Quote
  #88  
Old 01-03-2007, 07:38 PM
darkdiver darkdiver is offline
 
Join Date: Feb 2004
Location: Germany
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice thing, but how can i restrict some Forums to allow or not to use this code. I woud like to have same control about this funktion like the "img" bb-code.

Regards
Eric
Reply With Quote
  #89  
Old 01-06-2007, 04:38 PM
jddphd jddphd is offline
 
Join Date: Jun 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Recommendation -

When you post a Youtube video near the top of a thread (I'm using the legacy postbit too) and subsequently try to use the Thread Tools drop down to edit/stick/whatever, the menu drops down behind the YouTube layer.

One of my admins suggested the following alteration:

Code:
<object width="425" height="350"><param name="wmode" value="transparent"></param><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed wmode="transparent" src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
Reply With Quote
  #90  
Old 01-09-2007, 02:04 PM
Silviu's Avatar
Silviu Silviu is offline
 
Join Date: Oct 2001
Location: Bucharest, Romania
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's a 100$ question

Is there any way to "hide" the YouTube video under a button, like a spoiler tag for instance? Here's an example of what I mean:

http://forum.computergames.ro/11-rpg...l#post36649080

The Spoiler tag code looks like this:

<div class="spoiler" style="display:inline"><input type="button" class="button" onClick="showSpoiler(this);" value="Show spoiler: {option}"> <span class="content" style="display:none">{param}</span></div>

And the example: [spoiler=My movie Title]My neat spoiler[/spoiler]

Any help would be greatly appreciated
Reply With Quote
  #91  
Old 01-11-2007, 04:07 AM
caliman's Avatar
caliman caliman is offline
 
Join Date: Jan 2005
Location: California
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have an idea as well.

There is a perfect compliment to this mod.
We need to figure out how to add the YouTube button as an Icon on the forum index next to posts that have videos embedded in them.


I brought this up in the mod suggestion forum recently.

Much like the paperclip shows up for attachments.

SOMEBODY HELP! THIS WOULD BE GREAT, NO?

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 01:23 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.05121 seconds
  • Memory Usage 2,322KB
  • 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
  • (3)bbcode_code
  • (3)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