Brandy Source

Lounge => General Discussion => Topic started by: Admin on June 21, 2015, 01:33:25 PM

Title: How to embed Youtube vids / change image size
Post by: Admin on June 21, 2015, 01:33:25 PM
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://.

License
Copyright (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:
(http://i.minus.com/iXBDkR0wBKcfS.gif)


Example of img-code with customized width
[img width=100]http://i.minus.com/iXBDkR0wBKcfS.gif[/img]
(http://i.minus.com/iXBDkR0wBKcfS.gif)


Example of img-code with customized width AND height
[img width=400 height=550]http://i.minus.com/iXBDkR0wBKcfS.gif[/img]
(http://i.minus.com/iXBDkR0wBKcfS.gif)
Title: Re: How to embed Youtube Videos
Post by: MelMel on June 21, 2015, 04:35:03 PM
thanks bby
Title: Re: How to embed Youtube Videos
Post by: Admin on June 21, 2015, 05:31:58 PM
Quote from: MelMel on June 21, 2015, 04:35:03 PM
thanks bby
<3 :stressed:
Title: Re: How to embed Youtube Videos
Post by: JaMuzik on June 21, 2015, 07:02:35 PM
How do you do autoplay and start time? Same as before?
Title: Re: How to embed Youtube Videos
Post by: Admin on June 22, 2015, 06:25:18 AM
Quote from: JaMuzik on June 21, 2015, 07:02:35 PM
How do you do autoplay and start time? Same as before?
Yes
Add ?autoplay=1&start=22


[youtube autoplay=1 start=22]https://www.youtube.com/watch?v=RokWWGERs_8[/youtube]
Title: How to change image size in a post
Post by: Admin on June 22, 2015, 12:22:10 PM
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:
(http://i.minus.com/iXBDkR0wBKcfS.gif)


Example of img-code with customized width
[img width=100]http://i.minus.com/iXBDkR0wBKcfS.gif[/img]
(http://i.minus.com/iXBDkR0wBKcfS.gif)


Example of img-code with customized width AND height
[img width=400 height=550]http://i.minus.com/iXBDkR0wBKcfS.gif[/img]
(http://i.minus.com/iXBDkR0wBKcfS.gif)
Title: Re: How to embed Youtube Videos
Post by: Admin on June 24, 2015, 01:35:21 PM
Updated first post :cheerup:
Title: Re: How to embed Youtube Videos
Post by: Jon on June 24, 2015, 02:07:20 PM


yas squid!!!!
Title: Re: How to change image size in a post
Post by: Stewie on September 21, 2015, 11:31:34 PM
bncvbbcxvxxcxbcxfxbnvcbncvbcvb