![]() |
Snow & other Effects for your forum
[Original Source & Files Copyrighted to ? Dynamic Drive]
UPDATED: Ok i have changed the code a little bit and added some images to the zip folder at current i havent added a menu in admin CP to globally turn this off when i manage to figure out the new hooks system ill have a bash at doing it for you :). You can easily add your own images just upload your image to the effects folder which should be located in your forums image folder for example /forum/images/misc/effects/ Then change the code to point to the new image name. The images will only work with the Forum Effects code ok lets get started :). first goto admincp > styles & templates > edit templates and locate header and edit at the very very top before anything else. Add one of the following codes, For small snowflakes add this code Code:
src="/forum/images/misc/effects/snow.js point it to your forum image path ************************************************** ************************** For big snowflakes and other effects add this code Code:
var snowsrc="/forum/images/misc/effects/effect(*).gif" point it to your forum image path and delete the (*) and put a number from 1-18 (make sure there is no space for example effect1) to use the pre-added images. ************************************************** ************************** now download forum_effects.zip and upload the effects folder to your forum image path for example /forum/images/misc/ ************************************************** ************************** Few addons for this modification. ************************************************** ************************** Let your forum members choose weather or not to display the effect. - Thanks to SHANE-D-PAIN Go to AdminCP => User Profile Fields => Add new User Profile field => Single Select Menu Title: View Forum Effects Description: Choose yes to view forum effects. Options: Yes No Set Default: Yes, but No First Blank Option Editable By User: Yes Display Page: Options: Other Options Write down your field# . i.e field5 Change X to the Field id. Just remember to wrap the code with the if tags provided. Code:
<if condition="$bbuserinfo[fieldX] != 'No'"> Code:
<if condition="$bbuserinfo[field5] != 'No'"> Make modification optional per usergroup. - Thanks to SHANE-D-PAIN Code:
<if condition="is_member_of($bbuserinfo[usergroupid], array(1,2,3,4,5))"> For Example: Code:
<if condition="is_member_of($bbuserinfo[usergroupid], array(1,2,3,4,5))"> To Save on the heavy CPU usage that this mod uses follow the instructions below - Thanks to Solitary Seraph Please Note, This is for the small snowflakes and not the big ones. Edit the snow.js with any type of editor (ie. notepad). Code:
var num = 20; //Number of flakes Keep tweaking with it and eventually it should work nicely for everyone, or you can turn it off with the last bit, for the mozilla users. ************************************************** ************************** I would also like to thank the following ppl :) Smiry Kin's - for the nicer snow image. ************************************************** ************************** PLEASE NOTE: Big snowflakes and other effects may slow down your board and may not be viewable via firefox browsers. The small flakes should be ok and can be viewed by firefox. hope u enjoy! [Original & Files Copyrighted to ? Dynamic Drive] |
Awesome :)
[high]* Cyricx installs![/high] |
Ur a star mate, thanks :)
|
This is awesome. Now I need a Christmas style to put it on
|
I have the hack in, but I just have red X's for the snow.gif ??? www.phonexpo.net/index.php
|
Ohh, nice, looks like a great Christmas style effect for me to use ina few weeks. :)
I've put *installed* now, but wont actually use this till December though. :) |
Quote:
LMAO...Check the path for the snow flakes.... LMAO..just think about it. Quote:
|
Quote:
|
Quote:
|
Deto, just swap out the gif for something like a falling leaf gif or something :)
I can't wait til next halloween, I got a kick butt flying witch gif I'm going to use LOL! |
Very Nice man, but one question could this be made to be turned on/off through the admin CP and not through file edits. or Set to schedule like turn it on randomly etc so It does not get old fast..?
Mabey we can all work on some different types of Icons to float around Im pretty good with Photoshop but my coding skills lack :P Id be willing to work on these heck even mabey add in a random gif from specificed folder to mix it up. |
Nice one .. will save for Xmas :cool:
|
Is there any way to change the path (rather than /forum) in the hack? I can do it manually, but not everyone has it set up in their /forum directory. Which is what is causing some problems (me for the first 2 seconds).
Awesome hack, btw. I'm going to play around with leaves later. :) |
does it play well in firefox?
|
it works fine for me only the big snow not :) thnx for the snow
|
cool. Will install this in December!
|
Very nice! Works in all browsers! Anyone have any ideas how I can make this optional per usergroup without new styles or usergroups?
|
You could add conditionals around the code to allow for certain usergroups to see it.
I will use this at xmas! :) |
Quote:
Code:
If you want to make it so the users themselves can view to see it you could create a new user profile field and use that to allow them to choose. Infact im going to get the code for it. :P - Just incase anyone wants it. |
Right, here goes, I have never posted anything like this so be gentle :P
Go to AdminCP => Profile Fields => Add new Profile field => Single Select Menu Title: View Xmas Snow Flakes? Description: Choose yes to have little Christmas Snowflakes Floating around. Options: No Yes Set Default: Yes, but No First Blank Option Editable By User: Yes Display Page: Options: Other Options Write down your field# . i.e field6 Here is the code, I am using the small snowflakes as example code. Code:
<if condition="$bbuserinfo[fieldX] != 'No'"> Just remember to wrap the code with the if tags provided. :) Code:
<if condition="$bbuserinfo[fieldX] != 'No'"> I tested this out on my site so I know it works. |
Just thought I would post that I currently have the following setting in the profile field:
Description: Choose yes to have little Christmas Snowflakes Floating around throughout December. I just did this because I have added the prifle field but not added the code for the Snow Flakes yet cause I feel its too early. Members will be able to see the Field but the Description clearly states that the Flakes will be there in December, just lets them choose now if they want to. |
It's great, the only thing I don't like about javascript with this code is that it uses up a lot of cpu resources and slows everything down. :(
|
This works well in IE, Firefox and netscape (I've viewed it in netscape and IE, my users firefox). It *does* lag the site for users on slower computers so everyone needs to take that into consideration. I've got a pretty kicking computer and it only minorly lagged when I tried to open a pop down menu on my nav bar but some people it does get pretty laggy (one of my friends showed me at his house). I'm using the "small" flakes and not the big ones.
Some kind of randomizer would be cool, or a way to set it up as an even so that at random times during the day it snows. It's an AWESOME little toy though. |
Quote:
|
Quote:
Although obviously I won't be over doing it, as it would get annoying if it was over used. |
Quote:
|
What would be awesome? A seasonal package. Depending on the season, or weather conditions, the option given (and applicable images/files) to turn on/off weather (rain, snow) seasonal attributes (leaves, ghosts-if you will), etc. If you're feeling kinda weathered down, have something like the sun poke out from behind the forums and move depending on the time of day... lol - the options would be endless - and a vote for HotM.
|
Quote:
and add in a holiday pack. (st. patricks, valentine, halloween, etc) |
Very nice, going to check this out come December...I've just started making different logos for my main theme depending on the holiday (did halloween and have one set aside for thanksgiving already...), definitely have to do something with this...
|
Cant we just get a turn it on/off in the Admin-CP for all users?
|
Anyone have this running and want to share the link? I know what snow effects are like, but I just wanna see how purdy it is. :)
|
Cool stuff. Not sure if this can be fixed but the little cursor goes crazy flashing while this is running instead of the normal blink.
I got red X's for IE as well, but the light snow is good to go. Anyhow very nice for the holidays :) *clicks install* |
Don't use the big snow, it doesn't work perfect on IE nor FF. It takes while to load.
INSTALL |
For those of you that want to use this for different holidays, etc... you can also put in date conditionals, so that the script also checks to see if it's the correct date for them to show.
I don't know the exact php code, but it would look something like: Code:
if date == <the date> && $userinfo[fieldX] !='No' <rest of the code> This also allows for users to turn off these extra goodies if they want, so that they can 'opt out' for slower computers (or if they just find it annoying). |
Great hack...thanks!
|
hmm.. it is indeed a very nice visual effect.
but look at the cpu load that your browser consumes when viewing a site using this hack. even when u use the small snowflakes version. is there any way to minimize that? |
Pretty neat :squareeyed:
can the small flakes not be made a bit bigger for us FF users.. Opera hates it lol |
Its very nice but its a shame that hasnt an option to turn it off or on through the Admin cp....
Hope it can be added so i can install it :) |
Quote:
Yeah I had to turn it off. It was freazing up a few members browsers. |
me too
|
All times are GMT. The time now is 12:14 PM. |
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:
|