Plugin: YouTube in bbPress

This plugin will only Key Masters and Administrators to put YouTube videos into posts. Why only those two groups you might ask? Well, because this plugin right now allows ALL embeds and objects out there to be put into your forum posts and I thought this might be a bit much for the general public! This plugin was started by myself and then mdawaffe finished it off for me. Nothing special, but the next version will have the code to only only YouTube videos in an easy way, but for now you need the entire embed code from YouTube, like this:

If you want to allow other users to do everything that this plugin allows, you would need to change ‘administrate’ to whatever permission your users have. I am not going to post exactly how to do it, since I think it could be a potential security hole, but that line right there is the key. Take a look at the plugin and see what I mean.

It works for bbPress 0.9.4 (except for the plugin admin page but that’s bearable). It is easy to add other video sources and even modify the RegEx that pulls the link so that videos are embedded with their own tag – [video=the_video_url] for example.