X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Add flash image on main page (https://forum.x-cart.com/showthread.php?t=26284)

Warwick 11-01-2006 06:59 AM

Add flash image on main page
 
Can anybody help with implementing a flash image on the main page instead of the standard welcome.jpg?

I know I'll have to alter skin1/customer/main/welcome.tpl but after that 'm lost; I've searched the forums but can't get the info to get started :-(

The original welcome.tpl code:
Code:

{* $Id: welcome.tpl,v 1.28.2.1 2006/07/12 04:51:17 svowl Exp $ *}
<img src="{$ImagesDir}/customer_images/welcome.jpg" width="537" height="262" alt="" />


Here is what I'd like to implement:
Code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="537" height="262" id="ssp" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="ssp.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="ssp.swf" quality="high" bgcolor="#ffffff" width="537" height="262" name="ssp" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>


balinor 11-01-2006 07:11 AM

Re: Add flash image on main page
 
So just paste it in :)

Warwick 11-01-2006 07:14 AM

Re: Add flash image on main page
 
:-)

You're pulling my leg right?

balinor 11-01-2006 07:16 AM

Re: Add flash image on main page
 
No, I'm serious...just replace the image with the Flash code.

Warwick 11-01-2006 07:21 AM

Re: Add flash image on main page
 
Like this?

Code:

{* $Id: welcome.tpl,v 1.28.2.1 2006/07/12 04:51:17 svowl Exp $ *}
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="537" height="262" id="ssp" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="ssp.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="ssp.swf" quality="high" bgcolor="#ffffff" width="537" height="262" name="ssp" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>


... didn't try that ...

balinor 11-01-2006 07:23 AM

Re: Add flash image on main page
 
Yep. Make sure the .swf file is in the root directory.

Warwick 11-01-2006 07:31 AM

Re: Add flash image on main page
 
:-)

Thanks a million!

I made it more difficult then it was; don't ask me what kind of silly coding experiments I performed these last hours ...

balinor 11-01-2006 07:34 AM

Re: Add flash image on main page
 
Sometimes with X-Cart the simple solutions appear TOO simple :)

Warwick 11-01-2006 07:37 AM

Re: Add flash image on main page
 
Quote:

Originally Posted by balinor
Sometimes with X-Cart the simple solutions appear TOO simple :)


It seems you're right on the money! :-)

davidsaldana 04-05-2007 08:00 PM

Re: Add flash image on main page
 
I used this code and it works great in the php live site, but i cannot get it to work on the static pages. Please refer to the following:

http://www.mailboxixchange.com/store/product.php?productid=18622&cat=0&page=1

But the static page does not show product:

http://www.mailboxixchange.com/Curbvault-High-Security-Mailbox-p-18622.html

The code is as follows:

<div align="center"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="400" height="400" id="howworks" align="middle">
<param name="allowScriptAccess" value="http://www.mailboxixchange.com" />
<param name="movie" value="howworks.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="howworks.swf" quality="high" bgcolor="#ffffff" width="400" height="400" name="howworks" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>

Please help as most people are directed to the static pages


All times are GMT -8. The time now is 04:48 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.