![]() |
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! |
All times are GMT. The time now is 09:58 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:
|