FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Html/flash in Forum post





Dark-Tech
I am running a PHPBB# forum and i want to embed code in a post for a FLash player

Code:

<html>
<head>
<script type="text/javascript" src="swfobject.js"></script>
</head>
<body>

<p id="player2"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
   var s2 = new SWFObject("flvplayer.swf","playlist","500","500","7");
   s2.addParam("allowfullscreen","true");
   s2.addVariable("file","playlist.xml");
   s2.addVariable("displayheight","360");
   s2.addVariable("backcolor","0x000000");
   s2.addVariable("frontcolor","0xCCCCCC");
   s2.addVariable("lightcolor","0x557722");
   s2.addVariable("width","500");
   s2.addVariable("height","500");
   s2.write("player2");
</script>

</body>
</html>

I can put <script type="text/javascript" src="swfobject.js"></script> in the header of a page through template manipulation but i don't know how i can post the script /embeded flash player into a page
anyone know how i can or have any ideas
Dark-Tech
I figured out a way to solve my problem, i edit the post directly through the database for the post to get around the sql errors i was getting
manav
but i dont think tht its a good idea to let ur users post flash content for vrious reasons,,,,,
Related topics
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.