This is How to Simply Embed ANY Youtube & Google Video

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Anti-Spam Guide
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
User avatar
Frodosringfinger
Registered User
Posts: 226
Joined: Mon Oct 16, 2006 1:45 am
Location: Maryland

This is How to Simply Embed ANY Youtube & Google Video

Post by Frodosringfinger »

I figured it out. Looked through all the other youtube bb code threads, couldn't get anything to work really, so I just tried this:

YOUTUBE:
BB Code:

Code: Select all

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

HTML Replacement:

Code: Select all

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
This allows you to embed youtube videos just like you used to. Just copy the EMBED code off the actual youtube page and paste it within the [youtube][/youtube]


GOOGLE VIDEO:
BB Code:

Code: Select all

[googlevideo]<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId={SIMPLETEXT}&hl=en" flashvars=""> </embed>[/googlevideo]
HTML Replacement:

Code: Select all

<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId={SIMPLETEXT}&hl=en" flashvars=""> </embed>
Just copy the EMBED code from the actual Google Video page and past it within the [googlevideo][/googlevideo]

I'll be adding other sites such as Break, Myspace, and a few others later.
Last edited by Frodosringfinger on Fri May 25, 2007 7:40 pm, edited 3 times in total.
SnipesVdH
Registered User
Posts: 13
Joined: Sun Oct 15, 2006 1:37 am

Re: This is How to Make Any Youtube Video Embed

Post by SnipesVdH »

Works like a charm, thanks :lol:
User avatar
echo2k5
Registered User
Posts: 197
Joined: Sun May 21, 2006 6:09 pm
Location: 3 paces to the west.
Contact:

Re: This is How to Make Any Youtube Video Embed

Post by echo2k5 »

Good job Frodo! Guess who this is? :mrgreen:
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: This is How to Make Any Youtube Video Embed

Post by Peter77sx »

Sweet. :D
User avatar
Frodosringfinger
Registered User
Posts: 226
Joined: Mon Oct 16, 2006 1:45 am
Location: Maryland

Re: This is How to Make Any Youtube Video Embed

Post by Frodosringfinger »

No idea...

:roll:
niuck
Registered User
Posts: 6
Joined: Tue Jul 05, 2005 12:52 pm

Re: This is How to Simply Embed ANY Youtube & Google Video

Post by niuck »

Nice, I dont wanna be an asshole, but. Is there any way to modify it so we can use the whole URL with the tags like: [youtube]http://www.youtube.com/watch?v=c1d_6sKdyKM[/youtube] ?
I guess there are more peeps out there that have forums full with that stuff. :)
User avatar
Frodosringfinger
Registered User
Posts: 226
Joined: Mon Oct 16, 2006 1:45 am
Location: Maryland

Re: This is How to Simply Embed ANY Youtube & Google Video

Post by Frodosringfinger »

Dont really know. Just fool around with stuff. I personally love this way. Use the embed code to embed it, no learning curve on that.
jester77
Registered User
Posts: 76
Joined: Sat Nov 11, 2006 4:22 pm
Name: Jon

Re: This is How to Simply Embed ANY Youtube & Google Video

Post by jester77 »

Thanks for the code, it works really well but I'm left with 'object width="425" height="350' text below the video box, is that normal.
User avatar
snkhan
Registered User
Posts: 110
Joined: Sun Aug 03, 2003 6:34 pm
Location: United Kingdom
Contact:

Re: This is How to Simply Embed ANY Youtube & Google Video

Post by snkhan »

niuck wrote:Is there any way to modify it so we can use the whole URL with the tags like: [youtube]http://www.youtube.com/watch?v=c1d_6sKdyKM[/youtube] ?
I guess there are more peeps out there that have forums full with that stuff. :)
I'd certainly be interested if anyone found a workaround for this?

Cheers,

Saj
snkhan.co.uk
ScreWe
Registered User
Posts: 31
Joined: Fri Jun 01, 2007 11:11 pm
Location: http://ourdeviation.net/
Contact:

Re: This is How to Simply Embed ANY Youtube & Google Video

Post by ScreWe »

heres wat i use

BBCODE:
[youtube]{TEXT}[/youtube]

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

that way all u need is the number
Ida
Registered User
Posts: 119
Joined: Tue Dec 27, 2005 11:16 pm
Location: France
Contact:

Re: This is How to Simply Embed ANY Youtube & Google Video

Post by Ida »

Frodosringfinger wrote:YOUTUBE:
BB Code:

Code: Select all

[youtube]<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>[/youtube]
Why is there HTML in the BBCode syntax ? All HTML should be in "HTML replacement" ;)

Code: Select all

[youtube]{SIMPLETEXT}[/youtube]

should be enough for the BBCode part. :?
{<§ Gamall Wednesday Ida §>}
-> phpBB 2 <-> 3 smilies packs convertor (to convert your old packs) ; GaTeX: An ASCII Document Formatting System (to create clean readmes easily, for instance) ; Hiding Glyph: Bytewise Image Steganography (Hide any files into a bitmap image)
freak020
Registered User
Posts: 135
Joined: Fri Mar 30, 2007 8:13 pm

Re: This is How to Simply Embed ANY Youtube & Google Video

Post by freak020 »

niuck wrote:Nice, I dont wanna be an asshole, but. Is there any way to modify it so we can use the whole URL with the tags like: [youtube]http://www.youtube.com/watch?v=c1d_6sKdyKM[/youtube] ?
I guess there are more peeps out there that have forums full with that stuff. :)
I tried making one where it works like that, however it didn't work. I did manage to make one that works like this though:

Code: Select all

[youtube=http://www.youtube.com/watch?v=AYxu_MQSTTY][/youtube]
Here it is:
BB Code Usage:

Code: Select all

[youtube=http://www.youtube.com/watch?v={SIMPLETEXT}][/youtube]
HTML Replacement:

Code: Select all

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
Last edited by freak020 on Fri Sep 21, 2007 11:03 pm, edited 1 time in total.
DelvarWorld
Registered User
Posts: 203
Joined: Thu Sep 04, 2003 10:56 pm
Location: noplarbp

Re: This is How to Simply Embed ANY Youtube & Google Video

Post by DelvarWorld »

Ida wrote: Why is there HTML in the BBCode syntax ? All HTML should be in "HTML replacement" ;)
This is very true. Your first post is very wrong.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
quick5pnt0
Registered User
Posts: 1083
Joined: Sun May 16, 2004 1:16 am
Contact:

Re: This is How to Simply Embed ANY Youtube & Google Video

Post by quick5pnt0 »

DelvarWorld wrote:
Ida wrote: Why is there HTML in the BBCode syntax ? All HTML should be in "HTML replacement" ;)
This is very true. Your first post is very wrong.
Well the problem is that if you don't put all of that HTML in the BBcode section it wont work. It'll only work as he posted it. Otherwise you need to just input the video id and not the entire embed code.
Ida
Registered User
Posts: 119
Joined: Tue Dec 27, 2005 11:16 pm
Location: France
Contact:

Re: This is How to Simply Embed ANY Youtube & Google Video

Post by Ida »

quick5pnt0 wrote:Well the problem is that if you don't put all of that HTML in the BBcode section it wont work. It'll only work as he posted it. Otherwise you need to just input the video id and not the entire embed code.
Strange :? I'd like to understand why...

Maybe it would be worth reporting as a bug...

The way I see it, HTML code is not supposed to be entered in the BBcode part. Ever. It you need to do that to make it work, then you have highlighted a flaw of the BBcode system.
{<§ Gamall Wednesday Ida §>}
-> phpBB 2 <-> 3 smilies packs convertor (to convert your old packs) ; GaTeX: An ASCII Document Formatting System (to create clean readmes easily, for instance) ; Hiding Glyph: Bytewise Image Steganography (Hide any files into a bitmap image)
Locked

Return to “[3.0.x] Support Forum”