![]() |
Advanced Snowstorm Integration for Christmas
Please take some time and read this feature list before you go "Oh no, another of those pesky snowflake Mods!".
Features: - The snow is optionally piling up on the bottom of the screen (customize the script to your liking) - The script is lightweight and fast - The script works on all current browsers and uses PNG images incl. GIF fallback - Can be turned off by your users via quicklink or in the UserCP - User can change the direction of the blowing wind HackDetails: Difficulty: easy Templates to edit: 2 Approx. Time: 5-8 Minutes Compatibility: All vB versions As we all know, those nice scripts come at a price, and that is performance at the client side! I didn't want to pester my users with a CPU intensive script for the next 30 days and not offering a solution to switch it off in the UserCP (or temporarily). So with this hack everyone can decide for him/herself is he/she wants those nifty flakes flying around while reading the forum :) Allright let's move to the hack itself: First of all, I have to give full kudos to Scott Schiller who came up with the original Javascript for this nifty snowing effect. Secondly it is VERY easy to incorporate in your forum if you follow these 10 steps to success: 1) Get the latest version of the script from Scott Schiller's Homepage 2) Upload the script as well as all images included 3) AdminCP -> User Profile Fields -> Add New User Profile Field 4) Choose "Single Selection Radio Buttons" 5) Fill in all required fields and insert two values in the Options Box: (seperated with a return) YES NO 6) Set "Default" to YES 7) Hit "Save" and memorize the name of your field, in my case it's "field8". 8) Open up the Template "headinclude" and add at the bottom: Code:
<if condition="$bbuserinfo['field8']=='YES'"> 9) Hit "Save" and open up the template "navbar" and look for this code: Code:
<if condition="$show['member']"> Code:
<if condition="$bbuserinfo['field8']=='YES'"> 10) Hit "Save" and you're ready to go! Further thoughts: This little hack adds the two control links directly above the login-details of your users. But it can of course be implemented where you like, you can also add graphical buttons to it. Furthermore you can use phrases to make all this multilingual, a step I took because my forums are multilingual. Troubleshooting: Q: It doesn't work?! A: Be aware that this hack USES a script, which you have to download here! Q: Argh, I don't see any snow flakes, but my CPU get's mangled A: That's because the script doesn't find the images for the snowflakes. Open up the script (snowstorm.js) and set the "imagePath" to the folder where your snowflakes are in. You can even hardcode an absolute link there is everything fails. Q: My switch in the UserCP doesn't work! A: Make sure that you filled in the exact name of your field in the two locations which are specified in the steps above. Q: The snow falls too slow or the flakes are too small A: Open up the script and modify it to your liking, it's a great piece of code and well documented :) Q: Is the snow only visible for registered users? A: Yes, that's on perpose. Guests can't store any infos on the forum, therefore they can't switch it off if they don't like it. Q: Oh my god it still doesn't snow... and it's mid December already! A: Welcome to the age of global warming! Switch to a Hybrid Car, and walk more often. If everybody does that, we should get real snow again in a couple of decades :D |
I tied but it doesn't work.
|
Did you substitute the fieldname I was using in the hack-example with the name of the field you made on your forum? Did you check if the script is able to find the images on your server? Does the script get loaded? (You should see that in an increase of the processing power of your processor in the taskmanager in Windows).
|
..Do you have msn?
|
Is this 3.5.x compatible?
|
HackDetails:
Difficulty: easy Templates to edit: 2 Approx. Time: 5-8 Minutes Compatibility: All vB versions |
nice .. i'll try this out later
|
It's very cute. Thank you, doberlec.
|
Quote:
|
Nice mod... I might check this our nearer to Christmas... ;)
|
Not working, I have uploaded all the files into the root Dir and in the forum folder and it's still not working, can you give me the path the files should be in please?
|
So far people that have tried 0-2?
|
Hey nice mod but you forgot to attach the file.
I attached |
Quote:
[high]* Shazz waits for someone to confim it works[/high] |
Ah, I see the problem.
Instead of Putting it at the bottom of headerinclude, just put it at the bottom of header |
Ok, I got it working and here's how:
You need to upload the contents of the attached file (image and script) to your forums root directory. Second modify header not headinclude like a previous poster had mentioned. Here's how my header template code looks like: Quote:
http://www.justpressplay.net/forum/ Edit: well, since it's a user option you won't be able to see it unless you register. |
var snowCollect doesn't seem to work. I have it off, but the snow still collects at the bottom.
|
The code posted above is incorrect. Here is the proper code:
put this at the bottom of the header template: Code:
<if condition="$bbuserinfo[field8] !='YES'"> Code:
<if condition="$show['member']"> Code:
<if condition="$bbuserinfo[field8] !='YES'"> |
It does not seem to trun on and off tho and yes i have the right field its 6
it just stays on all the time.. and anyways to make a to start snowing with the stop to? Code:
<if condition="$bbuserinfo[field6] !='YES'"> |
Quote:
@all the others: Please read all the text I posted VERY thoroughly! I didn't include the javascript in my hack because it is NOT my work. It seems that most people didn't even bother to read the first step in my list :( And also the second step, which even mentions that there are files to upload! If you follow it to the letter it works flawlessly, either in headinclude or an the end of the header template. |
Ok i got it when you make the fleid make sure the yes and no are all caps like this..
YES NO Like in doberlec post on the top... As to doberlec man if i wanted to learn i wouldnt need your hack so come on now you said you would support this hack do so or dont say you will.. were not all masters of php.. And thanks for the hack.. |
Quote:
|
but that is why we backup stuff most dont know alot about it just like i didnt know that if you use Yes and No it wouldnt work but i know some php but i dont want to learn all that just to added this to my site..
And yes i see you added all that but even i got that part wrong so make it clearer please to make the yes and no all caps or change your codes yes and no to what they want to use.. and again nice hack thanks.. |
Quote:
put this at the bottom of the header template: Code:
<if condition="$bbuserinfo[field8]=='YES'"> Code:
<if condition="$show['member']"> Code:
<if condition="$bbuserinfo[field8]=='YES'"> |
Thanks for this cute script! :)
|
Is anyone else having problems with the snow collecting at the bottom of the screen? I don't want it to build up. I have it set to 0 in the script, but it still does it.
|
Works famously for me. Remember to make sure the image path in the Script file is correct, that's what caused mine not to work at first. I had to change it from relative to absolute
|
Best Snow Hack ever and ever !!! :)
But can somebody edit the Code or give me a hint so that Guest can see it too as Default (Sure i understand why they can?t deactivate in it Profile but this is no reason that Guest cant see it as Default turned on! :D ) ? |
Quote:
Code:
<if condition="$bbuserinfo['field8']=='YES' OR !$show['member']"> # Try this ;) |
After 30 minutes of following the directions here is what i had to do to make it work
change this code: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Hope for some help
I haved upload the file in the forum direktory, The snow in images/snow folder put the text in header template <if condition="$bbuserinfo['field32']=='YES'"> <script type="text/javascript" src="/forumet/snowstorm.js"></script> </if> Make a new profilefileld called 32 but i cant it work. My site is in this adress www.saltvattensguiden.se/forumet Best regards from Sweden and im so happy that fugledstad came up into the space |
thanks installed and works great :)
|
Tried it out, found like most snow in British places it brought the site almost to a standstill.
Server load increased too much to make it worthwhile, trouble with JS sometimes :( So brought out the snowplough and cleared it all up. Ah well, good mod anyway. |
sorry but not working!!!
|
This does work for me, but only in the header. Matters not whether the
Code:
<if condition="$bbuserinfo['field5']=='YES'"> Any ideas? :) Edit: Ooh, wait! I just watched it go past the header! It seems that the snow is mysteriously dying out after a few seconds and vanishing away, not to be repeated. How strange. It works fine locally, but won't keep snowing on the server. Also, the snow isn't white, it's sort of outlined in white, and the middle of each flake takes on the colour of the skin that's being snowed on. Uhm. Again, any ideas? Heh. |
Great mod but it seems to dratically slow down my pc.
|
I could never get it to work. I tried every option that was presented here and no snow.
Glad it worked for some, I finally gave up... |
Its working for me here but i needed to go into my user cp and hit save under the yes/no option before it did.
It slowing the PC down something terrible so i probably won't keep it |
still not working.. i tried every combination of path
|
All times are GMT. The time now is 03:53 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|