The Grand Potentate
Well-known member
Is this something you need us to field test?JoshyPHP updated s9e Media BBCodes pack with a new update entry:
Updated YouTube's player
Read the rest of this update entry...
Is this something you need us to field test?JoshyPHP updated s9e Media BBCodes pack with a new update entry:
Updated YouTube's player
Read the rest of this update entry...
Added support for Getty Images
<script height="349px" width="620px" src="http://player.ooyala.com/iframe.js#pbid=fd5fc71d2bcc4b60a622cf8d3348d605&ec=pwOHMxbjrhFqK91pSrvKm5w2yQ_8volw"></script>
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.]Would be great, if possible, to add support for MediaCrush (https://mediacru.sh/).
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.@joshphp any chance of being able to embed ooyala videos?
In the unlikely event someone would want to embed that kind of URLs: http://www.gettyimages.co.jp/detail...ry-im-late-at-nbc-experience-ニュース写真/494028667
Note that this add-on replaces the default media sites. If you only want to install some of the BBCodes found in this pack, you can try this experimental configurator interface.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...
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?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.
If you have embeds that were made using the Mixcloud definition from this post, you can update them with the Post Content Find / Replace add-on using these settings:
Code:Quick Find: =mixcloud Regular expression: ((\[media=mixcloud\])([^/]+/[^/]+)/(\[/media\]))i Replacement string: $1$2$3
Added support for NYTimes Video
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!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
We use essential cookies to make this site work, and optional cookies to enhance your experience.