riesengross Posted October 1, 2012 Share Posted October 1, 2012 (edited) Hello, we developed a flash modul which loads external php files. Are problems known with the smarty engine? If I call the modul out of prestashop in the same directory all files are loaded and displayed, if I call the module inside I got problems with loading .xml and .php files. Why? The flash file is embeded in this way: <div style="align: center; width: 400px; height: 220px; border: 1px solid grey; margin-top: 5px;"> <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="400" height="220" id="webstream" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="true" /> <param name="movie" value="{$base_dir}test/module.swf?user={$cookie->id_customer}&category={$category->id|intval}&product={$product->id|intval}&root=&transparent=true" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <embed src="{$base_dir}test/module.swf?user={$cookie->id_customer}&category={$category->id|intval}&product={$product->id|intval}&root=&transparent=true" quality="high" bgcolor="#ffffff" width="400" height="220" name="webstream" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </div> Any help is welcome... Best regards Jürgen Edited October 4, 2012 by riesengross (see edit history) Link to comment Share on other sites More sharing options...
CartExpert.net Posted October 1, 2012 Share Posted October 1, 2012 Hi Jürgen. Would you be more explicit: If I call the modul out of prestashop in the same directory all files are loaded and displayed, if I call the module inside I got problems with loading .xml and .php files. Regards. Robin. The CartExpert Team Link to comment Share on other sites More sharing options...
riesengross Posted October 2, 2012 Author Share Posted October 2, 2012 If I call the module.swf directly in the browser through the url it will work. If I call the module.swf through the product.tpl it doesn't work. The flash file loads a lot of external php files in a subdirectory. Is it necessary, that external php files loaded through a swf in smarty template must have smarty syntax too? Link to comment Share on other sites More sharing options...
CartExpert.net Posted October 2, 2012 Share Posted October 2, 2012 If I call the module.swf directly in the browser through the url it will work. If I call the module.swf through the product.tpl it doesn't work. The flash file loads a lot of external php files in a subdirectory. Are you loading these files by setting a relative path? That could be the reason it's not working if you embed it in HTML. Is it necessary, that external php files loaded through a swf in smarty template must have smarty syntax too? Since we do not know, what the role of these files is, we can't answer the question. Regards. Robin. The CartExpert Team Link to comment Share on other sites More sharing options...
riesengross Posted October 2, 2012 Author Share Posted October 2, 2012 Your hint was fine! Sometimes I doesn't see the forest for the trees. Flash doesn't detect his own basepath, now we use a additional path variable inside the call. We solved the problem and everything is working fine now. Thanks! Link to comment Share on other sites More sharing options...
CartExpert.net Posted October 2, 2012 Share Posted October 2, 2012 Your hint was fine! Sometimes I doesn't see the forest for the trees. Flash doesn't detect his own basepath, now we use a additional path variable inside the call. We solved the problem and everything is working fine now. Thanks! Happy to have helped. Please mark the topic as [sOLVED] Regards. Robin. The CartExpert Team Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now