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.
Scam Warning

This is How to Simply Embed ANY Youtube & Google Video

Postby Frodosringfinger » Fri May 25, 2007 5:30 pm

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.
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

Postby SnipesVdH » Fri May 25, 2007 6:30 pm

Works like a charm, thanks :lol:
SnipesVdH
Registered User
 
Posts: 13
Joined: Sun Oct 15, 2006 1:37 am

Re: This is How to Make Any Youtube Video Embed

Postby echo2k5 » Fri May 25, 2007 6:43 pm

Good job Frodo! Guess who this is? :mrgreen:
User avatar
echo2k5
Registered User
 
Posts: 197
Joined: Sun May 21, 2006 6:09 pm
Location: 3 paces to the west.

Re: This is How to Make Any Youtube Video Embed

Postby Peter77sx » Fri May 25, 2007 7:05 pm

Sweet. :D
Peter77sx
Registered User
 
Posts: 3072
Joined: Wed Nov 09, 2005 2:51 pm
Location: Michigan
Name: Pete

Re: This is How to Make Any Youtube Video Embed

Postby Frodosringfinger » Fri May 25, 2007 7:14 pm

No idea...

:roll:
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

Postby niuck » Fri May 25, 2007 9:55 pm

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. :)
niuck
Registered User
 
Posts: 6
Joined: Tue Jul 05, 2005 12:52 pm

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

Postby Frodosringfinger » Fri May 25, 2007 10:16 pm

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.
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

Postby jester77 » Sun Jun 03, 2007 5:39 pm

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.
jester77
Registered User
 
Posts: 35
Joined: Sat Nov 11, 2006 4:22 pm

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

Postby snkhan » Mon Jun 04, 2007 11:15 am

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
User avatar
snkhan
Registered User
 
Posts: 108
Joined: Sun Aug 03, 2003 6:34 pm
Location: United Kingdom

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

Postby ScreWe » Mon Jun 04, 2007 11:29 am

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
ScreWe
Registered User
 
Posts: 31
Joined: Fri Jun 01, 2007 11:11 pm
Location: http://ourdeviation.net/

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

Postby Ida » Mon Jun 04, 2007 4:25 pm

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)
User avatar
Ida
Registered User
 
Posts: 119
Joined: Tue Dec 27, 2005 11:16 pm
Location: France

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

Postby freak020 » Mon Jun 04, 2007 8:30 pm

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.
freak020
Registered User
 
Posts: 135
Joined: Fri Mar 30, 2007 8:13 pm

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

Postby DelvarWorld » Tue Jun 05, 2007 1:29 am

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.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
User avatar
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

Postby quick5pnt0 » Tue Jun 05, 2007 3:55 am

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.
quick5pnt0
Registered User
 
Posts: 1083
Joined: Sun May 16, 2004 1:16 am

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

Postby Ida » Tue Jun 05, 2007 8:50 am

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)
User avatar
Ida
Registered User
 
Posts: 119
Joined: Tue Dec 27, 2005 11:16 pm
Location: France

Next

Return to 3.0.x Support Forum

Who is online

Users browsing this forum: Bing [Bot], fdm91pbb, Lewis2212, Marshalrusty, Noxwizard, Oyabun1, Vikestart and 72 guests