youtube bbcode

Get help developing custom BBCodes or request one.
Post Reply
admiral huddy
Registered User
Posts: 39
Joined: Wed Nov 21, 2012 4:47 pm

youtube bbcode

Post by admiral huddy »

Sorry if this is the wrong forum..please feel free to move.

As far as I' concerned, you should be able to enter a youtube ID between the youtube bbcode to embed a clip without having to type the whole address, for example,



However, we are having to enter the following:

[youtube]http://www.youtube.com/watch?v=a_1234567[/youtube]

I was under the impression the using the youtube bbcode would automatically substitute the address part using a parameter for the ID code?

Any ideas?

thanks in advance
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52049
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: youtube bbcode

Post by Brf »

That would depend on what custom code you are using for your youtube bbcode.
admiral huddy
Registered User
Posts: 39
Joined: Wed Nov 21, 2012 4:47 pm

Re: youtube bbcode

Post by admiral huddy »

does this help?

Code: Select all

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/{IDENTIFIER}&rel=en&fs=1&color1=0x234900&color2=0xd4d4d4" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

User avatar
Brf
Support Team Member
Support Team Member
Posts: 52049
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: youtube bbcode

Post by Brf »

If you were actually using that code, then you would only have to enter the identifier....

See this?

Code: Select all

<embed src="http://www.youtube.com/v/{IDENTIFIER}
If you were actually using that code, entering the identifier in the bbcode would enter it in the URL.
Entering the whole URL, as you are claiming you have to do, would fail, since a URL is not an idenifier.
admiral huddy
Registered User
Posts: 39
Joined: Wed Nov 21, 2012 4:47 pm

Re: youtube bbcode

Post by admiral huddy »

Hi,

Entering just the ID between the YouTube bbcode using above code
doesn't work. Any idea?

Thanks
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52049
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: youtube bbcode

Post by Brf »

What are you using as the BBCode Usage (in the first box)?
User avatar
Lumpy Burgertushie
Registered User
Posts: 67985
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: youtube bbcode

Post by Lumpy Burgertushie »

as much as I hate iframes, this is the best bbcode to use for youtube. it is the easiest for the user since they changed their default type of embedding code to iframe.

bbcode:

Code: Select all

[youtube]{TEXT}embed/{IDENTIFIER}{TEXT2}[/youtube]
html:

Code: Select all

<iframe width="420" height="315" src="http://www.youtube.com/embed/{IDENTIFIER}" frameborder="2"></iframe>
helpline:

when on a youtube page, click on embed and the iframe code is what shows up by default.



robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
admiral huddy
Registered User
Posts: 39
Joined: Wed Nov 21, 2012 4:47 pm

Re: youtube bbcode

Post by admiral huddy »

Brf wrote:What are you using as the BBCode Usage (in the first box)?
yes the one on post 3 is currently what's set up. thanks for your time.
User avatar
5hocK
Registered User
Posts: 3011
Joined: Wed Nov 23, 2011 7:00 pm
Location: England

Re: youtube bbcode

Post by 5hocK »

Are you choosing the right bit of the URL for the ID? Your example
admiral huddy wrote:

However, we are having to enter the following:

[youtube]http://www.youtube.com/watch?v=a_1234567[/youtube]
Would mean using a_1234567 not 12345678
Use everything after the =

For the record, the code posted here: works
Last edited by 5hocK on Fri Sep 20, 2013 4:02 pm, edited 1 time in total.
A thread is pretty much a topic. Stop with the pedantics will ya.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52049
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: youtube bbcode

Post by Brf »

admiral huddy wrote:
Brf wrote:What are you using as the BBCode Usage (in the first box)?
yes the one on post 3 is currently what's set up. thanks for your time.
That is not the "BBCode Usage in the first box".
That is the "HTML Replacement in the second box"
Post Reply

Return to “Custom BBCode Development and Requests”