s9e Media BBCodes pack

s9e Media BBCodes pack 20231102

No permission to download
@adrian4ever I've just updated the add-on. ESPN Deportes used to be supported as part of ESPN but it seems they're now forcing their own domain name. The site's URLs have been unreliable in the past and I don't want to use their embedding technique because it's potentially unsafe, so I can't guarantee it won't randomly break in the future. If it does, post the URLs that don't work here.
 
@adrian4ever I've just updated the add-on. ESPN Deportes used to be supported as part of ESPN but it seems they're now forcing their own domain name. The site's URLs have been unreliable in the past and I don't want to use their embedding technique because it's potentially unsafe, so I can't guarantee it won't randomly break in the future. If it does, post the URLs that don't work here.
OMG!!! Sure I will , your awesome!! :) thanks .
 
Edit no more! Update to the current version, set Max Responsive Width to 600 and all the embeds will be 600px wide or less, depending on the available space.
Thank you @JoshyPHP for adding this option, it's much appreciated. (y)

I'm guessing that those who want videos that always fill the width of the post can simply set the max responsive width to something large e.g. 2000 (or even 10000)?

I've just installed on my test site and noticed a couple of things:

  1. I am unable to align center or align right a video. Tried with YouTube and no matter which option I choose, it remains on the left.
  2. There's a couple of issues with excluding sites. Firstly, sites must be in lowercase (though that's not a problem, just needs noting). The main issue are sites with a space in them e.g. Amazon Product, Internet Archive. If they are at the beginning of the exclusion list, that's fine they are excluded. If they are further along the exclusion list, they are not excluded.
Hopefully these are just some minor issues that can be easily rectified. :)
 
Yes, if you want videos to always take as much space as they can you can set it to an arbitrarily large number. I wouldn't recommend setting it too high though, people who want to watch in full screen can usually toggle it in the player itself.

I can't reproduce the alignment thing. Here's what I used:
Code:
[RIGHT][MEDIA=youtube]weqq3U-U8VY[/MEDIA][/RIGHT]
[CENTER][MEDIA=youtube]weqq3U-U8VY[/MEDIA][/CENTER]

Actually it works off media site IDs. If you edit a media site, you can see its Media Site ID at the top. Most of the time it's just the name of the site in lowercase (e.g. youtube, espn) but not always. For example: internetarchive and eighttracks. I'll try to update the "help" line with something more useful, and I'll make sure the names are automatically lowercased.
 
I've just re-tested the alignment issue. It works as expected when the Max Responsive width is disabled (set to 0) but when you set it to something else (in my case 600) it doesn't work.
 
Oh ok, I get it. That's a CSS issue. It's not obvious if you don't know CSS but changing the alignment does not automatically allow you to put block elements such as videos next to each other. You'd have to float them. You'd need to look into "float" BBCodes. Floating elements can't be centered easily either, I think you'd need a hack (like using a table element) or a flexbox container. I'm not a CSS expert though.

Edit: on second thought, I don't think flexbox will help and you'll run into positioning issues because of the responsive embeds hack. You'll need a CSS expert. Tag me if you find one that solves it.
 
Last edited:
Thanks for looking at this. :)

I think for now I'm going to stick with the old version that I am running and I'll take a look at editing the new version php file to set the videos I want to the desired size. For me, align center for videos is important because I use CTA Featured Threads and Portal and it just looks nicer for the videos presented like this than left aligned.
 
@RAHSTYLES Why don't you upgrade to the current XenForo version? I assume you don't because there's a cost associated to it that you judged too high. Perhaps it's time, or expertise, or both. The same applies to me. For instance, the add-on works on PHP 5.3 even though it's been dead for several years and there have been 3 major versions released since then. Because of that I cannot use short arrays and some other features that were added to PHP several years ago. I have to be mindful of its quirks and bugs. If I had to support XF 1.3 it would increase the maintenance cost of the add-on and I'd have to rewrite large parts of it too.

There's a cost to every technical decision. Performance/resource usage, development time, code complexity, maintenance, training/expertise, etc... Whatever it is, someone has to pay it. What you're trying to do is shift this cost to me. This is not a good idea, because as the sole maintainer of this add-on you should want me to spend my time on future development, not squander it on old code. In fact, before I started typing this I was working on the dynamic width feature. The 14 minutes I spent writing this are lost forever to no one's benefit.

Anyway, I don't want to sound depressing so the takeaway is this: you want developers to spend their time on new stuff, not old stuff. Also, I'm working on the dynamic dimensions so-called responsive thing.
Its not about the cost.. my lisence is still active and i have alot of mods that i paid for. I bought the resource pack the media pack xencentral a bunch of ******* mods... so many i paid for.. The problem is If i upgrade I have a feeling my site will break as probobly some of the mods are not compatible with 1.4 and I had other modify the side bar.. to make the media show up because my style did not support it.. I just dont want my site to break.. As we speak now I have a "merge templates" error thats showing up on my cpanel and i click merge and theres a box that i have to manualy merge.. and I have no clue what im doing in there... Thats why.. Im afraid of code breaks
 
Its not about the cost.. my lisence is still active and i have alot of mods that i paid for. I bought the resource pack the media pack xencentral a bunch of ******* mods... so many i paid for.. The problem is If i upgrade I have a feeling my site will break as probobly some of the mods are not compatible with 1.4 and I had other modify the side bar.. to make the media show up because my style did not support it.. I just dont want my site to break.. As we speak now I have a "merge templates" error thats showing up on my cpanel and i click merge and theres a box that i have to manualy merge.. and I have no clue what im doing in there... Thats why.. Im afraid of code breaks
It's something you're going to have to deal with sometime. As XenForo moves forwards, add-ons will not always be backward-compatible, especially when we get XenForo 2.0.

As it is, you can still use this add-on, just not the latest version. I'm using an older version and it's perfectly functional. :)
 
I noticed there's a link in the footer. Never noticed it before. Is that new or has it always been there?
 
@JoshyPHP I've just tested this and it works just great in posts. Thank you. :D

There is one thing I have noticed when using Max responsive width and XenForo Media Gallery. When this is disabled, videos in XFMG are responsive in that they will expand to fit the space on the page (and this is also the case when using 'default' BB Codes built into XenForo). However, when Max responsive width is enabled, videos in XFMG will then appear at the size set in this option (plus they are left aligned).

Is it at all possible for the Max responsive width to be enabled in posts etc but not in XFMG?
 
Is it at all possible for the Max responsive width to be enabled in posts etc but not in XFMG?
It's not possible, but it should be possible for the gallery to override its dimensions. You can do it yourself in your admin panel, copy/paste xengallery_media_view.css in the search box to locate the template, click the link that will take you to the edit form then add the following code at the top.
Code:
.mediaContainer .videoContainer div
{
    max-width: 100% !important;
}

You'll need to update to the latest version first.
 
It's not possible, but it should be possible for the gallery to override its dimensions. You can do it yourself in your admin panel, copy/paste xengallery_media_view.css in the search box to locate the template, click the link that will take you to the edit form then add the following code at the top.
Code:
.mediaContainer .videoContainer div
{
    max-width: 100% !important;
}

You'll need to update to the latest version first.
Fantastic, that works a treat. Thank you very much! :D
 
Back
Top Bottom