zpupster Posted July 21, 2010 Posted July 21, 2010 hello, below is from includes/languages/english/index.php. if i am correct ii am to put what i want on the mysite.com/index.php here between the single quotes. define('TEXT_MAIN', ' '); what i want to do is put a flash app, but i keep getting an error on the <script section>, i tried just posting the no script did not work. also, i tried putting <script src="http://www.comtalkinc2.com/scripts/AC_RunActiveContent.js" language="javascript"></script> at the top of the page. i guess my trouble is i do not know how to call the .js script in a .php file. the flash looks like this: <script language="javascript"> if (AC_FL_RunContent == 0) { alert("This page requires AC_RunActiveContent.js."); } else { AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','width','590','height','250','id','images/adrot3','align','middle','src','images/adrot3','quality','high','bgcolor','#ffffff','name','images/adrot3','allowscriptaccess','sameDomain','allowfullscreen','false','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','images/adrot3' ); //end AC code } </script> <noscript> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="590" height="250" id="images/adrot3" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="images/adrot3.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="images/adrot3.swf" quality="high" bgcolor="#ffffff" width="590" height="250" name="images/adrot3" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </noscript> one other quick question: waht does the WS stand for in this expression:<?php require(DIR_WS_INCLUDES . 'header.php'); ?> thanks, craig
mirko007 Posted July 21, 2010 Posted July 21, 2010 hello, below is from includes/languages/english/index.php. if i am correct ii am to put what i want on the mysite.com/index.php here between the single quotes. define('TEXT_MAIN', ' '); what i want to do is put a flash app, but i keep getting an error on the <script section>, i tried just posting the no script did not work. also, i tried putting <script src="http://www.comtalkinc2.com/scripts/AC_RunActiveContent.js" language="javascript"></script> at the top of the page. i guess my trouble is i do not know how to call the .js script in a .php file. the flash looks like this: <script language="javascript"> if (AC_FL_RunContent == 0) { alert("This page requires AC_RunActiveContent.js."); } else { AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','width','590','height','250','id','images/adrot3','align','middle','src','images/adrot3','quality','high','bgcolor','#ffffff','name','images/adrot3','allowscriptaccess','sameDomain','allowfullscreen','false','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','images/adrot3' ); //end AC code } </script> <noscript> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="590" height="250" id="images/adrot3" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="images/adrot3.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="images/adrot3.swf" quality="high" bgcolor="#ffffff" width="590" height="250" name="images/adrot3" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </noscript> one other quick question: waht does the WS stand for in this expression:<?php require(DIR_WS_INCLUDES . 'header.php'); ?> thanks, craig Better way to put some flash is using banner manager in admin panel after adding new group e.g. my_flash use code to put wherever you need <?php if ($banner = tep_banner_exists('dynamic', 'my_flash')) { echo tep_display_banner('static', $banner); ?> } ?>
zpupster Posted July 22, 2010 Author Posted July 22, 2010 thanks, the code you gave did not help or maybe i used it wrong, but i used the banner manager and got it to work in firefox but not ie just show up blank. can anyone help to get it to show in ie. thanks, craig
zegar911 Posted July 22, 2010 Posted July 22, 2010 HI, think you might need to install this contribution "flash_bannersv2.0" first, its work for me. now i am just uploading .swf files in my banners,its easy,, hope works for you, Zegar.
zpupster Posted July 23, 2010 Author Posted July 23, 2010 thanks a bunch, i was frustrated and missed this, i was trying to call the swf file from a folder outside the main catalog folder. i moved the image inside the catalog folder. Now, ie, ff, o, safari and chrome are working fine. thanks again, craig
Recommended Posts
Archived
This topic is now archived and is closed to further replies.