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
Switch to threaded view of this topic Create a new topic Submit Reply
Embedding an IFrame in a post? [message #36378] Tue, 20 March 2007 14:15 Go to next message
bileduct is currently offline  bileduct   United States
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 Go to previous message
Ernesto is currently offline  Ernesto   Sweden
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);
	}


  Switch to threaded view of this topic Create a new topic Submit Reply
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 10 11:36:36 GMT 2024

Total time taken to generate the page: 0.02418 seconds