Streamable Embed
#1
[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.
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply
#2
(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
Reply
#3
See https://docs.mybb.com/1.6/Admin-CP-Config-MyCode/

I have no access to your forum.
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply
#4
(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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)