s9e Media BBCodes pack

s9e Media BBCodes pack 20231102

No permission to download
The complete list of sites is in the overview. If you want to request a media site, I need to know about your use case and the kind of links you'd want to embed.
 
I don't think you can. I already use the "minimal" version of the interface, I don't think you can remove anything more from it.
 
Google+: it seems relatively popular on Reddit so I intend to add it in the near future (<48 hours.) It will work the same way as Facebook posts.
Imgur albums: that could be good. 90% chance I'll add it.
? Imgur links: what's the benefit compared to a normal image tag? My two issues with it is that it bypasses XenForo proxy thing and that people who post links as text may not want them to be turned into a picture.

? What's the use case for a Google Docs Viewer media site? I think it might be better served with a custom BBCode.

Automatically turning arbitrary links to videos into a HTML5 video element isn't practical with media sites, for technical reasons. It's better done with a custom BBCode.
 
Thanks! The two additional you plan to do would be super for me. I would look into BBCODE generation. Just switched to XF 2 days ago.
 
Oh, that's nice. What forum software did you use before?

Among your five requests, are there some that you used to have on your old forum software and that you're trying to recreate in XenForo?
 
Hey Josh good stuff. Quick question. (Might be dumb sorry)

When upgrading do I need to overwrite files in library? Thanks.
 
@OperaManiac I think that using media BBCodes for generic embeds is generally a bad idea because of edge cases and false positives, but if that's what you already use I believe you can replicate the functionality of your old media BBCode with this:
Code:
Match URLs: ((?'id'.*\.pdf))
Embed HTML: <iframe width="100%" height="500" src="https://docs.google.com/viewer?url={$id}&amp;embedded=true"></iframe>
You also have to check "Use 'Match URLs' as PCRE regular expressions" in the Advanced Options tab when you create it.

@dawg Sometimes you do and sometimes you don't, so I recommend you overwrite the library/s9e/MediaBBCodes.php file every time. If that's a bother, try this add-on: http://xenforo.com/community/resources/install-and-upgrade-by-waindigo.2035/
 
Looks like it works. Thanks so much! Looking for the update for G+ and Imgur Gallery.

Update:

WebM is not working...
Code:
Match URLs: ((?'id'.*\.webm))
Embed HTML:
<video width="640" height="480" controls>
  <source src="{$id}" type="video/webm">
</video>

Code is being rendered as:
Code:
<video width="640" height="480" controls>
  <source src="http%3A%2F%2Fvideo.webmfiles.org%2Felephants-dream.webm" type="video/webm">
</video>
 
Last edited:
Top Bottom