Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Using swf in the main page.

Using swf in the main page.

Locked

Views: 2,883

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
3 May 2009, 3:14 AM
#1
trnghosh avatar

trnghosh

New Zenner

Join Date:
Apr 2009
Posts:
55
Plugin Contributions:
0

Using swf in the main page.

I am sorry to give you one link to view that is not my site. They used one swf at the middle of the site, may be it is the position of (breadcrumb) but I am not sure. I able to insert swf at the header position with the help of one tutorial find here, but how can I use another swf in that position.
Can anyone give me any idea how can I do this.

Here is the link to view. Sorry it is not my site.

http://visenta.us/

Regards
trnghosh

3 May 2009, 5:55 PM
#2
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Using swf in the main page.

you can do that via Define pages editor ..
look for define_main_page.php , this is where you can add text , etc to main page index.

define pages are located in admin
Tools / define pages editor .

hope this helps.

3 May 2009, 6:29 PM
#3
trnghosh avatar

trnghosh

New Zenner

Join Date:
Apr 2009
Posts:
55
Plugin Contributions:
0

Re: Using swf in the main page.

I can add text but how can I add one swf there? Can you explain you something more please.

trnghosh

4 May 2009, 2:51 AM
#4
trnghosh avatar

trnghosh

New Zenner

Join Date:
Apr 2009
Posts:
55
Plugin Contributions:
0

Re: Using swf in the main page.

No I think it is not the way to insert swf at the main page through define page editor through admin. There must be something else which I do not know, CAN somebody else give some light on this.

trnghosh

4 May 2009, 6:39 AM
#5
ayperi avatar

ayperi

New Zenner

Join Date:
Dec 2008
Posts:
29
Plugin Contributions:
0

Re: Using swf in the main page.

It can accept most Html codes as far as I understand, I've managed to once add an SSL seal before. I believe that's what he meant by using the define page editor. You would probably place the .swf file somewhere (probably in your store's folder somewhere) and then make a link to it like you would on a webpage.

4 May 2009, 3:07 PM
#6
trnghosh avatar

trnghosh

New Zenner

Join Date:
Apr 2009
Posts:
55
Plugin Contributions:
0

Re: Using swf in the main page.

I placed one swf at the classic green image folder and its name is one.swf and later insert the same in a table of width 200 at dreamweaver. Saved and tested worked fine. Now I copy the code from the Dremweaver and pasted the same in the define_main_page.php using the admin panel.( define page editor) Here is the code copied from Dreamweaver

<body> <table width="200" border="2"> <tr> <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="200" height="200"> <param name="movie" value="../../../wamp/www/zencart/includes/templates/classic/images/one.swf" /> <param name="quality" value="high" /> <embed src="../../../wamp/www/zencart/includes/templates/classic/images/one.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="200"></embed> </object></td> </tr> </table>

Saved it and tested.

OH! There is a white box with this dimension. Width =200 and height =200.

Can anybody tell me what is the procedure to insert the swf in the main page. I think I made some mistake.

trnghosh

4 May 2009, 3:17 PM
#7
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Using swf in the main page.

Try placing swf in root folder and alter swf code to reflect this..
see carousel swf at
http://www.dezinashop.com/demo/

4 May 2009, 4:25 PM
#8
trnghosh avatar

trnghosh

New Zenner

Join Date:
Apr 2009
Posts:
55
Plugin Contributions:
0

Re: Using swf in the main page.

Thank you Misty for your reply. I am not sure whether I can do it or not.
You told me to put the swf in the root folder. My ignorance and little knowledge could not figure it properly. Say I have a Custom Folder. Do I have to put the swf in that folder directly? I did so with no result. What I did : Opened dreamweaver and import the swf in a table of the same size of the swf and copied the code and pasted at the define_main_page.php? Is this procedure OK?

May be something is missing. However thank you for your mail once again. Visited you link.

trnghosh

4 May 2009, 5:09 PM
#9
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Using swf in the main page.

trnghosh:

Thank you Misty for your reply. I am not sure whether I can do it or not.
You told me to put the swf in the root folder. My ignorance and little knowledge could not figure it properly. Say I have a Custom Folder. Do I have to put the swf in that folder directly? I did so with no result. What I did : Opened dreamweaver and import the swf in a table of the same size of the swf and copied the code and pasted at the define_main_page.php? Is this procedure OK?

May be something is missing. However thank you for your mail once again. Visited you link.

trnghosh
I placed one swf at the classic green image folder and its name is one.swf
swf should not be in that folder but main zencart folder.
I dont use dreamweaver with zencart, and using wamp on localhost with swf can complicate coding.
As do not have url of an actual site, regret cannot advise further...

4 May 2009, 5:26 PM
#10
trnghosh avatar

trnghosh

New Zenner

Join Date:
Apr 2009
Posts:
55
Plugin Contributions:
0

Re: Using swf in the main page.

Hello

Misty

Thank you for your mail. You can view the site which I am trying to give some shape.
Here is the link to view.
http://www.guaranteedgoalsandsolutions.com/zencart/

I got the idea of inserting one swf from another site. What I want is here: In the main page that describes “Have you got yours yet”? ……………………….”

I am trying to insert one swf here and as I am in a learning process I am trying it on my local server first and if I succeed then I will upload it to the server as I am afraid of making some great mistakes there as I have very little knowledge and do not take the risk of doing all these things on the server.

However thank you. Sorry for disturbance.

Thank you for your reply once again.

trnghosh

4 May 2009, 5:37 PM
#11
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Using swf in the main page.

got the idea of inserting one swf from another site. What I want is here: In the main page that describes “Have you got yours yet”? ……………………….”

I am trying to insert one swf here
Then you enter code in define_main_page of your current template...you access this page via admin/tools/define pages.
You upload swf file to main folder of your domain name NOT
folder /zencart...

4 May 2009, 5:49 PM
#12
trnghosh avatar

trnghosh

New Zenner

Join Date:
Apr 2009
Posts:
55
Plugin Contributions:
0

Re: Using swf in the main page.

I must try this one.

Thank you.

4 May 2009, 6:13 PM
#13
trnghosh avatar

trnghosh

New Zenner

Join Date:
Apr 2009
Posts:
55
Plugin Contributions:
0

Re: Using swf in the main page.

misty:

Then you enter code in define_main_page of your current template...you access this page via admin/tools/define pages.
You upload swf file to main folder of your domain name NOT
folder /zencart...

Oh Misty

This one help me in inserting the swf there.

http://www.zen-cart.com/forum/showthread.php?t=119761&highlight=adding+image

Thanks a lot.

trnghosh

4 May 2009, 6:37 PM
#14
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Using swf in the main page.

Dont see it on your website but well done.

5 May 2009, 2:26 AM
#15
trnghosh avatar

trnghosh

New Zenner

Join Date:
Apr 2009
Posts:
55
Plugin Contributions:
0

Re: Using swf in the main page.

Tested at my local server and it works fine. I have to make some changes in my fla and after that I will upload the swf as it needs to correct some issues before uploading.

Thank you.

trnghosh