Add an Instagram bbcode to a phpBB Forum

How to add an Instagram bbcode to your phpBB forum and allow picture and video embeds:

BBcode usage:

[instagram]{SIMPLETEXT1}://instagram.com/p/{IDENTIFIER}/[/instagram]

HTML replacement:

<iframe src="//instagram.com/p/{IDENTIFIER}/embed/" width="612" height="710" frameborder="0" scrolling="no" allowtransparency="true"></iframe>

Here’s the result:

Screen Shot 2013-07-18 at 1.49.05 PM