YouTube BBCode?

Get help developing custom BBCodes or request one.
Datsun
Registered User
Posts: 8
Joined: Sat Jun 02, 2007 10:20 pm

YouTube BBCode?

Post by Datsun »

hi, i tryed to make a youtube bbcode, but it does not seem to work.

This is what i have done:

BBCode usage:
[youtube]{URL}[/youtube]


HTML replacement:
<object width="425" height="350"><param name="movie" value="{URL}"></param><param name="wmode" value="transparent"></param><embed src="{URL}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>


do i have to enable html or something?
User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Re: YouTube BBCode?

Post by karlsemple »

Code: Select all

[youtube]{IDENTIFIER}[/youtube]

Code: Select all

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}"></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>


Then you do not use the URI but just the video id as show below in my example,
for this http://www.youtube.com/watch?v=Asm7WOi8ux8 video you use

Code: Select all

[youtube]Asm7WOi8ux8[/youtube]
Image
Datsun
Registered User
Posts: 8
Joined: Sat Jun 02, 2007 10:20 pm

Re: YouTube BBCode?

Post by Datsun »

thanks :D

that works like a charm
User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Re: YouTube BBCode?

Post by karlsemple »

Datsun wrote:thanks :D

that works like a charm


That is by no means the only way of getting them to work by the way, I am sure people will have plenty of other methods so you may want to look about the forum for other methods, I know however there is a small bug in the bbcode parsing at the moment which is interfering with some of the other methods which is why I am doing it as above on my forum, its simple and works :)
Image
SlickAxe
Registered User
Posts: 22
Joined: Mon May 31, 2004 12:34 pm

Re: YouTube BBCode?

Post by SlickAxe »

Heej Thanks!

Was looking for this, works just fine! :D
polle
Registered User
Posts: 104
Joined: Fri Mar 31, 2006 10:18 am

Re: YouTube BBCode?

Post by polle »

Any Idea in how to do the same, but using

Code: Select all

[youtube]http://www.youtube.com/watch?v=Asm7WOi8ux8[/youtube]
Instead of

Code: Select all

[youtube]Asm7WOi8ux8[/youtube]
Because all the youtube videos already posted in my site are with the complete address.

Thanks.
User avatar
Marshalrusty
Project Manager
Project Manager
Posts: 29334
Joined: Mon Nov 22, 2004 10:45 pm
Location: New York City
Name: Yuriy Rusko
Contact:

Re: YouTube BBCode?

Post by Marshalrusty »

🇺🇦 Made in Ukraine, exported to the USA 🇺🇸

Have comments/praise/complaints/suggestions? Please feel free to PM me.

Need private help? Hire me for all your phpBB and web development needs
User avatar
hewmac06
Former Team Member
Posts: 847
Joined: Sat Apr 08, 2006 12:04 pm
Location: Bellarine Peninsula, Australia
Name: Hugh

Re: YouTube BBCode?

Post by hewmac06 »

With RC1 using the code below I get two identical working Youtube screens for some reason.
karlsemple wrote:

Code: Select all

[youtube]{IDENTIFIER}[/youtube]

Code: Select all

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}"></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>
Then you do not use the URI but just the video id as show below in my example,
for this http://www.youtube.com/watch?v=Asm7WOi8ux8 video you use

Code: Select all

[youtube]Asm7WOi8ux8[/youtube]
User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Re: YouTube BBCode?

Post by karlsemple »

screen shot of the actual bbcode editing page in the admin panel?
Image
User avatar
hewmac06
Former Team Member
Posts: 847
Joined: Sat Apr 08, 2006 12:04 pm
Location: Bellarine Peninsula, Australia
Name: Hugh

Re: YouTube BBCode?

Post by hewmac06 »

karlsemple wrote:screen shot of the actual bbcode editing page in the admin panel?
Image
User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Re: YouTube BBCode?

Post by karlsemple »

it is obvious from that screen shot that you have pasted the html replacement part twice into the box
Image
User avatar
Simuzer
Registered User
Posts: 35
Joined: Thu Dec 06, 2001 12:06 pm
Location: Türkiye
Contact:

Re: YouTube BBCode?

Post by Simuzer »

i have a problem bbcode of youtube...

i use that..

Code: Select all

[youtube]http://www.youtube.com/watch?v={IDENTIFIER}[/youtube]

Code: Select all

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

Code: Select all

[youtube]YouTube Full URL[/youtube]
if URL BBCode is closed by admin control panel, its shown that youtube video. But, when i sent any topic with URL, it is not shown link.

if URL BBcode is opened by admin control panel, its shown that link, but is not shown youtube video.

Image

Image
http://www.simuzer.com | Bir sen bir de ben..
User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Re: YouTube BBCode?

Post by karlsemple »

karlsemple wrote:

Code: Select all

[youtube]{IDENTIFIER}[/youtube]

Code: Select all

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}"></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>


Then you do not use the URI but just the video id as show below in my example,
for this http://www.youtube.com/watch?v=Asm7WOi8ux8 video you use

Code: Select all

[youtube]Asm7WOi8ux8[/youtube]

This is the way you have to do it, using the URI as you are in your example above will not work as due to the parsing order of the bbcodes :) Not sure if this is going to be changed in the future as I know this was submitted as a bug :)
Image
Megh789
Registered User
Posts: 60
Joined: Thu May 31, 2007 8:13 pm

Re: YouTube BBCode?

Post by Megh789 »

nice one...thanx...woking great.
User avatar
eddywatson
Registered User
Posts: 220
Joined: Wed Aug 30, 2006 8:35 pm
Location: England
Contact:

Re: YouTube BBCode?

Post by eddywatson »

ive a problem. i used that new BBcode

and sometimes it works fine, sometimes i need to add an " - " before the code i need to enter for the video
and sometimes i get an active X control option that makes the youtube video box go white with nothing in it.

any suggestions?

cheers
Image
OTHockey Forums
Post Reply

Return to “Custom BBCode Development and Requests”