MyBB Community Forums

Full Version: Forum iFrame MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Don't worry, this can't be exploited, as it only can link to topics on your forum.

Title :
iFrame
Short Description:
Allows you to have an iFrame with a thread/post/anything on the forum in it.
Regular Expression:
\[iframe\]http://www.yoursite.net/forum/(.*?)\[/iframe\]
Replacement:
<center><iframe src="archive/$1" width=100% height=600> If you can see this, your browser doesn't understand how to use iframes. :( However, we'll still <a href="$1">link</A> you to the file.</iframe></center>

This allows your users to have a iFrame in their posts. It works effectively. To save space, it uses the /archive/ part, so it both fits and looks better.
Very interesting i wouldnt have thought of doing it like that.
Thanks.
It is interesting indeed!

But I think it doesn't work with friendly links.

...or maybe...I haven't figured how to iframe a specific link?. It always opens the "page not found" in my site, no in my forum.
Oh! It actually works!

I removed the http and the "archive/" parts from regular and replacement Smile


Thank you for sharing this Arianna.
Thank you both of you. I don't know how that wasn't working, Sammyed, but it's good that you solved it.
The only reason I put the archive part in was so that it would fit on thinner posts and pages better (as I was using the classic layout and a pretty squished them.
I have a problem.
For first use MyBB 1.6.13
I have a problem using the above code written.
I create the frame, but without content, empty like this
can anyone help me out to understand why?
I saw that there is a plugin but I would do without it
thanks

frame empty