A How-to guide for enabling media providers

  • App
    WoltLab Suite Core

    By default, WBB embeds media providers such as YouTube,Vimeo,Soundcloud etc. But there are dozens of popular media sites out there such as Facebook,Twitter,Flickr,Instagram etc. I believe that WBB supports automatic embedding of media from these providers as well.

    It would be really helpful for newbie admins if Woltlab posts a guide with Regular Expression and HTML code for enabling popular media providers in the blog. I am asking for something like this Setting up user friendly URLs

    Small Ideas, Big Revolutions

  • Danke I am very happy with Burning Board so I decided to buy it, but, my entire brain knows seven German words. I hope I won't be too redundant in the forum!

  • Yes. What I really wanted was a twitter button but I got it, I just made a bbc tag called twitter and spoofed the media class on it, then assigned twitter icon from awesome io. So it's really the media button but it looks and behaves as twitter button. It worked fine, what I was really saying in last post was, thanks, too bad I can't read German or I would not have bothered with that question :)

  • I still stick with my original request. It should not take much time for Woltlab team to make a How-to post and put it up in Blog. There are still tons of sites like Flickr,Hulu,Slideshare etc which are very very popular.

    Small Ideas, Big Revolutions

  • Yes I firmly support your feature request. Even better than a guide for enabling, I think some simple (and organic) bbcode buttons we can enable for most of the services you mention. In fact if it's in next WBB, Ill pay the upgrade immediately :P

  • @JoshyPHP Makes a media package for both phpBB and XenForo

    His code is on Github
    https://github.com/s9e

    He updates it regularly (sometimes daily). I have to give him some very due credit as he really does keep track of these things. The man is a wizard when it comes to media codes. And I really do admire and respect his work and dedication. :thumbup: <3

    I know he was looking into Woltlab Burning Board and was waiting until 4.1 was released. I'm hoping that is still the case. :saint:

  • I got a hold of @JoshyPHP

    Quote from JoshyPHP

    Hey. :)

    I got a notification when you mentionned me but I can't replay to threads or use most of the site because I'm not a customer.

    I haven't looked into WBB since our last conversation. As I recall, the main obstacle was that there wasn't a way in WBB to execute PHP to transform a post content so it severely limits the range of sites that can be supported. I don't remember the specifics though and I can't find where our last conversation took place.

    I'll search for some WBB documentation, see if that's changed. Last year I wrote an extension for phpBB that supports the same sites as the XenForo add-on. I was able to reuse most of my existing code so the main file is quite small. If WBB supported the same kind of events/hooks architecture as phpBB I would be able to write the same kind of plugin for WBB, but not being a customer it's hard to find the right documentation and I doubt I'd be able to publish the plugin here.

  • This is the follow up :)

    Quote from JoshyPHP

    I knew about WCF and I've occasionally glanced at it but I've never used it. I know that there are two events related to BBCodes and text formatting, "beforeParsing" and "afterParsing", although I don't know when they are executed exactly. That would definitely go a long way towards supporting most media sites I support in other forums. It's not a perfect match though and it may require a lot of work to make it work properly. I'll take a look at it as soon as I can.

    So it's clear to me I need to get @JoshyPHP a copy of Woltlab Burning Board at sometime in the future. :)

  • Ore add him as developer to your license, so he will see the internal forums ;)

    To your Problem: There is already an whole media embeded system included.
    You just have to add your own media provider.

  • Ore add him as developer to your license, so he will see the internal forums

    I'm not exactly sure how you do that or what you mean by that, but I did add him here, hoping that will give him a good enough chance to ask questions.

    Display Spoiler


    To your Problem: There is already an whole media embeded system included.

    You just have to add your own media provider.

    The believe the idea is for him to extend on that so he could update it as an addon as media codes change often.

  • Ore add him as developer to your license, so he will see the internal forums ;)

    To your Problem: There is already an whole media embeded system included.
    You just have to add your own media provider.

    Hi, can post now. :)

    I know very little about WBB. I'm neither a customer nor a user, so all I know about it is what public posts describe and what I saw in the online demo. From what I can see, media embedding is supported only via regexp replacements, correct? That works for many sites, but it's not always sufficient. For example, the identifier for a track on Bandcamp is not in its URL. You need to scrape it from the page, usually with a PHP callback of some sort. Some embedded content need to run a bit of PHP when displayed too, usually because their URL is different depending on some options. Some music players have a different size depending on whether you'd want to embed a single song or a whole album.

    It's not so much that replacing the embedding system than it is about enhancing it with PHP callbacks to cover more use sites. I read that WCF has a beforeParsing event and a afterParsing event, I guess that's their purpose.

  • Hi, can post now. :)
    I know very little about WBB. I'm neither a customer nor a user, so all I know about it is what public posts describe and what I saw in the online demo. From what I can see, media embedding is supported only via regexp replacements, correct? That works for many sites, but it's not always sufficient. For example, the identifier for a track on Bandcamp is not in its URL. You need to scrape it from the page, usually with a PHP callback of some sort. Some embedded content need to run a bit of PHP when displayed too, usually because their URL is different depending on some options. Some music players have a different size depending on whether you'd want to embed a single song or a whole album.

    It's not so much that replacing the embedding system than it is about enhancing it with PHP callbacks to cover more use sites. I read that WCF has a beforeParsing event and a afterParsing event, I guess that's their purpose.

    I'll setup a test install that you can play with (with ftp access).

    I cannot do it today, but sometime in the future; I'll see about getting you, your own copy as well. :)

  • Well, i think the best way would be to parse the message for your media-providers with the beforeParsing-event and surround them with your own bbcode.
    For this you have easy access to the text of the parsed message.

    The rest of your scripting should happen then inside the given bbcode-class.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!