s9e Media BBCodes pack

s9e Media BBCodes pack 20231102

No permission to download
You need the URL of the video itself. Generally it can be found in the player's interface, in the "Share" section. For ESPN, you need to click the cogwheel, "Share" then "Copy Link".
 
@Martok I've thought about your request. I'm still unsure about how it should look and how many people would want that feature. Currently I think the cost of implementing it as an option outweighs its benefits so I don't intend to implement it in the foreseeable future.

However, there's a way to do it on your side. Create a file named Custom.php with this content:
PHP:
<?php

class s9e_Custom
{
    public static function twitch($html, $vars)
    {
        if (!isset($vars['archive_id']) && !isset($vars['chapter_id']))
        {
            $html .= '<iframe width="620" height="378" allowfullscreen="" frameborder="0" scrolling="no" src="//twitch.tv/chat/embed?channel=' . urlencode($vars['channel']) . '&amp;popout_chat=true" style="resize:both"></iframe>';
        }

        return $html;
    }
}
Upload this file to your server into upload/library/s9e/Custom.php
When you're done, reinstall the latest version of the pack. From then on, the chat should appear alongside channel embeds. If you're happy with the result, please send me a link to a channel being embedded this way on your site so that I can see it in action and reconsider making part of the add-on.
Hi Joshy

I tried what you suggested. I've currently only done this on my test site which isn't publically available. This is what I get in a thread:

upload_2014-8-20_15-49-40.webp

I'm sure this can be tweaked to fit side-by-side if I put some smaller values in <!-- s9e_MediaBBCodes::renderTwitch() --> in the BB Code Media site for Twitch?

There are a couple of issue though. Firstly when checking the browser console on the thread page there are errors:

Code:
Failed to load resource: the server responded with a status of 404 (Not Found) http://api.twitch.tv/api/channels/doony11/product?on_site=1
Given URL is not permitted by the application configuration.: One or more of the given URLs is not allowed by the App's settings.  It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
TMI.js [socket] WARNING: Attempted to send TWITCHCLIENT 3
over a disconnected Flash socket. Ignoring.
TMI.js [socket] WARNING: Attempted to send PASS blah
over a disconnected Flash socket. Ignoring.
TMI.js [socket] WARNING: Attempted to send NICK justinfan539350
over a disconnected Flash socket. Ignoring.
Failed to load resource: the server responded with a status of 504 (Gateway Time-out) http://countess.twitch.tv/ping.gif?u=%7B%22type%22%3A%22channel%22%2C%22id%22%3A%2252501475%22%7D
TMI.js [socket] WARNING: Attempted to send JOIN #doony11
over a disconnected Flash socket. Ignoring.
TMI.js [irc] WARNING: Could not parse IRC message: 353.
TMI.js [irc] WARNING: Could not parse IRC message: 366.
TMI.js [conn] WARNING: Unable to connect. Attempting to connect again in 2 seconds... tmi-v3.r9a93683c601ef8916e6af9ba1f0ebbe006f3cc76.js:1

Secondly, when I add it to XenMediaGallery (which uses any BB Code Media sites configured) I only get the chat window:

upload_2014-8-20_15-59-0.webp

If this is complicated to sort then don't worry, it was just an idea to make use of the chat facility whilst watching live streams.
 
Are .webm files included?
No. There's no straightforward way to do that with XenForo's media sites.
I'm sure this can be tweaked to fit side-by-side if I put some smaller values in <!-- s9e_MediaBBCodes::renderTwitch() --> in the BB Code Media site for Twitch?
Yes. On my test board using the default style they are displayed side-by-side on my 1920x1080 screen.
There are a couple of issue though. Firstly when checking the browser console on the thread page there are errors:
Those come from the Twitch chat. I can't do anything about them but I can tell you what they mean. The messages about sockets mean it cannot create a Flash applet. I guess you have a flash blocker or have enabled click-to-run in your browser. The message about "Gateway Time-out" comes either from an ad blocker or an overloaded server on Twitch's side.
Secondly, when I add it to XenMediaGallery (which uses any BB Code Media sites configured) I only get the chat window:
I don't have XenMediaGallery so I can't test that. I don't know why it only shows the iframe.
It only works with videos.

http://www.worldstarhiphop.com/videos/video.php?v=wshhhdfTQDxzC0eE8eQ5

This worldstar link doesnt work either. Looks similar to the way youtube uses its urls.
It works for me, on my test board. Does your site use HTTPS? That might explain it.
 
Those come from the Twitch chat. I can't do anything about them but I can tell you what they mean. The messages about sockets mean it cannot create a Flash applet. I guess you have a flash blocker or have enabled click-to-run in your browser. The message about "Gateway Time-out" comes either from an ad blocker or an overloaded server on Twitch's side.
Thanks for the explanation. I don't have a flash blocker or click to run so not sure what is causing that. Maybe the way Google Chrome works with Flash seeing as it comes with it rather than Flash being separate? I don't use an ad-blocker either so that must be an overloaded server.

I'll check with Chris on why it doesn't work with XMG.
 
I'll check with Chris on why it doesn't work with XMG.
@Chris D was nice enough to send me an XMG license so that I could take a look for myself. The problem is with styling. If you're familiar with CSS, the issue is that the iframe containing the chat is positioned with position:absolute and takes all of the available space. The Flash video is there but you can't see it because it's behind the chat.

I don't know what the long-term solution should be but in the meantime, you can edit the iframe to force a different style. For example:
Code:
style="width:620px;height:378px;position:relative;margin:0"
(that would replace the style="resize:both" from the original code)
 
<iframe width="100%" height="600" style="resize:both" src="https://docs.google.com/spreadsheet/ccc?key={$id}?widget=true&amp;headers=false&amp;rm=minimal" frameborder="0" scrolling="no"></iframe>

Is it possible to get this implemented? Your current changes have made it so it appears, but the header and the bottom tabs appears, we literally just want to display the spreadsheet and thats it :)


Thanks for all the hard work man!
 
Is it possible to get this implemented? Your current changes have made it so it appears, but the header and the bottom tabs appears, we literally just want to display the spreadsheet and thats it :)
The spreadsheets are supposed to be displayed in the minimal interface like in this screenshot but as it turns out, there are some incompatibilities between the old Google Spreadsheet (your document) and the new Google Sheets (any document created recently.)

I'm looking for an authoritative source about the differences (information seems buried in Google's support forums) and I'll update once I find an acceptable solution that works as intended for both kind of documents.
 
Could you use "crunchyroll" please

How to request a media site

If there's a media site that you would want to see in this pack, you can request it in this thread and it will be considered for inclusion. Selection may depend on the site's popularity, Alexa rank and activity on social sites. Please post a few links as examples of the kind of links that should be supported. You do not need to post the embed code, only links to the content you want to embed.
https://xenforo.com/community/resources/s9e-media-bbcodes-pack.2476/
 
@RAHSTYLES As Martok said, I would need more info about that "crunchyroll" and especially the kind of links you want to embed.

It seems that embedding their videos is reserved to affiliates, that would make it impossible for me to add support for this site.
 
Last edited:
Unclear. It would be possible for you to create the media site for your forums but it does not help me much. Here's my best offer: become an affiliate then come back to me and I'll post the media site definition so you can embed videos in your forums. Then I'll figure out down the road whether I should include it in this pack. Probably not because it creates more burden for me than it helps future users. In other words it costs me more than it benefits others. Although if somebody else wants Crunchyroll, they should manifest themselves and I'll reconsider.
 
Is it typical on ESPN videos for it to say Content Unavailable and not to play in page? Just tested it out on 3 different videos. All embed fine on page and even shows the video background and if you click on it, it opens ESPN and plays.
 
Back
Top Bottom