News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

white box when embedding flash

Started by jak6868, February 07, 2009, 10:26:53 PM

Previous topic - Next topic

jak6868

Hi all, I'm seeing a plain white box when I embed a flash game.
I scoured the forum, and I've done the following:

flash is enabled in CP (in both bbc code section and posts section)

I then tried to put the following in a post hoping of course to see a playable game:
[flash=200,200]<iframe src="http://www.miniclip.com/games/polar-jump/en/webgame.php" frameborder="0" style="border:none;" width="550" height="550" scrolling="no"></iframe>[flash]

Got a white box.

I then tried the miniclip game mod (http://custom.simplemachines.org/mods/index.php?mod=809) and the exact same thing happened. Got a white box.

So - why does that white box appear? What is wrong? Thanks!

UPDATE: Solved.  Rather than [flash] bbc codes, I needed  [html] codes, like this:
[html]<iframe src="http://www.miniclip.com/games/polar-jump/en/webgame.php" frameborder="0" style="border:none;" width="550" height="550" scrolling="no"></iframe>[/html]

As I understand it, only admin can put in the html tag?
As I further understand it, the 'iframe on post mod' (here: http://custom.simplemachines.org/mods/index.php?mod=941) allows users to insert iframes but is a bit of a security risk?

greyknight17

Yes, only admins are allowed to use the HTML tag by default. You can enable it for everyone in Admin > Posts and Topics > Bulletin Board Code but it's not recommended as it can pose security issues.

Yes, the same applies if you allow your users to use HTML. I suggest keeping this for administrators only.

Advertisement: