MyBB Community Forums

Full Version: Streamable Embed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[Image: L8pjmDG.jpg]

The following will allow your users to embed Streamable videos in their posts.

Regular Expression:
\[streamable\](https:\/\/(?:www\.|(?!www))(streamable)\.com/([a-z0-9]+))\[/streamable\]

Replacement:
<div style="width:100%;height:0px;position:relative;padding-bottom:56.250%;"><iframe src="https://streamable.com/s/$3/votbir" frameborder="0" width="100%" height="100%" allowfullscreen style="width:100%;height:100%;position:absolute;left:0px;top:0px;overflow:hidden;"></iframe></div>

Test Value:
[streamable]https://streamable.com/rlt9h[/streamable]

To allow users to set auto play and mute options you will need to adapt the code.
(2019-01-05, 05:06 AM)Omar G. Wrote: [ -> ]
[Image: L8pjmDG.jpg]

The following will allow your users to embed Streamable videos in their posts.

Regular Expression:
\[streamable\](https:\/\/(?:www\.|(?!www))(streamable)\.com/([a-z0-9]+))\[/streamable\]

Replacement:
<div style="width:100%;height:0px;position:relative;padding-bottom:56.250%;"><iframe src="https://streamable.com/s/$3/votbir" frameborder="0" width="100%" height="100%" allowfullscreen style="width:100%;height:100%;position:absolute;left:0px;top:0px;overflow:hidden;"></iframe></div>

Test Value:
[streamable]https://streamable.com/rlt9h[/streamable]

To allow users to set auto play and mute options you will need to adapt the code.

Where do I put this code?

Also, I didn't do anything, but it appears that streamable embedding may already be supported?  But the title is missing.  Do you know why?

http://sacramentokingsforum.net/showthre...4#pid28334
See https://docs.mybb.com/1.6/Admin-CP-Config-MyCode/

I have no access to your forum.
(2020-09-09, 11:44 PM)Omar G. Wrote: [ -> ]See https://docs.mybb.com/1.6/Admin-CP-Config-MyCode/

I have no access to your forum.

I added the my code and when trying on an actual thread nothing shows at all. it is completely blank, no frame no nothing. When I try the MYCode test option in AdminCP it works in there but not on the actual forum, I use the base theme too