media 65
Home | Login | Register | Password Reset |

Media 65 Technologies | Beta 0.6 |
User Name:   Password: 

Password Reset
Close


Go Back   Media 65 Forums > Joomla > Joomla Templates

 
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-02-2007, 02:29 AM
Junior Member
 
Join Date: Jun 2007
Posts: 15
Default Template Maker potential Flash problem?

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2 (permalink)  
Old 09-02-2007, 10:39 AM
Administrator
 
Join Date: Sep 2006
Posts: 335
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3 (permalink)  
Old 09-03-2007, 01:22 AM
Junior Member
 
Join Date: Jun 2007
Posts: 15
Default Little bit confused

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4 (permalink)  
Old 09-03-2007, 11:09 AM
Administrator
 
Join Date: Sep 2006
Posts: 335
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5 (permalink)  
Old 09-03-2007, 11:50 PM
Junior Member
 
Join Date: Jun 2007
Posts: 15
Default Success !!!!!!!

Solved on the last post

Last edited by Ztyle; 10-22-2007 at 09:08 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6 (permalink)  
Old 10-22-2007, 08:57 PM
Junior Member
 
Join Date: Jun 2007
Posts: 15
Default Problem solved

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -4. The time now is 11:35 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0