Help YouTube BBcode

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

Help YouTube BBcode

Post by Nully »

Hello,

the BBcode I have works perfectly with the complete link (not the numbers after v=), while the code is

Code: Select all

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

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>
For example, the all link -http://www.youtube.com/watch?v=H7FpquU5tvQ
is ok.

But now, YouTube give a short link, example for the same video :
-http://youtu.be/H7FpquU5tvQ

and the short link does not work with my BBcode.

Do you know which code could work ?
I cannot change the 1st one, because I have too many videos on my forum.
But I think I could add an other one.

Help YouTube BBcode

Post by Terr0r »

Try this one

bbcode usage:

Code: Select all

[ytshort]http://youtu.be/{IDENTIFIER}[/ytshort]
HTML Replacement:

Code: Select all

<object width="420" height="315"><param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}?version=3&hl=nl_NL"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/{IDENTIFIER}?version=3&hl=nl_NL" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
Helpline:

Code: Select all

Youtube Shortlink[ytshort]Short link from youtube[/ytshort]
Example:

Code: Select all

[ytshort]http://youtu.be/QGlCK90gVNM[/ytshort]
I hope it is usefull for you

this code is working for me

Greets Terr0r

Help YouTube BBcode

Post by Nully »

Hi Terr0r,
it does not work :(

I can see that you writed NL. What is it ? Neederland ?

The link of the example of my video is :
-http://www.youtube.com/watch?v=H7FpquU5 ... e=youtu.be

and if you click on "share", it becomes :
-http://youtu.be/H7FpquU5tvQ

(to work with my bbcode, I have to click on option>full link)

Edit about one hour later

Now it works :D

Code: Select all

<object width="420" height="315"><param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}?version=3&hl=fr_FR&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/{IDENTIFIER}?version=3&hl=fr_FR&rel=0" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
and I modified....

Code: Select all

    [ytshort]http://youtu.be/{IDENTIFIER}[/ytshort]
did you modified it ?! Before, I think there was something like

Code: Select all

    [ytshort]http://youtu.be/-{IDENTIFIER}[/ytshort]
Anyway, now its ok.
I just have to add it in the posting_bottom.html
Last edited by Nully on 05 Nov 2011, 20:36, edited 3 times in total.

Help YouTube BBcode

Post by Vox Populi »

Have you tried a code where you only have to enter H7FpquU5tvQ and nothing else?

Help YouTube BBcode

Post by Vox Populi »

Try this:

BBCode Usage:

Code: Select all

[youtubeC]{SIMPLETEXT}[/youtubeC]
HTML

Code: Select all

<object width="480" height="385"><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="480" height="385"></embed></object>
Help:

Code: Select all

Use the Code Only    [youtubeC]CODE[/youtubeC]
So for you it'd look like [youtubeC]hqyzWxxvwz[/youtubeC]

This is one of the two that I use. Can't recall where I got it though so can't credit anybody. I know it's not mine.

Help YouTube BBcode

Post by Nully »

Thanks Vox Populi.
You wrote while I was writing!
A long time ago I had the BBcode like this, but the users of my forum were not able to find the wright numbers :)
For them it is more simple to put the complete link.

Help YouTube BBcode

Post by Vox Populi »

Heck, with the shortcode, it'd be hard to make a mistake getting just the code. Ban them!!! :)

Help YouTube BBcode

Post by Terr0r »

@Nully Yes I comes from the netherlands

I have changing the code for you but some short URL youtube links there whit this in it -
so you can use the code from me or what you have edit or that from Vox Populi.
it is on you what you are will use I have try to my best to make a good working video bbcode for you


EDIT
Vox Populi thanks for you video bbcode :thumb: nice work

Help YouTube BBcode

Post by Nully »

Thanks to both of you. I will ban all my users if now they are not able to use the "normal" Youtube bbcode or the short one :P