Jump to content

How and where do you put flash into home pageWelcome box


Guest lem2

Recommended Posts

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

Link to comment
Share on other sites

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&amp;productId={VAL_PRODUCT_ID}"><img src="{VAL_IMG_SRC}" alt="{VAL_PRODUCT_NAME}" border="0" /></a>

<br />

<a href="index.php?act=viewProd&amp;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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Guest Scorpion

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?

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Guest Scorpion

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

Link to comment
Share on other sites

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 :(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...