Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

flashxml

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-14-2011, 03:47 PM
 
roblen roblen is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 114
 

Default flashxml

hello, I have spent way too much time trying to get a flash oblject to display in the header. using a simple slider from flashxml

i put the script in head directory enclosed with literal tags

It wont display. I was wondering if anyone had had success implementing this
thanks
Rob
4.1.12
__________________
X-Cart version 4.1.9
PHP 5.2.13 Details >>
GD bundled (2.0.34 compatible)
MySQL server 5.0.77-log
MySQL client 5.0.77
Web server Apache/2.2
Operation system Linux
Perl not found
XML parser (expat) found
Reply With Quote
  #2  
Old 09-14-2011, 04:42 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: flashxml

I have incorporated many flash objects, into many different xcart headers. Never had a problem with getting it to display. Sometimes transparent flash layers have to have some z-index assigned via css, but that's it.

Share the code you are using, and link to the site so we can see it, and we can help better.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 09-15-2011, 04:37 AM
 
roblen roblen is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 114
 

Default Re: flashxml

Thank you for your reply. In the process of setting up the script to show you, I tried something that was not in flashxml documentation. At least not on the same section. when you move the script out of their directory, you need to set paths to the files. what they don't mention is that you need to incorporate this for both the xml file the swf file the path and js file..
Hope this helps someone.

### customer/home.tpl ###
{include file="meta.tpl" }
<link rel="stylesheet" type="text/css" href="{$SkinDir}/{#CSSFile#}" />
[[ flash head start ]]
{literal}
<script type="text/javascript" src="/flash_header/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.settingsXML = "http://www.domain.com/flash_header/settings.xml";
flashvars.folderPath = "http://www.domain.com/flash_header/";
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
params.allowScriptAccess = "always";
params.allowFullScreen = "true";
var attributes = {};
swfobject.embedSWF("/flash_header/MediaSlideshowFX.swf", "DivMediaSlideshowFX", "800", "300", "9.0.0", false, flashvars, params, attributes);
</script>
{/literal}
[[ flash head end ]]

</head>


What i had to do wash add both below. I was only adding one or the other. in a trial and error process
flashvars.settingsXML = "http://www.domain.com/flash_header/settings.xml";
flashvars.folderPath = "http://www.domain.com/flash_header/";
__________________
X-Cart version 4.1.9
PHP 5.2.13 Details >>
GD bundled (2.0.34 compatible)
MySQL server 5.0.77-log
MySQL client 5.0.77
Web server Apache/2.2
Operation system Linux
Perl not found
XML parser (expat) found
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:06 PM.

   

 
X-Cart forums © 2001-2020