Snowflakes

geoffg

Dedicated Member
How do you get the snowflakes on the forum? I administer an SMF forum and would love to have snow.
Is there an easy way to achieve it?
Geoff :)
 
How do you get the snowflakes on the forum? I administer an SMF forum and would love to have snow.
Is there an easy way to achieve it?
Geoff :)

Maybe Tony can answer this one,he has a busy day so it may not be till later today
 
Thanks Terry, I'll try my best.
In it's simplest form all you should need to do is upload the contents of the attached archive to the website root (NOT the forum root, unless you have the forum installed as the website root)
Then edit the file "index.template.php" (you will have to edit all the index.template.php files for all the themes you want the snow to appear in)
This file is in the "/community/Themes/****/index.template.php" folder where *** is the name of the theme you want to edit.
Add the line of code:
Code:
<script type="text/javascript" src="../../scripts/snowstorm.js"></script>
just AFTER the line
Code:
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?fin20"></script>

It should be at or near line 104'ish and should end up like this:
Code:
	// Here comes the JavaScript bits!
	echo '
	<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?fin20"></script>
	<script type="text/javascript" src="../../scripts/snowstorm.js"></script>
Hope that helps.
 
Back
Top