YouTube plugin for Mango

As mentioned earlier, this site is powered by Mango Blog. Having played with it a little to get it installed, I thought I’d look at its extensibility…

The plugin framework seems quite simple once the basic concepts have been understood; so I started to write my first plugin.

The documentation mentions a YouTube plugin but as far as I could see it doesn’t actually exist, so this seemed an ideal place to start! Simply download the files and unzip them into /components/plugins/user/ – and then activate the plugin from the Add-ons page in the blog admin.

All you need to do to include a video is find out what the video’s ID is (it’s the string of characters after v= in the YouTube URL), and write the following into your post or page:

[youtube:videoid]

And your video should be included like so:

I may develop this further – maybe add options to specify the global video size for your blog. If you have anything you’d like to see, please let me know! 

Posted at 12:52 PM on 15 January, 2008, in ColdFusion, Mango Blog

10 replies to “YouTube plugin for Mango”

  1. Josh
    Very cool :) I am working on two other plugins as well -- this will help me understand the plugin framework.
  2. Mark Warrick
    Awesome plugin! It worked flawlessly on my site: http://www.economycorps.com
  3. brice
    Thanks! I just discovered mango, and I am quickly falling in love. Other than the slowness, its awesome. But there may be a setting that I need to discover.

    This plugin is perfect. Thanks for taking the time and sharing.
  4. CheyenneJack
    Flawless execution. Well Done. Saved me a boatload of time. Going to have to figure out how you did it. Just spent hours last night figuring out how to enable iFrames on Mangoblog and blogging on it, wasn't sure if I had the energy to tackle YouTube today. Thankfully you made it cake. Only now I'm curious about extensibility code, so in the end I may not save time, but it will be more fun and productive.
  5. bret
    Love it! Thanks. I think we all need to write more for Mango. Spread the word!!
  6. Dave
    Please note that this plugin does not work in internet explorer 8
  7. Seb Duggan
    Seems to work fine in IE8 for me - in both strict and compatibility modes.

    But I'll take a closer look later...
  8. Mango Blog Hosting
    We've used your plugin too over at Mango Blog Hosting (http://mangobloghosting.com), thanks!
  9. Steve
    It says Plugin could not be activated when attempting to activate it, using MangoBlog 1.2.4
  10. Rafael
    I have added the youtube feature but i want to customize the video and not show related videos and to specify a specific color and size. I have pasted the custom code into the HTML and it did not work can you suggest if there is a way.

Leave a comment

Leave this field empty: