MyBB Community Forums
Iframe in post - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: MyCodes (https://community.mybb.com/forum-117.html)
+--- Thread: Iframe in post (/thread-149632.html)



Iframe in post - rafy? - 2014-01-04

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.


RE: Iframe in post - p00lz - 2014-01-06

why on earth would somebody want to allow people to post random iframes on their forum?


RE: Iframe in post - mybbuser123 - 2014-01-11

I think it'd allow HTML and it may allow some people to post innapropriate things


RE: Iframe in post - CViper - 2014-03-23

Actually pretty nice! Could it be used for embedding such as webpages into a forum post?


RE: Iframe in post - rafy? - 2014-03-27

@CViper yes you can!