I just installed a specific BB code for Youtube videos that works with regular Youtube links.
[youtube]{youtube link}[/youtube]
[youtube width=x height=y]{youtube link}[/youtube]
[yt]{youtube ID}[/yt]
[yt {parameters}]{youtube ID}[/yt]
[yt_user]{username}[/yt_user]
[yt_user {parameters}]{username}[/yt_user]
[yt_search]{search query}[/yt_search]
[yt_search {parameters}]{search query}[/yt_search]
where
width and
height is specified by
x and
y. If width and height aren't specified, default size is 640x400.
The
yt_user bbcode will show videos by the specified YouTube username.
The
yt_search bbcode will show videos matching the provided search phrase.
Substituting
http://youtube.com,
http://www.youtube-nocookies.com,
http://youtu.be, and
http://www.youtu.be also works.
https:// works instead of
http://.
Optional parameters and values for all YouTube bbcodes are:
- width = Specifies the width of the iframe area.
- height = Specifies the height of the iframe area.
- start = Specifies the number of seconds into the video to start at.
- end = Specifies the number of seconds into the video to stop at.
- autoplay = 1, yes, on or true
- color = red or white
- theme = dark or light
- loop = 1, yes, on or true
- controls = 0, no, off, hide or false
- showinfo = 0, no, off, hide or false
- privacy = 1, yes, on or true
LicenseCopyright (c) 2015, Douglas Orend
All rights reserved.
----------------------------------------------------------------------------------------------------------------------------------------
If you want to customize the image size in a post you have to add
width=##,
height=## or both to the img-code.
Example of regular img-code[img]http://i.minus.com/iXBDkR0wBKcfS.gif[/img]
Result:
Example of img-code with customized width[img width=100]http://i.minus.com/iXBDkR0wBKcfS.gif[/img]
Example of img-code with customized width AND height[img width=400 height=550]http://i.minus.com/iXBDkR0wBKcfS.gif[/img]