Falling Snowflakes

Locked

Started by d4rkness on 3 Dec 2008, 5:17 AM · Views: 5,494

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
3 Dec 2008, 5:49 AM
#2
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Falling Snowflakes

create a file in your template dirs jscript directory called jscript_snow.js

copy the script there and remove the opening and closing script tags.

download the snowflake to your images directory

edit the line of the script that says:

var snowsrc="snow.gif"

to:

var snowsrc="/images/snow.gif"

Thats it.

Works nice.

3 Dec 2008, 6:14 AM
#3
d4rkness avatar

d4rkness

Zen Follower

Join Date:
Nov 2006
Location:
Federation Earth
Posts:
112
Plugin Contributions:
0

Re: Falling Snowflakes

Ok I couldn't get that to work....i put the file in template dir and put the snowflake image in image folder.... and took off the script tags

3 Dec 2008, 6:28 AM
#4
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Falling Snowflakes

The script should go in:
/includes/templates/YOUR-TEMPLATE/jscript/jscript_snow.js

Be sure to change YOUR-TEMPLATE to the proper name of your template.

Look at the site below to see it work in Zen Cart.

If you still have problem, let me know.

3 Dec 2008, 6:42 AM
#5
d4rkness avatar

d4rkness

Zen Follower

Join Date:
Nov 2006
Location:
Federation Earth
Posts:
112
Plugin Contributions:
0

Re: Falling Snowflakes

ok Im just using the classic template and I didn't have it the jscript folder but I do now....but still not going...argh I hate scripts some times lol

It should work!

3 Dec 2008, 9:08 AM
#6
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Falling Snowflakes

Where did you put the snowflake graphic?

3 Dec 2008, 5:05 PM
#8
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Falling Snowflakes

Please create your own custom template. If you edit the files in the classic template and don't save the changes to a different folder, all your work will be lost with the next upgrade/update.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

3 Dec 2008, 5:21 PM
#9
d4rkness avatar

d4rkness

Zen Follower

Join Date:
Nov 2006
Location:
Federation Earth
Posts:
112
Plugin Contributions:
0

Re: Falling Snowflakes

Well I am just worrying about this holiday season right now! I don't do that extensive of changes and updates don't come that frequent to worry about. Right now I just want it snow in my cart~

3 Dec 2008, 6:18 PM
#10
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Falling Snowflakes

1.4 is in the offing. You're going to have a rough time upgrading.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

3 Dec 2008, 6:31 PM
#11
d4rkness avatar

d4rkness

Zen Follower

Join Date:
Nov 2006
Location:
Federation Earth
Posts:
112
Plugin Contributions:
0

Re: Falling Snowflakes

No I am not, because the upgrading is like rocket science to me!~ I don't get it and it's hard for me! Trust me I have lots of PHP software on my site and this is the only one that is written without an auto upgrade. Once again I will have to PAY someone to upgrade it because the upgrading is so comboobalated~ I am not here to dicuss the upgrading.

However with that said the only customization I do is two color changes, back ground and change the tile back gif. I am NOT worried about upgrading to 1.4 and having those 4 things being over written. Any my upgrade person will handle that anyways.

I am just trying to figure why the snow wont fall ok?

3 Dec 2008, 7:15 PM
#12
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Falling Snowflakes

D4rKNeSs:

I am just trying to figure why the snow wont fall ok?

It falls only when there's enough humidity in the air and it's cold enough - were you asleep during geography lessons? :D

20 years a Zencart User

3 Dec 2008, 7:23 PM
#13
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Falling Snowflakes

schoolboy:

It falls only when there's enough humidity in the air and it's cold enough - were you asleep during geography lessons? :D

Ask your host to put your server into the refrigerator. :laugh:

3 Dec 2008, 7:59 PM
#14
d4rkness avatar

d4rkness

Zen Follower

Join Date:
Nov 2006
Location:
Federation Earth
Posts:
112
Plugin Contributions:
0

Re: Falling Snowflakes

:clap: Haha ~ :clap:

4 Dec 2008, 2:43 PM
#15
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Falling Snowflakes

I have followed the directions given above exactly (including the override folders, which I always use) and so far, no snow. Ignoring the humidity/temp variables, do you have any suggestions?

It should be working in my retail site (link below), but not yet.

TIA

Rob

Breakfast: the most important donut of the day.

4 Dec 2008, 3:04 PM
#16
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Falling Snowflakes

I found the problem. The path suggested in post #2 of this thread (var snowsrc="/images/snow.gif") for the image was incorrect, at least on my server. It should read...

"images/snow.gif"

without the slash before "images".

Rob

Breakfast: the most important donut of the day.

4 Dec 2008, 3:28 PM
#17
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Falling Snowflakes

More help needed! :P

I decided to have snow falling only on the home page. So, following the instructions in the docs, I put the jscript_snow.js file inside the includes/modules/pages/index/ folder. Didn't work.

I noticed a classic folder in the modules folder, so thinking an override folder structure would work better I put my js file inside includes/modules/my_template/pages/index/

That didn't work either. Any ideas?

Rob

Breakfast: the most important donut of the day.

4 Dec 2008, 4:24 PM
#18
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Falling Snowflakes

I think this is a neat script, but to say the truth, after a short time it is driving me nuts seeing those flakes drifting all over. I think later today I'm to get rid of it.

PS: if you just want it on your homepage, you can do something like this in your common/html_header.php :

<?php if($this_is_homepage){ ?>

YOUR SCRIPT HERE (WITH <SCRIPT> TAGS)

<?php } ?>

Paste the script in full from dynamicdrive and just edit the path in it to your snowflake.

I didn't test the above, but it should be close enough to give you clue.

4 Dec 2008, 5:36 PM
#19
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Falling Snowflakes

Actually, Zen Cart has a built-in way to do this sort of thing. But it's not working, as I stated above. No need to edit code. I just need to figure out why it won't work when placed in the correct single page folder.

And yes, I agree about it being distracting. That's why I wanted to restrict it to the home page.

Rob

Breakfast: the most important donut of the day.

6 Dec 2008, 3:14 AM
#20
d4rkness avatar

d4rkness

Zen Follower

Join Date:
Nov 2006
Location:
Federation Earth
Posts:
112
Plugin Contributions:
0

Re: Falling Snowflakes

Ok got snow to fall helps if you make sure the snowflake is named the same name in the script as the image! lol Thanks kiddo!