Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[BB Code] YouTube embedded video Details »»
[BB Code] YouTube embedded video
Mod Version: 1.00, by Danny W (Contributor) Danny W is offline
Developer Last Online: Dec 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.4 Rating: (21 votes - 4.71 average) Installs: 255
Released: 26 Mar 2006 Last Update: Never Downloads: 1584
Not Supported  

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:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 )

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	vborg.jpg
Views:	3266
Size:	55.5 KB
ID:	44816

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
MotoVid embedded video Code tyros2k vBulletin 3.5 Template Modifications 0 09 Sep 2008 13:30
Automatic Embedded Video (youtube, plus many more) mfyvie Modification Graveyard 207 30 Jun 2007 10:15
Break embedded video [BB Code] Rickie3 vBulletin 3.5 Template Modifications 6 02 Apr 2007 04:50
Metacafe embedded video [BB Code] Rickie3 vBulletin 3.5 Template Modifications 12 04 Nov 2006 21:47

  #76  
Old 04 Nov 2006, 18:19
smoknz28's Avatar
smoknz28 smoknz28 is offline
 
Join Date: Sep 2005
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

Last edited by smoknz28 : 04 Nov 2006 at 18:57.
Reply With Quote
  #77  
Old 04 Nov 2006, 20:23
Reverend Reverend is offline
 
Join Date: Mar 2002
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.


<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>
__________________
Techzonez - Tech News | Forums
Reply With Quote
  #78  
Old 04 Nov 2006, 22:37
smoknz28's Avatar
smoknz28 smoknz28 is offline
 
Join Date: Sep 2005
Okay thanks....yea, all is well.

Thanks
Reply With Quote
  #79  
Old 09 Nov 2006, 03:48
burntire burntire is offline
 
Join Date: Jun 2006
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Anyway, thanks for the mod.
This code was needed to work with internet explorer 7
Thanks
__________________
www.highperformancestangs.com
Reply With Quote
  #80  
Old 09 Nov 2006, 06:07
burntire burntire is offline
 
Join Date: Jun 2006
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?
__________________
www.highperformancestangs.com
Reply With Quote
  #81  
Old 11 Nov 2006, 02:53
The Notorious's Avatar
The Notorious The Notorious is offline
 
Join Date: Jan 2006
Here's a better version for the button image, right size.
Reply With Quote
  #82  
Old 30 Nov 2006, 11:42
snobird1211 snobird1211 is offline
 
Join Date: Nov 2006
great thanks installed other one was too much all i need is you tube
Reply With Quote
  #83  
Old 05 Dec 2006, 10:57
perfphysio's Avatar
perfphysio perfphysio is offline
 
Join Date: Sep 2006
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.
Attached Images
File Type: jpg clip_image002.jpg (34.2 KB, 41 views)
Reply With Quote
  #84  
Old 05 Dec 2006, 18:32
Reverend Reverend is offline
 
Join Date: Mar 2002
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??
__________________
Techzonez - Tech News | Forums
Reply With Quote
  #85  
Old 05 Dec 2006, 18:57
perfphysio's Avatar
perfphysio perfphysio is offline
 
Join Date: Sep 2006
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
  #86  
Old 07 Dec 2006, 19:44
Nuguru's Avatar
Nuguru Nuguru is offline
 
Join Date: Jun 2006
Great Firefox Solution!

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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
  #87  
Old 03 Jan 2007, 20:38
darkdiver darkdiver is offline
 
Join Date: Feb 2004
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
  #88  
Old 06 Jan 2007, 17:38
jddphd jddphd is offline
 
Join Date: Jun 2005
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #89  
Old 09 Jan 2007, 15:04
Silviu's Avatar
Silviu Silviu is offline
 
Join Date: Oct 2001
Question

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
__________________
Computer Games Forum - the best Romanian online community
Reply With Quote
  #90  
Old 11 Jan 2007, 05:07
caliman's Avatar
caliman caliman is offline
 
Join Date: Jan 2005
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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 05:35.

Layout Options | Width: Wide Color: