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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
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 10:15 Go to next message
bileduct is currently offline  bileduct   United States
Messages: 3
Registered: March 2007
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 11:37 Go to previous message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
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);
	}


Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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: Sat Dec 16 13:52:50 EST 2017

Total time taken to generate the page: 0.00617 seconds