s9e Media BBCodes pack

s9e Media BBCodes pack 20231102

No permission to download
I knocked up a quick fix for our site, but the issue I have with converting them to "customised" standard links (ie. displaying as a block with the eBay logo) is that I can't select the original eBay country domain.
 
Do you know why youtube no longer displays the title of the video? My users are very frustrated with this. No one wants to click a video that they can't see the title to...
 
If you publish your changes I'll see what I can do.
I'll be adding our eBay affiliate ID to the link in the future.

Code:
<div class="media-ebay"><img src="(...)/icon_ebay.png" srcset="(...)" alt="eBay Logo"> <a href="http://ebay.co.uk/itm/{$id}" title="View on eBay" target="_blank">Item Shared</a></div>

Do you know why youtube no longer displays the title of the video? My users are very frustrated with this. No one wants to click a video that they can't see the title to...
YouTube changes which are out of the developers control AFAIK.
 
Do you know why youtube no longer displays the title of the video? My users are very frustrated with this. No one wants to click a video that they can't see the title to...
As DeviateDefiant mentioned, it's just YouTube trying out stuff. In this case, they've changed some UI options. I will almost certainly update the pack tomorrow to make it look more like it used to. The new "bare" version loads faster though.

@DeviateDefiant If you're handling eBay with this add-on, you can create a custom PHP template for it. You need to create a file named library/s9e/Custom.php with this content then reinstall the add-on.
Code:
<?php

class s9e_Custom
{
    public static function ebay($html, $vars)
    {
        $tlds = [
            'de_AT' => 'at',
            'en_GB' => 'co.uk',
            'de_DE' => 'de',
            'fr_FR' => 'fr',
            'it_IT' => 'it'
        ];

        $tld = (isset($vars['lang'], $tlds[$vars['lang']])) ? $tlds[$vars['lang']] : 'com';
 
        $html = '<div class="media-ebay"><img src="(...)/icon_ebay.png" srcset="(...)" alt="eBay Logo"> <a href="http://ebay.' . $tld . '/itm/' . urlencode($vars['id']) . '" title="View on eBay" target="_blank">Item Shared</a></div>';

        return $html;
    }
}
 
Wasn't Facebook full screen at one time or is it my imagination. here is a screen shot of what a facebook vid looks like on my site.

Screen Shot 2014-10-16 at 5.16.58 AM.webp
 
Wasn't Facebook full screen at one time or is it my imagination.
The width is fixed at 560px , the height depends on the content. If there's a video, it can play in full screen but I don't think it would start in full screen.

Do I need to clean up Custom.php after updating to the latest version because of YouTube related changes?
It may need to be updated because I removed the "controls" option from the iframe URL. Edit: if you were using this custom template I've just updated the post with a working version.
 
Last edited:
I intend to periodically check (manually) for their JavaScript widgets for a little while, but I have no hope for the eBay To Go flash widget because they removed the domain name from their own DNS.
 
That would have made it easier to identify GIFV by their URLs, yes.

In my case, though, the issue of complexity is entirely mine. When I created the Imgur media site, I only intended to support albums and therefore the code [ΜEDIA=imgur]abc123[/ΜEDIA] refers to the album abc123. If I'm going to support other media I'll have to add a qualifier, e.g. [ΜEDIA=imgur]id=abc123;type=album[/ΜEDIA] or [ΜEDIA=imgur]id=abc123;type=gifv[/ΜEDIA] and if I do I'll have to decide what the default type should be. If it's not "album" it will mean that current users will have to use the Post Content Replacer to update their old embeds. It's not difficult from a technical standpoint but I want to get it right and not change my mind later because I don't want to ask users to update their old embeds multiple times, if any.
I"m not sure how to get this working, when I get either page link or direct link to the 'image' it can't do it. When I copy the direct url it says .mp4 at the end, not sure if that's why it's not working.
 
I"m not sure how to get this working, when I get either page link or direct link to the 'image' it can't do it. When I copy the direct url it says .mp4 at the end, not sure if that's why it's not working.
That's exactly why. Imgur's blog post about GIFV only mentionned the .gifv extension. Please post an example of a GIFV image with a different extension and I'll look into it asap.

When I go to a URL that ends with ".mp4" it redirects me to the same URL ending with ".gifv". Do you know where those ".mp4" URLs come from?
 
Last edited:
Top Bottom