MyBB Community Forums

Full Version: Iframe in post
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello Mybb I want to share with all of you a new code!

Title
Iframe


Short Description
With this code you can use iframe in posts


Regular Expression
\[iframe width="(.*?)" height="(.*?)" transform="(.*?)" transform-origin="(.*?)" width-container="(.*?)" height-container="(.*?)"\](.*?)\[/iframe\]


Replacement
<div style="width: $5; height: $6;"><iframe src="$7" scrolling="no" frameborder="0" style="width: $1; height: $2; -webkit-transform: scale($3); -o-transform: scale($3); -moz-transform: scale($3); transform: scale($3); -webkit-transform-origin: $4; -o-transform-origin: $4; -moz-transform-origin: $4; transform-origin: $4;"></iframe></div>

Demo:Here


Made by Harald R.
why on earth would somebody want to allow people to post random iframes on their forum?
I think it'd allow HTML and it may allow some people to post innapropriate things
Actually pretty nice! Could it be used for embedding such as webpages into a forum post?
@CViper yes you can!