FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Embedding an IFrame in a post?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Embedding an IFrame in a post? [message #36380 is a reply to message #36378] Tue, 20 March 2007 15:37 Go to previous message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma:
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);
	}


[Message index]
 
Read Message
Read Message
Previous Topic: Read / Unread indicators on compact forums
Next Topic: Edit time limit affects "edit" permission [ oops nevermind ]
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 05:42:08 GMT 2024

Total time taken to generate the page: 0.03885 seconds