![]() |
Now to place flash file in detailed images
Hello!
I want swf file's or html files with swf to be desplayed at the detailed imeges any advices are welcome thanks! |
Post this in Wishlists or please search around the board.
This forum is for sharing your Custom X-Cart modifications with other users only. Please READ before you post! Quote:
Rules http://forum.x-cart.com/viewtopic.php?t=6489 You should read this thoroughly. Your X-cart version and server information NEED to be in your signature. |
moved
|
Very rough breakdown of steps:
Find out if the user has flash. Run a script or make them click a button that turns something like $flash_mode = ON Once you find they have flash you need to edit the product thumbails.tpl or detailed image module to an if statement. So it will say something like {if $flash_mode eq "ON"} play a swf {else} do a normal thumbnail {/if} Hard part is writing the code to play the swf. If you name all your swf's the $productid.swf (ex: 3462.swf) then you should be able to find the $productid part fairly simply with php and just have it put .swf at the end and look in a certain folder. Sorry dont have time to write something up, I just wanted to give you an outline of my idea to do this. I will be adding this feature to my site mid year once the low bandwidth site is done and 100%. |
|
All times are GMT -8. The time now is 05:47 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.