|
|||
|
Heys guys, I'm having a lot of trouble trying to implement a Flash based cookie (shared object) when I use your template maker. Currently all I want it to do is play the swf once and then have it repeat from a certain frame at a time limit of 15mins or so. If I upload the swf with the script on a simple HTML page it works. However as soon as I add it to the index.php and upload it the cookie does nothing. I've tried at least 3 or 4 different scripts (including joomla/mambo specific scripts) and I'm getting nothing but failure. I cant understand what I can possibly do to fix this problem. The fact that it works as a part of a HTML page makes me think theres something about the PHP conversion process thats stuffing up my script.
Any ideas? This could be the end for me if I cant get this to work. |
|
|||
|
Hi Ztyle,
it sounds a bit off but just add the swf to your Joomla root. Dreamweaver versions have issues with flash because of the "AC_RunActiveContent.js" this file in DW 8 up this file is added to the site. Joomla is a little funny with flash it works best in the Joomla root folder. it is possible to put it in your template folder but I would do the root. Make sure that add AC_RunActiveContent.js to root folder the path points looks like this. add this code to the head section of your template. <script src="<?php echo "$GLOBALS[mosConfig_live_site]/"; ?>AC_RunActiveContent.js" type="text/javascript"></script> add this to front path of any your "param" "embed src" paths in the flash code. <?php echo "$GLOBALS[mosConfig_live_site]/"; ?> look like this <embed src="<?php echo"$GLOBALS[mosConfig_live_site]/";?>logo_anim.swf" this will prints out http://www.joomla123.com/logo_anim.swf |
|
|||
|
Thanx for your quick response guys, professional as always
I got the Flash Active content update, applied it to the published HTML output file and then added the <?php echo "$GLOBALS[mosConfig_live_site]/"; ?> to the code so it looked like this : <embed src="<?php echo "$GLOBALS[mosConfig_live_site]/"; ?>Zwoobie Add Home.swf" (did that for Param and embed src paths) I moved my .swf, AC_RunActiveContent.js file and .html file (all published by flash) to the same directory as the template folders and added <script src="<?php echo "$GLOBALS[mosConfig_live_site]/"; ?>AC_RunActiveContent.js" type="text/javascript"></script> to the head but all I'm getting is blank / white swf. It shows up in its spot but theres no content playing in it.. Any ideas or did I do something wrong? Thanx for helping, you truly do look after your customers ![]() Last edited by Ztyle; 09-03-2007 at 07:14 AM. |
|
|||
|
Hi
It needs to be in the root of your Joomla site The "swf" and "js" out side the templates folder root > /all the Joomla files Add to the head section of your index.php Joomla template page <script src="<?php echo "$GLOBALS[mosConfig_live_site]/"; ?>AC_RunActiveContent.js" type="text/javascript"></script> take the flash embedded code in the html page and paste it in your index.php Joomla template. Make sure that Param and embed src paths have <?php echo "$GLOBALS[mosConfig_live_site]/"; ?> code. save fresh it should work. Cheers, Brian |
|
|||
|
Hey, I ended up solving this problem - The shared object works fine when the swf is in images so no need to move it to the root after all. For anyone else having a problem with cookies STAY AWAY from the 'turning Globals ON solution' (its a very bad idea for security reasons) and remember that flash can take care of the whole thing as long as the action script for the shared object is Joomla specific. Thats all you need.
![]() Last edited by Ztyle; 10-22-2007 at 09:09 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|