Christmas snow

Version
1.0
Rating
Compatibility
Votes
Favoured
5
License
GPLv2 or later
Non-Commercial
Type
Views
36834
Date Added
11 December 2009
Editor's Note
- display back link
This is a very small module that adds a Christmas Snow effect to your site.
Display correctly in all positions of your joomla
Working properly in mozilla firefox, internet explorer and Google chrome.
Languages: spanish and english.
I had no problem installing or getting the snow to fall, however performance varies depending upon the browser. It does change the width of the page, so the horizontal scrollbar shifts back and forth as the snow falls.
It appears as though the module doesn't register itself properly so it doesn't appear on the list of installed modules that can be uninstalled.
It appears as though the module doesn't register itself properly so it doesn't appear on the list of installed modules that can be uninstalled.
The rating is for joomla 1.0.x compatibility only. It say's in description that this haves a joomla 1.0.x compatibility, but it doesn't.
OK. One small fix:
1) Edit the file ...\modules\mod_Christmas_snow\mod_Christmas_snow.php
2) On Line 44: Delete the first / before modules
before:
snowsrc=(snowsrc.indexOf("iniciodirecto.com")!=-1)? "/modules/mod_Christmas_snow/snow.gif" : snowsrc
after:
snowsrc=(snowsrc.indexOf("iniciodirecto.com")!=-1)? "modules/mod_Christmas_snow/snow.gif" : snowsrc
3) On Line 9: Delete the first / before modules
before:
var snowsrc="/modules/mod_Christmas_snow/snow.gif"
after:
var snowsrc="modules/mod_Christmas_snow/snow.gif"
4) Save your 2 changes edit. You are good to go!
1) Edit the file ...\modules\mod_Christmas_snow\mod_Christmas_snow.php
2) On Line 44: Delete the first / before modules
before:
snowsrc=(snowsrc.indexOf("iniciodirecto.com")!=-1)? "/modules/mod_Christmas_snow/snow.gif" : snowsrc
after:
snowsrc=(snowsrc.indexOf("iniciodirecto.com")!=-1)? "modules/mod_Christmas_snow/snow.gif" : snowsrc
3) On Line 9: Delete the first / before modules
before:
var snowsrc="/modules/mod_Christmas_snow/snow.gif"
after:
var snowsrc="modules/mod_Christmas_snow/snow.gif"
4) Save your 2 changes edit. You are good to go!
Great module but depending on your server configuration you may get the snowflake images with a large Red X instead (meaning that the browser cannot find the image). Also, on FireFox, if it cannot find the image it will appear that nothing is happening.
The reason is that some configs need the full URL (not path) to the image.
Here is a hack to make it work:
Install the module package.
Use an FTP program to find it in the modules directory.
First copy the snow.gif to the base Joomla images folder.
Then in mod_Christmas_snow.php find the "snowsrc =" line (line 44) and change it to:
snowsrc="http://www.mywebsite.com/images/snow.gif"
That worked for me.
(I also removed the URL link that was attached to the snowflake image. But that is up to you.)
The reason is that some configs need the full URL (not path) to the image.
Here is a hack to make it work:
Install the module package.
Use an FTP program to find it in the modules directory.
First copy the snow.gif to the base Joomla images folder.
Then in mod_Christmas_snow.php find the "snowsrc =" line (line 44) and change it to:
snowsrc="http://www.mywebsite.com/images/snow.gif"
That worked for me.
(I also removed the URL link that was attached to the snowflake image. But that is up to you.)
Good extension for Xmas
Congratulations on your idea, very good. I inserted in my site, but the image of the Christmas tree did not appear. When snow falls, there is a change in screen size - it grows. I use 1028. Tested with IE8, FF 3.5.6 and Chrome, all as the same error. The intention is to improve the module that has an excellent purpose.






