The one before the most recent, that is 2.10.5. https://xenforo.com/community/resources/s9e-media-sites.5973/version/44535/download
That's a bit of a hard one to prevent (especially if the shortcode is entirely made of alphanumericals) because I'd have to URL-encode so much of the URL that it would look suspicious. What I'd recommend is to wrap the URL to force it to be rendered as plain text like so:Identified a small bug - when the view url contains smiley shortcodes, it inserts the smileys into the URL:
[plain]{$url}[/plain]
Thanks, will do that. What about making this the default? Any drawbacks to that?What I'd recommend is to wrap the URL to force it to be rendered as plain text like so:[plain]{$url}[/plain]
autoEmbedMedia.linkBbCode
which doesn't use [plain]
by default. I'm copying its value so that it looks familiar and if people customized the XenForo option it carries over to the add-on's.[plain]
BBCode either when updating the option's value, or when the URL is displayed.Add a link when a custom [URL] BBCode is displayed as embedded media
option? So we change [i][size=2][url={$url}]View: {$url}[/url][/size][/i]
to [i][size=2][url={$url}]View: [plain]{$url}[/plain][/url][/size][/i]
?Correct. Did that, worked.So we change
extra.less
template or via an option for full-width embeds. Here's a couple of examples of possible CSS, which you can tweak to your convenience:[data-s9e-mediaembed="youtube"] { width: 1280px !important; }
[data-s9e-mediaembed]:not([style]) { width: 1280px !important; }
Yes, there are various ways to do that. Two of them are listed in the FAQ, via CSS in yourextra.less
template or via an option for full-width embeds. Here's a couple of examples of possible CSS, which you can tweak to your convenience:
The first one changes only YouTube embeds, the other changes all embeds that use the default dimensions, 640 × 360. If you're trying to achieve something else but you're unsure about the CSS, you can ask here.Code:[data-s9e-mediaembed="youtube"] { width: 1280px !important; } [data-s9e-mediaembed]:not([style]) { width: 1280px !important; }
Thirdly, you can also theoretically edit the template of each embed but that's generally not needed, and generally not a good idea.
curl_exec()
for anything that requires scraping, unless you edit your config file and configure it to use Guzzle instead with this change:$config['http']['s9e.client'] = 'guzzle';
ext/curl
was a requirement for installing XenForo, isn't it?ext/curl
is enabled but it doesn't test whether individual functions are, that's why it doesn't notice the lack of curl_exec()
. Switching to Guzzle will make it fail with an exception rather than a PHP error. Exceptions thrown during scraping are caught and discarded by the add-on. (they're logged if the board is in debug mode)An option has been added to select how scraping is performed; It has four options: auto (default), native cURL calls, XenForo's client (Guzzle), or disabled. The default value is fine for the overwhelming majority of users so you don't have to care about it unless you use a special configuration for your network, in which case you should select the default XenForo client. Disabling scraping may prevent some content from being embedded.
The current default is to use native cURL calls because...
We use essential cookies to make this site work, and optional cookies to enhance your experience.