s9e Media Sites

s9e Media Sites 2.15.3

No permission to download
That's something I have considered before but very few sites actually provide a dark mode. I don't think Reddit does, or at least not for their embedded content to the best of my knowledge.
 
That's something I have considered before but very few sites actually provide a dark mode. I don't think Reddit does, or at least not for their embedded content to the best of my knowledge.

They do have a night mode! :) Launched a few months ago. If that works for the embeds however, I do not know.
 
i don't think they have updated the embed code with the new design. the embed popup shows no option for dark mode. just checked.

embeds - reddit.com

this page was last updated 3 years ago based on the footer!
 
I was trying to add a BBCode Media Site for sporcle.com. It looks like they bloody use 2 unique IDs in their code. Is there anyway to do this within the framework since it looks like you can only grab {$id} ?

Code:
This is the URL the user would post in XF:

https://www.sporcle.com/framed/?v=8&pm&gid=137614f712d0&fid=5c5323c3d107c&width=580

This would be the actual code substituted:

<iframe frameborder="0" scrolling="no" marginheight="0" marginwidth="0" id="spFrame5c5323c3d107c" 
src="https://www.sporcle.com/framed/?v=8&pm&gid=137614f712d0&fid=5c5323c3d107c&width=580" style="width:100%;"></iframe>
<script type="text/javascript" src="https://www.sporcle.com/embed/embed.js?v=5c5323c3d107c"></script>

They have $gid & $fid. $fid is also used in the iframe id ( "spFrame" . $fid )
 
Are you trying to extend this add-on with your own custom sites? You can reuse some of this add-on's routines but you'll still have to create your own add-on in XenForo. I haven't tested it but I think you can create your own class that extends this add-on's parser, something like this:
PHP:
<?php
namespace Mysite\Myaddon;
class Parser extends \s9e\MediaSites\Parser
{
	protected static $sites = [
		'sporcle' => [['!sporcle\\.com/framed/.*?gid=(?<gid>\\w+).*?fid=(?<fid>\\w+)!']]
	];
}

Then you could use Mysite\Myaddon\Parser::match as URL match callback to match Sporcle's URLs. If you use s9e\MediaSites\Renderer::render as Embed HTML callback, you'll be able to use {$fid} and {$gid} in the template. You can look at the site definition for Google Sheets or YouTube and use that as a guideline for your custom media site.
 
This is not working in Firefox, for Fox News for some reason. Weird, works in Edge but not Firefox.
 
so... spotify finally arrived in india this week and we have been sharing a bunch of playlists on the forum.
noticing that some links do not embed. others do.
here is one that failed to embed right now.
https://open.spotify.com/playlist/05WqgKxtpOYCKS2jxpN4mx

just noticed that links with user in them works.
https://open.spotify.com/user/1233130761/playlist/05WqgKxtpOYCKS2jxpN4mx
 
Yes, I second that. If it says "Processing" it may be that the video is not available at the moment. Or it may be an issue with the browser's adblocker or something like that. AFAICT the site and the embeds work fine.
 
Hello Joshy, is possible to include video's from NPO?
 
@Abraham54 I looked into it but I don't think the site has a big enough reach to be included by default. If the site provides a way to embed their content, you may be able to add it to your own forums as a custom media site.
 
Hello Yoshy, maybe you are right about reach, that is due to my country.
I will try to apply your advice.
 
Top Bottom