Guest lem2 Posted November 9, 2006 Share Posted November 9, 2006 I would like to put a flash file into the welcome box on the home page I have search for several day and can not find any info on this I have found the info on the header but not on the welcome box Can any one lead me in the right direction? I have tried using the editor in the adm area. but I only get a copy of the file I am placing. I am using 3.12 legend skin Any help would be appreciated. If you need to look at my site itis www.mels-worlds.com Thanks again I look forward to hearing Quote Link to comment Share on other sites More sharing options...
roban Posted November 9, 2006 Share Posted November 9, 2006 If you have the code for your flash try using the 'source' function in fckeditor to paste your code. Also your Latest Products alignment is messy. Try this fix: In the includes/content/index.inc.php find this line: for($i=0;$i<count($latestProducts);$i++){ Replace with this code $across=4; $index->assign("TW",100/$across); for($i=0;$i<count($latestProducts);$i++){ if (!(($i+1) % $across)) { $index->assign("TXT_TR","</tr><tr>"); } else { $index->assign("TXT_TR",""); } in skins/{insert skin name}/styleTemplates/content/index.tpl replace all code between <!-- BEGIN: repeat_prods --> and CODE <!-- END: repeat_prods --> including those two lines above with this code CODE <table width="100%" border="0"><tr> <!-- BEGIN: repeat_prods --> <td width="{TW}%"> <div style="float: center; text-align: center;"> <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}"><img src="{VAL_IMG_SRC}" alt="{VAL_PRODUCT_NAME}" border="0" /></a> <br /> <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}" class="txtDefault">{VAL_PRODUCT_NAME}</a> <br /> {TXT_PRICE} <span class="txtSale">{TXT_SALE_PRICE}</span> </div> </td> {TXT_TR} <!-- END: repeat_prods --> </tr></table> The $across variable is used to specify number products across. Quote Link to comment Share on other sites More sharing options...
Guest lem2 Posted November 9, 2006 Share Posted November 9, 2006 Thanks for the help Rogan I'm working on the flash. the fix you gave on the latest product is great and it works fine Again thanks When I get the flash working I let you know Quote Link to comment Share on other sites More sharing options...
roban Posted November 9, 2006 Share Posted November 9, 2006 Thanks for the help Rogan I'm working on the flash. the fix you gave on the latest product is great and it works fine Again thanks When I get the flash working I let you know Great! Glad it worked for you. Now do me a big favor and get my name right. Quote Link to comment Share on other sites More sharing options...
Guest lem2 Posted November 10, 2006 Share Posted November 10, 2006 Hi Ansuk Can you explain your reply to rogain Thanks Quote Link to comment Share on other sites More sharing options...
roban Posted November 10, 2006 Share Posted November 10, 2006 The name is roban R-O-B-A-N and you don't want to make me angry. Quote Link to comment Share on other sites More sharing options...
Guest lem2 Posted November 10, 2006 Share Posted November 10, 2006 Sorry It's ROBAN My fingers are a bit slow. I have not been able to get the flash to work . any other suggestion Roban or ansuk or any one ? Thanks in advance Quote Link to comment Share on other sites More sharing options...
roban Posted November 10, 2006 Share Posted November 10, 2006 we'll wait for markscarts to weigh in on this one. Quote Link to comment Share on other sites More sharing options...
Guest lem2 Posted November 10, 2006 Share Posted November 10, 2006 Thanks In the mean time I downloaded FCK2.3.2 It up and running and I notice it has a tool for up loading flash I'l give it a try and let you know. Quote Link to comment Share on other sites More sharing options...
Guest Scorpion Posted November 10, 2006 Share Posted November 10, 2006 Thanks In the mean time I downloaded FCK2.3.2 It up and running and I notice it has a tool for up loading flash I'l give it a try and let you know. Have you tried clicking view source in the corner as using the code as below <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="748" height="136" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="location/file.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <embed src="location/file.swf" quality="high" bgcolor="#000000" width="748" height="136" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed> </object> just change location/file.swf to the location and name of your file Seems that everyone has missed the obvious? Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 10, 2006 Share Posted November 10, 2006 There have been problems all along adding flash to source code in fckeditor with CubeCart, I have seen many posts about it, and IIRC, member "sound" found that it worked in the later versions of fckeditor. Upgrading the fckeditor in your CubeCart is a great idea for many reasons other than flash, too. 2.0 of the editor sucks, JMNSHO we'll wait for markscarts to weigh in on this one. OK, weighing in here: I agree, it's R-O-B-A-N :) Quote Link to comment Share on other sites More sharing options...
Guest lem2 Posted November 11, 2006 Share Posted November 11, 2006 Thanks MorksCarts,Roban and Scorpion for the reply Still working at it. Quote Link to comment Share on other sites More sharing options...
Guest lem2 Posted November 15, 2006 Share Posted November 15, 2006 If you have the code for your flash try using the 'source' function in fckeditor to paste your code. Also your Latest Products alignment is messy. Try this fix: In the includes/content/index.inc.php find this line: for($i=0;$i<count($latestProducts);$i++){ Replace with this code $across=4; $index->assign("TW",100/$across); for($i=0;$i<count($latestProducts);$i++){ if (!(($i+1) % $across)) { $index->assign("TXT_TR","</tr><tr>"); } else { $index->assign("TXT_TR",""); } in skins/{insert skin name}/styleTemplates/content/index.tpl replace all code between <!-- BEGIN: repeat_prods --> and CODE <!-- END: repeat_prods --> including those two lines above with this code CODE <table width="100%" border="0"><tr> <!-- BEGIN: repeat_prods --> <td width="{TW}%"> <div style="float: center; text-align: center;"> <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}"><img src="{VAL_IMG_SRC}" alt="{VAL_PRODUCT_NAME}" border="0" /></a> <br /> <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}" class="txtDefault">{VAL_PRODUCT_NAME}</a> <br /> {TXT_PRICE} <span class="txtSale">{TXT_SALE_PRICE}</span> </div> </td> {TXT_TR} <!-- END: repeat_prods --> </tr></table> The $across variable is used to specify number products across. I used you above info "Products alignment is messy" It did clean it up, but there is only 1 product across How can I get 2 or more product across I tried changing the $across=4; to various number. Nothing happens.Can you advise me? Thanks Mel Quote Link to comment Share on other sites More sharing options...
Guest Scorpion Posted November 17, 2006 Share Posted November 17, 2006 If you have the code for your flash try using the 'source' function in fckeditor to paste your code. Also your Latest Products alignment is messy. Try this fix: In the includes/content/index.inc.php find this line: for($i=0;$i<count($latestProducts);$i++){ Replace with this code $across=4; $index->assign("TW",100/$across); for($i=0;$i<count($latestProducts);$i++){ if (!(($i+1) % $across)) { $index->assign("TXT_TR","</tr><tr>"); } else { $index->assign("TXT_TR",""); } in skins/{insert skin name}/styleTemplates/content/index.tpl replace all code between <!-- BEGIN: repeat_prods --> and CODE <!-- END: repeat_prods --> including those two lines above with this code CODE <table width="100%" border="0"><tr> <!-- BEGIN: repeat_prods --> <td width="{TW}%"> <div style="float: center; text-align: center;"> <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}"><img src="{VAL_IMG_SRC}" alt="{VAL_PRODUCT_NAME}" border="0" /></a> <br /> <a href="index.php?act=viewProd&productId={VAL_PRODUCT_ID}" class="txtDefault">{VAL_PRODUCT_NAME}</a> <br /> {TXT_PRICE} <span class="txtSale">{TXT_SALE_PRICE}</span> </div> </td> {TXT_TR} <!-- END: repeat_prods --> </tr></table> The $across variable is used to specify number products across. I used you above info "Products alignment is messy" It did clean it up, but there is only 1 product across How can I get 2 or more product across I tried changing the $across=4; to various number. Nothing happens.Can you advise me? Thanks Mel N. update the flash embed code doesnt work when u have added it adn you submit the changes oit crashes ur browser Phil Quote Link to comment Share on other sites More sharing options...
Guest Global Posted November 19, 2006 Share Posted November 19, 2006 Hey, just to say that i've managed to get flash to work in my welcome box. Check out my site http://www.globalbully.com I'm using an image rotator flash swf, thats very customisable and free, you can get from: http://www.jeroenwijering.com/?item=Flash_Image_Rotator It simply rotates .jpgs, not everyones cup of tea, but perfect for me as I have no flash knowledge. this is the code that i have used: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="485" height="285" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"> <param name="movie" value="/imagerotator/jpgrotator.swf" /> <param name="wmode" value="transparent" /> <param name="flashvars" value="file=/imagerotator/jpgrotator.xml" /> <embed width="485" height="285" src="/imagerotator/jpgrotator.swf" flashvars="file=/imagerotator/jpgrotator.xml" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" /> </object> If that helps at all.... Rosco :( Quote Link to comment Share on other sites More sharing options...
Guest lem2 Posted November 19, 2006 Share Posted November 19, 2006 Thanks Global Your site looks good Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.