Embedding an IFrame in a post? [message #36378] |
Tue, 20 March 2007 14:15 |
bileduct
Messages: 3 Registered: March 2007
Karma: 0
|
Junior Member |
|
|
We'd like to do something where a user can insert an IFrame in a post, allowing us to fiddle with another page from within the forums. Has anyone attempted such a thing?
thanks!
|
|
|
Re: Embedding an IFrame in a post? [message #36380 is a reply to message #36378] |
Tue, 20 March 2007 15:37 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
I haven't looked closely, but perhaps in the file post_proc.inc.t
You could take a look at the code to parse the IMG tags for example, and create a new parse for IFRAME tags perhaps?
Here is the code for img tags (I think this is the one, might be my modified one - Oh and look, Ilya forgot " and " around border=0 !! hehe
while (preg_match('!<img src="(.*?)" border=0 alt="\\1">!is', $fudml)) {
$fudml = preg_replace('!<img src="(.*?)" border=0 alt="\\1">!is', '[img]\1[/img]', $fudml);
}
while (preg_match('!<img class="(r|l)" src="(.*?)" border=0 alt="\\2">!is', $fudml)) {
$fudml = preg_replace('!<img class="(r|l)" src="(.*?)" border=0 alt="\\2">!is', '[img\1]\2[/img\1]', $fudml);
}
Ginnunga Gaming
|
|
|