s9e Media BBCodes pack

Unmaintained s9e Media BBCodes pack 20231102

No permission to download
The previous update contained a file named upload/library/s9e/Custom.php. It shouldn't have been there and if you uploaded it to your server you should remove it or it will alter the look of the YouTube and MixCloud embeds. Sorry for the inconvenience.
If you don't want to modify any HTML, ignore this update. But if you use this feature, tell me about it or it might be removed in a future version.

Create a PHP file named upload/library/s9e/Custom.php and create a method for each media site that you want to modify. For example:
PHP:
<?php

class s9e_Custom
{
    public static function mixcloud($html)
    {
        return preg_replace('((width|height)="\d+")', '$1="500"', $html);
    }

    public static function youtube($html)
    {
        return str_replace('controls=2', 'controls=1', $html);
    }
}

That's all you have to do. The modifications are detected during the installation so you might have to reinstall the add-on for them to take effect. If you have no idea how to use PHP, you're out of luck, sorry.
Example:
Code:
http://www.youtube.com/watch?v=wZZ7oFKsKzY&t=1h23m45s
Added support for Scribd
Most of the music players are now 400 × 400 and display the song's or playlist's cover art where available.
Players that are slim and wide such as Soundcloud can now stretch up to 900px.
Old embeds have stopped working. There's no telling whether they'll work again in the future.
Only supports URLs that start with http://www.theonion.com/video/
I think they have other URLs as well but their ads make my browsers crash.
If you want to prevent some sites from being reinstalled, go to your admin panel and look for the option named EXCLUDE_SITES. Enter the Media Site ID of the sites you don't want to install, separated with commas. For example: ebay, eighttracks. They won't be reinstalled when you upgrade the add-on but you still have to delete them manually if they're currently installed.
You don't need to upgrade if you've never noticed it.
Added support for MSNBC
Top Bottom