s9e Media BBCodes pack

s9e Media BBCodes pack 20231102

No permission to download
Why is regular Facebook embed's (such as a text post containing a few lines) iframe height fixed to 360px?

The minimum height is 100px but browsers don't reliably provide measurements for documents that are smaller than the original iframe. IE/Firefox give a set of dimensions, Chrome/Safari give another. I could make the original iframe smaller but then it would be more disruptive to the layout when the embedded post loads and the iframe is resized. I'm not sure which one is worse.
 
  • Like
Reactions: Xon
Hi,
at first, thx for this amazing plugin!

We are using https on our side, today I noticed the "green lock" disappeared on forum threads with embedded http://plays.tv/ videos.
When I visist the page I noticed that this page is available via https but there lock is also gone due to mixed content.
This seems to be an issue on their site, but I wanted to ask if you could add an option to stop auto embedding media from non https sites?
 
This seems to be an issue on their site, but I wanted to ask if you could add an option to stop auto embedding media from non https sites?

Not as such, but you can exclude individual sites in the options. Go to the admin panel in Home > Options > s9e Media Pack then add "playstv" in the box that says "Excluded sites".
 
It must be a very old version you are using, Ustream was added in November 2013.

Looks like I was just being a retard above: did not remember that i have to enable gaming stuff to use Ustream.

But still having trouble embedding the Drag Racing - 400 Thunder URL.
 
Hi
Can you add support for gyazo, and specially gifs?

I tried manually but xenforo cant see the difference (obviously)

with png
Match URLs: https://gyazo.com/{$id}
Embed HTML:
HTML:
<a href="https://i.gyazo.com/{$id}.png" target="_blank" class="LbTrigger" data-href="misc/lightbox"><img src="https://i.gyazo.com/{$id}.png" class="bbCodeImage LbImage"></a>

but with gif
Match URLs: https://gyazo.com/{$id}
Embed HTML:
HTML:
<a href="https://i.gyazo.com/{$id}.gif" target="_blank" class="LbTrigger" data-href="misc/lightbox"><img src="https://i.gyazo.com/{$id}.gif" class="bbCodeImage LbImage"></a>

the problem is that both have the same url style at Match URL
Example gif: https://gyazo.com/80f58fb39d29d776c63814e3444fc34d
Example png: https://gyazo.com/8d45cf9b1c3a8d69635b78f5ae741ff9
 
Last edited:
@JoshyPHP

Linking to:
https://www.youtube.com/user/TwoMobile/videos?sort=dd&view=0&shelf_id=1

Produces a good result. It doesn't try to make it an embed, keeps it as a link.

However...

Linking to:
https://www.youtube.com/channel/UChGJGhZ9SOOHvBB0Y4DOO_w/videos?view=0&shelf_id=1&sort=dd

Produces a bad result. It does try to embed it, and since this is a list of Uploads of the channel, the embed says video doesn't exist.

Basically I think this is an issue with your regex.

Not all channels have vanity names, they can have the /channel/ID/... instead

Hopefully this made sense. Can you fix?
 
It doesn't try to embed it on my test board. Do you have another add-on that is related to YouTube?
Yes I have one other such add-on... and now that you say it, I have youtube disabled in s9 options. So it's not your add-on doing this. Sorry for the false alarm.

This one:
https://xenforo.com/community/resources/wmtech-youtube-integration-essentials.3952/

@wmtech mind checking this out?



https://xenforo.com/community/threads/s9e-media-bbcodes-pack.61883/page-114#post-1037356


This is the regexp match URLs code for YouTube Essentials:
Code:
#(?:http|https|)(?::\/\/|)(?:www.|)(?:youtu(?:be(?:\-nocookie)?\.com|\.be)(?:\/embed\/|\/v\/|\/watch\?v=|\/ytscreeningroom\?v=|\/feeds\/api\/videos\/|\/user\S*[^\w\-\s]|\S*[^\w\-\s]))(?P<id>[\w\-]{11,})[^\s<]*#i

EDIT: moved this into WMTech YouTube Integration Essentials thread.
 
Last edited:
I don't want to embed anything that could be displayed with the normal [IMG] BBCode.
8d45cf9b1c3a8d69635b78f5ae741ff9

Then why is this not working?
 
Back
Top Bottom