s9e Media BBCodes pack

s9e Media BBCodes pack 20231102

No permission to download
Not particularly, but thanks for asking. :)

I noticed that someone asked for it (talking about controls=2) in the official suggestions forum and it seemed like a good idea. I've seen this setting used in a number of sites so I don't expect any issues.
 
@joshphp any chance of being able to embed ooyala videos?

the share code is as follows from the video
Code:
<script height="349px" width="620px" src="http://player.ooyala.com/iframe.js#pbid=fd5fc71d2bcc4b60a622cf8d3348d605&ec=pwOHMxbjrhFqK91pSrvKm5w2yQ_8volw"></script>

example of a video playing on a website :
http://www.warriors.co.nz/news/2014/05/26/tributes_mannering_s_200_100_double.html

did some research and found a phpbb bbcode that suggests it can play it. maybe it would be helpful?
https://www.phpbb.com/community/viewtopic.php?f=46&t=579376&start=3030#p12893361
 
Would be great, if possible, to add support for MediaCrush (https://mediacru.sh/).
I'm not sure about that one. Images can already be displayed with the IMG BBCode, so it's only useful for videos right? I could embed those in a fixed-size player like YouTube et al. To have a player of the same size as the videos, it would require a custom iframe solution that I would have to host. There's a third way to embed stuff using their JavaScript thing, but that wouldn't work for me without more custom code on my side. At this point it seems more work than it's worth, sorry. I would reconsider if they provided the dimension of the media. [Edit: as it turns out, they have an API for that. I'll take a second look at it later.]

@joshphp any chance of being able to embed ooyala videos?
The way media embeds work in XenForo (and other systems) means you don't target a specific player, you must target a specific site. Or rather, URLs. And those URLs should point to videos. In the case of the URL you have posted, it points to an article rather than a video. The difference may be subtle, but it has a number of implications. Either way, as I type this and my mind wanders about the technical aspects I realize that this site's audience is much too small to be included in this pack. Each new site adds a small cost in terms of maintenance and, in XenForo's case, a slight performance penalty that gets passed to every user.

If what you're looking for a way to embed videos from this Warriors site, I might still be able to help you by posting the media site definition. Please confirm that's the videos you're trying to embed and I'll see what I can do. Actually you can't make a simple media site for it because XenForo rejects or encodes some of the characters that are needed. Namely, it rejects & and encodes =. Sorry.
 
Last edited:
So to fully upgrade to this, do I need to delete my old media bbcodes addon and then install yours or will yours just write over it? I'd rather not lose items that are already embedded...
 
When you install this pack, XenForo creates 50 "BB Code Media Sites". It overwrites old definitions if there are duplicates, including the default YouTube BBCode. Whenever possible I've tried to make it compatible with the default media sites and definitions from [xxmS] BBcode MediaSites Package 1.1.9_11, so old embeds should still work even if they look slightly different.

If something breaks, you can either correct old embeds with the Post Content Replacer tool or you can reinstall the other media site on top of this pack.
 
When you install this pack, XenForo creates 50 "BB Code Media Sites". It overwrites old definitions if there are duplicates, including the default YouTube BBCode. Whenever possible I've tried to make it compatible with the default media sites and definitions from [xxmS] BBcode MediaSites Package 1.1.9_11, so old embeds should still work even if they look slightly different.

If something breaks, you can either correct old embeds with the Post Content Replacer tool or you can reinstall the other media site on top of this pack.
Ok that was the other pack I was using. So do I uninstall that other add on or do I just write over with this one then disable the old one?
 
You can just install this one without touching the other. You'll have access to all the media sites from this one, plus all the media sites from the other one that are not in this one.
 
Last edited:
I'd need to know your use case (why/how you want to embed their stuff) as well as example links to the things you want to embed.

Actually, forget about that. This site is too niche to be included in this pack. Just create a media site for yourself with those settings:
Code:
Match URLs:
!videohive\.net/item/[-\w]+/(?'id'\d+)!

Embed HTML:
<iframe src="http://videohive.net/item/mosaic-photo-reveal/embed/{$id}" width="590" height="332" frameborder="0" allowfullscreen></iframe>

☑ Use 'Match URLs' as PCRE regular expressions
 
Last edited:
I'd need to know your use case (why/how you want to embed their stuff) as well as example links to the things you want to embed.

Actually, forget about that. This site is too niche to be included in this pack. Just create a media site for yourself with those settings:
Code:
Match URLs:
!videohive\.net/item/[-\w]+/(?'id'\d+)!

Embed HTML:
<iframe src="http://videohive.net/item/mosaic-photo-reveal/embed/{$id}" width="590" height="332" frameborder="0" allowfullscreen></iframe>

☑ Use 'Match URLs' as PCRE regular expressions
WOW! Working like dream! Thank you so much! That's AWESOME!
 
Last edited:
Top Bottom