MyBB Community Forums

Full Version: IFRAME
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
when I was using PHPBB3 I could use IFRAME to show other websites in my forum.

Can I do this with MYBB?
Hi,

You can insert an iframe into any of the MyBB templates.

For example, if you wanted to add an iframe to the index template, you can do so by following the steps below:

Admin CP > Templates > Modify / Delete > *Template Set Name* > Expand > Find "Index Page Templates" > Expand > index > Edit.

From there you can place the iframe were you want it to show, after you have done so simply click "Update Template" and the iframe should show on your forums index page.

If there was something more specificity you wanted, reply back and i'll try and help.

Chris.
I was wondering if I could add IFRAME to a post?
You could use a custom MyCode.

For the regular expression put:
\[iframe\](.*?)\[/iframe\]

and for the replacement put:
  <iframe src="$1" height="200">
            Alternative text for browsers that do not understand IFrames.
        </iframe>
However I don't think this is recommended as there could be security issues
(2008-06-22, 04:56 PM)nickman Wrote: [ -> ]You could use a custom MyCode.

For the regular expression put:
\[iframe\](.*?)\[/iframe\]

and for the replacement put:
  <iframe src="$1" height="200">
            Alternative text for browsers that do not understand IFrames.
        </iframe>
However I don't think this is recommended as there could be security issues


That works nicely. One quick question. How do I make it wider?

See example:- http://felixstoweharpers.com/forum/showt...49#pid1349
This should do the trick
<iframe src="$1" height="200" width="100%">
Nice one.............
Please note the security issues with this. I cannot stress this enough. If someone shows a hacking site in the iframe, they could hack your site. Because of this, MyBB doesn't have this iframe tag built in, to lower the ability of your forum getting hacked.