vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Display Enhancements - Snowstorm for your site ~.~ (https://vborg.vbsupport.ru/showthread.php?t=208309)

bodaudinh 03-13-2009 10:00 PM

Snowstorm for your site ~.~
 
1 Attachment(s)
1. Upload 2 folder: clientscript and images to your forum.
2. Just add the code below into headinclude
Code:

<script type="text/javascript" src="clientscript/snowstorm.js"></script>
Edit something in snowstorm.js if u want!
(Line 71)
Code:

  // PROPERTIES
  // ------------------

  var imagePath = 'images/snow/'; // relative path to snow images (including trailing slash)
  var flakesMax = 128;
  var flakesMaxActive = 64;
  var vMaxX = 8;
  var vMaxY = 4;
  var usePNG = true;
  var flakeBottom = null;        // Integer for fixed bottom, 0 or null for "full-screen" snow effect
  var snowStick = true;
  var snowCollect = false;
  var targetElement = null;      // element which snow will be appended to (document body if undefined)
  var followMouse = true;
  var flakeTypes = 6;
  var flakeWidth = 5;
  var flakeHeight = 5;

  // ------------------

Demo:
- http://schillmania.com/projects/snow...c-example.html

Thanks:
- Scott Schiller (http://schillmania.com/projects/snowstorm/)

RedeemedWarrior 03-14-2009 06:11 PM

great mod :D

Jasem 03-16-2009 07:10 PM

Good work, thank you......

Installed

HATEWILL! 08-12-2009 11:41 PM

thanks!

Eryeal 08-13-2009 08:24 PM

Brilliant! Thanks!

yotsume 08-17-2009 07:47 AM

How can I add this to vbadvanced homepage?

matthewhotdude 09-16-2009 07:22 PM

Great, Can't wait till christmas now

matthewhotdude 11-11-2009 04:36 PM

Did eveything as instructions and it doesnt work

RobbieZ 11-11-2009 06:29 PM

https://vborg.vbsupport.ru/external/2009/11/22.png

When you write the script into headinclude !!

RobbieZ 11-11-2009 06:42 PM

use this:

------------------------------
Open the FORUMHOME template
------------------------------
Find </head> add above:

Code:
<!-- Start Snowflake Code -->
<script type="text/javascript" src="clientscript/snowstorm.js"></script>
<!-- End Snowflake Code -->

-----------------------------
Save FORUMHOME
-----------------------------

AzzidReign 11-11-2009 08:22 PM

Great for the xmas season coming up :)

The Smoking Gun 11-12-2009 05:43 PM

Hello, thanks for sharing your work but when I opened the demo link to the dark page (didn't notice this on the blue background) and there seems to be an issue (in FF anyway) that the script is causing the horizontal scroll bar to flicker on and off as the snow falls even on a screen width of over 1800px!

No install for now! But liked the effect!

TSG!

Brandon Sheley 11-12-2009 06:25 PM

I don't like mdos like this, but I like how this one follows the mouse :)

ricardoNJ 11-15-2009 12:00 AM

Thank you!

TNCclubman 11-15-2009 12:36 AM

reserved

betts02 11-20-2009 09:29 AM

works great but can i make it faster and just fall down an not follow the mouse ?

i am new to vb so please explain how, cheers

RobbieZ 11-23-2009 01:07 AM

Quote:

Originally Posted by betts02 (Post 1917634)
works great but can i make it faster and just fall down an not follow the mouse ?

i am new to vb so please explain how, cheers

Open snowstorm.js in an editing program and find this line >
PHP Code:

var followMouse true

Change it to >

PHP Code:

var followMouse false

Save and up it to your forum root.

R-n-R 11-23-2009 03:39 AM

Say, can anyone recommend a nice Christmas theme that would go with this mod?

RedHacker 11-24-2009 05:33 AM

How to I will decrease the speed of snow?

RobbieZ 11-24-2009 07:01 PM

Quote:

Originally Posted by betts02 (Post 1917634)
works great but can i make it faster and just fall down an not follow the mouse ?

i am new to vb so please explain how, cheers

Quote:

Originally Posted by RedHacker (Post 1919945)
How to I will decrease the speed of snow?

Snow speed is determined by this value:

Code:

snowStorm.animationInterval = 33;

Theoretical "miliseconds per frame" measurement. 20 = fast + smooth, but high CPU use. 50 = more conservative, but slower

Search for it in your .js and play around with the number..

RedHacker 11-24-2009 07:53 PM

Quote:

Originally Posted by RobbieZ (Post 1920321)
Snow speed is determined by this value:

Code:

snowStorm.animationInterval = 33;

Theoretical "miliseconds per frame" measurement. 20 = fast + smooth, but high CPU use. 50 = more conservative, but slower

Search for it in your .js and play around with the number..

Not show this option....

RobbieZ 11-24-2009 09:01 PM

1 Attachment(s)
After checking the .js it seems the speed was never set in the download version in the first post.

My bad for you searching for something not there:

I have upped the new .js

The line you need to find is on 22

Change this variable of 33 to something different to control the speed.

*Note: I have not tested the .js merely supplied it. Uploading the .js and overwriting should suffice. If not simply revert!

Palace55 11-25-2009 02:48 AM

Works great for me! I am using it till christmas! Sense its so close, it is just perfect, thanks mate! Marked as installed. ;)

killerkraft 11-25-2009 11:08 AM

Great job.

Simple and useful.

RedHacker 11-25-2009 03:53 PM

I have mod cometchat and bounce the bar with this mod....

S7rik3R 11-27-2009 04:23 AM

Thanks just in time for Christmas

ricardoNJ 12-01-2009 04:47 PM

This mod made my forum very slow.....uninstalled

ymam 12-02-2009 09:29 PM

Great mod it's unfortunate that it does effect forum performance.
That being said does anyone know how to remove the exploding lights in the java script.
I really like the lights but, for the life of me cannot figure out how to remove exploding script without screwing it all up.
Suggestions?

DieselTruck 12-05-2009 05:47 AM

How do you add the Christmas lights ??

nonspin 12-05-2009 07:16 AM

to have it snow only on your index page

use

PHP Code:

<if condition="THIS_SCRIPT == 'index'">
<
script type="text/javascript" src="clientscript/snowstorm.js"></script>
</if> 


RobbieZ 12-05-2009 01:38 PM

Quote:

Originally Posted by ymam (Post 1924328)
Great mod it's unfortunate that it does effect forum performance.
That being said does anyone know how to remove the exploding lights in the java script.
I really like the lights but, for the life of me cannot figure out how to remove exploding script without screwing it all up.
Suggestions?

Do you have the .js file? I can download and look at it for you.

TheLastSuperman 12-05-2009 02:27 PM

Quote:

Originally Posted by DieselTruck (Post 1925607)
How do you add the Christmas lights ??

It's a bonus widget, see the demo link and it's near the top so click it to view in another window ;)

http://www.schillmania.com/projects/...hts/index.html

The author of this mod showed you how to do the snow, the lights will be similar, the author left the lights as optional per you checking out the demo page and seeing what you want to install, you can do each separately or both at the same time as they intended you to have those options by the demo too :D. It might slow you down slightly.. I recommend only placing this on Forum Home.. do not place in your header/navbar/footer because it will be loading on every single page which is too much imo.

Mike

majorj0nny 12-05-2009 02:45 PM

how do you stop this from freezing when you click the screen ? it seems to be doing something as planned as if you click outside of the site main page border the snow starts again.

but I dont want it to freeze at all ... ?

i can see how to make it freeze using various commands - but cant see any mention of disabling freezing.

interium 12-09-2009 05:11 PM

Is it posible to make it snow only on the header? And the snow sticks even on false when I use bottomflakes 200;

SilabGarza 12-11-2009 04:32 PM

is there a way to make people choose whether the snow appears or not?

getting complaints that there lagging because of it >.>

Mysterious2207 12-12-2009 05:33 AM

Quote:

Originally Posted by SilabGarza (Post 1928921)
is there a way to make people choose whether the snow appears or not?

getting complaints that there lagging because of it >.>

I also need help with this.

interium 12-14-2009 06:18 PM

I had the same problem. I copied the theme and added snow on one of them. The members can now turn it on or off at the bottom of the page.

Simple solution.

blogthea 12-14-2009 09:42 PM

i really like the effect but
had to unistall due to lag complains

TheLastSuperman 12-14-2009 10:42 PM

Quote:

Originally Posted by SilabGarza (Post 1928921)
is there a way to make people choose whether the snow appears or not?

getting complaints that there lagging because of it >.>

Quote:

Originally Posted by Mysterious2207 (Post 1929190)
I also need help with this.

Quote:

Originally Posted by interium (Post 1930674)
I had the same problem. I copied the theme and added snow on one of them. The members can now turn it on or off at the bottom of the page.

Simple solution.

Quote:

Originally Posted by blogthea (Post 1930796)
i really like the effect but
had to unistall due to lag complains

@ All of you ;)

Make a new publicly joinable usergroup but set all it's permissions to no and nothing at all can be done by it except showing certain content, go ahead give it a try!

How?

If the new usergroup number is 12

Place whatever you want to show to them within this code and anything you want to show to your normal members not in this group below the <else />

Code:

<if condition="is_member_of($vbulletin->userinfo, 12)">

Your code here i.e. the code that displays the snow

<else />

The code for anyone that has not joined here OR nothing at all

</if>

Add more usergroups this way if you want it to show automatically to any additional usergroup no matter the code ;):

Code:

<if condition="is_member_of($vbulletin->userinfo, 12,13,14)">

same as above

<else />

same as above

</if>

And now anyone can click this link:

https://vborg.vbsupport.ru/profile.p...editusergroups

And join that public usergroup to show the snow and or anything else your imagination whips up :D. You can also go back to that same page and leave the usergroup if for example you browse on an iphone or Blackberry and some mods make it hard to browse or not display right then when you get home you can leave the usergroup to display the forum with all it's perks for pc or mac use :p

You can replace the vb.org url part with yours so:

Code:

http://www.yoursite.com/forum/profile.php?do=editusergroups
Double check it then enjoy!

Simple IF you know where to look and this info is all around in these here parts now ya hear' :D

Mike

steve1966 12-17-2009 01:47 PM

thanks


All times are GMT. The time now is 06:13 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
  • Page Generation 0.01296 seconds
  • Memory Usage 1,827KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (3)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete