Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
[Namaless] Snow Storm Details »»
[Namaless] Snow Storm
Version: 1.2.4, by Namaless Namaless is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 4.1.0 Rating:
Released: 12-09-2010 Last Update: 12-18-2010 Installs: 101
Uses Plugins Template Edits Auto-Templates
Additional Files Translations  
No support by the author.

Let It Snow.
So, you want Javascript snow on your web site, eh?


What It does
Snowstorm is a Javascript-driven snow effect that can be easily added to web pages. It is free for use, and easy to set up. A single Javascript file provides the functionality required. No images are used for the snow effect.


Demo
My Blog: http://www.namaless.com
vBulletin Forum: http://www.techno-house-electro.de/forum/


Installation
  1. Download this Product
  2. Unzip this Product
  3. Upload the content from directory UPLOAD in your vBulletin Root Directory
  4. Import this product product-namaless_snowstorm.xml
  5. Go to vBulletin Options -> Snow Storm Settings setup this product.


Change Log
  • Version 1.0.0
    • Initial Release.
  • Version 1.1.0
    • Added all Javascript options to vBulletin Options Pannel.
    • Added in the footer links "Snow Storm On/Off", this link enable/disable snowing with cookie setting.
    • Change jQuery Javascript to YUI2 (vBulletin Javascript Framework).
    • Minor bug fix.
  • Version 1.1.1
    • Added "Script Locations" from this suggestion. Now show Snow Storm ONLY where THIS_SCRIPT is used here. Leave empty to show in all pages but your server CPU bye bye xD
    • Moved "Toggle Snow On/Off" link from footer links into header userinfo. In next major release move this link to upper where not found template_hook and move with YUI DOM.
  • Version 1.2.0
    • Fixed "Script Locations" from this post.
    • Moved "Toggle Snow On/Off" link from header userinfo before notifications with jQuery (not found template hook for insert link here).
    • YUI2 death. I love jQuery and use this.
    • Remove JS min option and use min javascript to default.
  • Version 1.2.1
    • Update "Toggle Snow On/Off" link with relative status related of SnowStorm Status (when snow is off view "Toggle Snow ON").
    • Use official Namaless CDN for all Javascript scripts.
    • Added 2 screenshots.
    • Remove 2 templates because isn't need.
  • Version 1.2.2
    • Update "Toggle Snow On/Off" link, show for guest and members.
    • Show snow in all pages (removed 'index' from default setting).
    • Fixed 'uncached template'.
  • Version 1.2.3
    • Remove Namaless CDN and use local version of Javascripts.
    • Fixed bug for "Toggle Snow ON/OFF" link because some members not show the link (sorry for inconvenience).
  • Version 1.2.4
    • Fixed Toggle Link bug.


IMPORTANT NOTE
For the correct operation of the MOD must have in your template the following template_hooks:
  • headinclude_javascript
  • footer_javascript

In your template "header" find:
Code:
{vb:raw template_hook.headinclude_javascript}
In your template "footer" find:
Code:
{vb:raw template_hook.footer_javascript}
If these are not the template_hook MOD WILL NOT WORK!
Before commenting that the MOD does not work, make sure that these template_hooks are present in your template.

The Javascript provide by http://www.schillmania.com

Download Now

File Type: zip namaless_snowstorm.zip (13.0 KB, 549 views)

Screenshots

File Type: png namaless_snowstorm_toggle_off.png (60.3 KB, 0 views)
File Type: png namaless_snowstorm_toggle_on.png (62.2 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 12-16-2010, 08:49 PM
Namaless's Avatar
Namaless Namaless is offline
 
Join Date: Sep 2006
Location: Italy
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by literatestylish View Post
Just updated to the new version. Good mod, but still no toggle on/off button showing. Desperately need that!

buffalorange.com
Find in your template "footer" this code:
Code:
{vb:raw template_hook.footer_javascript}
For me you have removed this template hook and the links not be added.

For all remain javascript code is all ok.
Reply With Quote
  #63  
Old 12-16-2010, 08:59 PM
woffie's Avatar
woffie woffie is offline
 
Join Date: Jan 2009
Location: Michigan
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated to the new one, still no on/off
Reply With Quote
  #64  
Old 12-16-2010, 09:15 PM
Namaless's Avatar
Namaless Namaless is offline
 
Join Date: Sep 2006
Location: Italy
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by woffie View Post
Updated to the new one, still no on/off
Send me the link of your forum, I think you miss the template_hook.footer_javascript
Reply With Quote
  #65  
Old 12-16-2010, 10:22 PM
literatestylish literatestylish is offline
 
Join Date: Feb 2010
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Namaless View Post
Find in your template "footer" this code:
Code:
{vb:raw template_hook.footer_javascript}
For me you have removed this template hook and the links not be added.

For all remain javascript code is all ok.
That code is there. Here is my entire footer code (I bolded the part you mentioned).

BTW, thanks for all the help. The mod is perfect except for the no toggle.

Code:
{vb:raw ad_location.ad_footer_start}
{vb:raw ad_location.global_above_footer}
<div id="footer" class="floatcontainer footer">

	<form action="{vb:raw vboptions.forumhome}.php" method="get" id="footer_select" class="footer_select">

			
		<vb:if condition="$show['quickchooser']">
			<select name="styleid" onchange="switch_id(this, 'style')">
				<optgroup label="{vb:rawphrase quick_style_chooser}">
					{vb:raw quickchooserbits}
				</optgroup>
			</select>	
		</vb:if>
		
		<vb:if condition="$show['languagechooser']">
			<select name="langid" onchange="switch_id(this, 'lang')">
				<optgroup label="{vb:rawphrase quick_language_chooser}">
					{vb:raw languagechooserbits}
				</optgroup>
			</select>
		</vb:if>
	</form>

	<ul id="footer_links" class="footer_links">
		<vb:if condition="$show['contactus']"><li><a href="{vb:raw vboptions.contactuslink}" rel="nofollow" accesskey="9">{vb:rawphrase contact_us}</a></li></vb:if>
		<vb:if condition="$vboptions['hometitle']"><li><a href="{vb:raw vboptions.homeurl}">{vb:raw vboptions.hometitle}</a></li></vb:if>
		<vb:if condition="$show['admincplink']"><li><a href="{vb:raw admincpdir}/index.php{vb:raw session.sessionurl_q}">{vb:rawphrase admin}</a></li></vb:if>
		<vb:if condition="$show['modcplink']"><li><a href="{vb:raw modcpdir}/index.php{vb:raw session.sessionurl_q}">{vb:rawphrase mod}</a></li></vb:if>
		<vb:if condition="$vboptions['archiveenabled']"><li><a href="archive/index.php">{vb:rawphrase archive}</a></li></vb:if>
		{vb:raw template_hook.footer_links}
		<vb:if condition="$vboptions['privacyurl']"><li><a href="{vb:raw vboptions.privacyurl}">{vb:rawphrase privacy_statement}</a></li></vb:if>
		<vb:if condition="$vboptions['tosurl']"><li><a href="{vb:raw vboptions.tosurl}">{vb:rawphrase terms_of_service}</a></li></vb:if>
		<li><a href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a></li>
	</ul>
	
	
	<vb:if condition="$show['dst_correction']">
	<!-- auto DST correction code -->
		<form action="profile.php?do=dst" method="post" name="dstform">
			<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
			<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
			<input type="hidden" name="do" value="dst" />
		</form>
		<script type="text/javascript">
		<!--
			var tzOffset = {vb:raw bbuserinfo.timezoneoffset} + {vb:raw bbuserinfo.dstonoff};
			var utcOffset = new Date().getTimezoneOffset() / 60;
			if (Math.abs(tzOffset + utcOffset) == 1)
			{	// Dst offset is 1 so its changed
				document.forms.dstform.submit();
			}
		//-->
		</script>
		<!-- / auto DST correction code -->
	</vb:if>
	
	<script type="text/javascript">
	<!--
		// Main vBulletin Javascript Initialization
		vBulletin_init();
	//-->
	</script>
        {vb:raw template_hook.footer_javascript}
</div>
</div> <!-- closing div for body_wrapper -->

<div class="below_body">
<div id="footer_time" class="shade footer_time">{vb:rawphrase all_times_are_gmt_x_time_now_is_y}</div>

<div id="footer_copyright" class="shade footer_copyright">
	<!-- Do not remove this copyright notice -->
	{vb:rawphrase powered_by_vbulletin}
	<!-- Do not remove this copyright notice -->	
</div>
<div id="footer_morecopyright" class="shade footer_morecopyright">
	<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
	{vb:raw cronimage}
	<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
	{vb:raw vboptions.copyrighttext}
</div>

{vb:raw ad_location.ad_footer_end} 
</div>
Reply With Quote
  #66  
Old 12-17-2010, 04:18 AM
onehost onehost is offline
 
Join Date: Jul 2006
Posts: 378
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

suggestion: allow an option that only allows snow just below
the header area, which is fine, but i see snow following about
clearly past the first screen, which i can see could annoy anyone...
I think people can get the idea of snow around the header area...
I do not think it needs to extend a 1 1/2 screen pages down...
Reply With Quote
  #67  
Old 12-17-2010, 09:07 PM
Namaless's Avatar
Namaless Namaless is offline
 
Join Date: Sep 2006
Location: Italy
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by literatestylish View Post
That code is there. Here is my entire footer code (I bolded the part you mentioned).

BTW, thanks for all the help. The mod is perfect except for the no toggle.

Code:
{vb:raw ad_location.ad_footer_start}
{vb:raw ad_location.global_above_footer}
<div id="footer" class="floatcontainer footer">

	<form action="{vb:raw vboptions.forumhome}.php" method="get" id="footer_select" class="footer_select">

			
		<vb:if condition="$show['quickchooser']">
			<select name="styleid" onchange="switch_id(this, 'style')">
				<optgroup label="{vb:rawphrase quick_style_chooser}">
					{vb:raw quickchooserbits}
				</optgroup>
			</select>	
		</vb:if>
		
		<vb:if condition="$show['languagechooser']">
			<select name="langid" onchange="switch_id(this, 'lang')">
				<optgroup label="{vb:rawphrase quick_language_chooser}">
					{vb:raw languagechooserbits}
				</optgroup>
			</select>
		</vb:if>
	</form>

	<ul id="footer_links" class="footer_links">
		<vb:if condition="$show['contactus']"><li><a href="{vb:raw vboptions.contactuslink}" rel="nofollow" accesskey="9">{vb:rawphrase contact_us}</a></li></vb:if>
		<vb:if condition="$vboptions['hometitle']"><li><a href="{vb:raw vboptions.homeurl}">{vb:raw vboptions.hometitle}</a></li></vb:if>
		<vb:if condition="$show['admincplink']"><li><a href="{vb:raw admincpdir}/index.php{vb:raw session.sessionurl_q}">{vb:rawphrase admin}</a></li></vb:if>
		<vb:if condition="$show['modcplink']"><li><a href="{vb:raw modcpdir}/index.php{vb:raw session.sessionurl_q}">{vb:rawphrase mod}</a></li></vb:if>
		<vb:if condition="$vboptions['archiveenabled']"><li><a href="archive/index.php">{vb:rawphrase archive}</a></li></vb:if>
		{vb:raw template_hook.footer_links}
		<vb:if condition="$vboptions['privacyurl']"><li><a href="{vb:raw vboptions.privacyurl}">{vb:rawphrase privacy_statement}</a></li></vb:if>
		<vb:if condition="$vboptions['tosurl']"><li><a href="{vb:raw vboptions.tosurl}">{vb:rawphrase terms_of_service}</a></li></vb:if>
		<li><a href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a></li>
	</ul>
	
	
	<vb:if condition="$show['dst_correction']">
	<!-- auto DST correction code -->
		<form action="profile.php?do=dst" method="post" name="dstform">
			<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
			<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
			<input type="hidden" name="do" value="dst" />
		</form>
		<script type="text/javascript">
		<!--
			var tzOffset = {vb:raw bbuserinfo.timezoneoffset} + {vb:raw bbuserinfo.dstonoff};
			var utcOffset = new Date().getTimezoneOffset() / 60;
			if (Math.abs(tzOffset + utcOffset) == 1)
			{	// Dst offset is 1 so its changed
				document.forms.dstform.submit();
			}
		//-->
		</script>
		<!-- / auto DST correction code -->
	</vb:if>
	
	<script type="text/javascript">
	<!--
		// Main vBulletin Javascript Initialization
		vBulletin_init();
	//-->
	</script>
        {vb:raw template_hook.footer_javascript}
</div>
</div> <!-- closing div for body_wrapper -->

<div class="below_body">
<div id="footer_time" class="shade footer_time">{vb:rawphrase all_times_are_gmt_x_time_now_is_y}</div>

<div id="footer_copyright" class="shade footer_copyright">
	<!-- Do not remove this copyright notice -->
	{vb:rawphrase powered_by_vbulletin}
	<!-- Do not remove this copyright notice -->	
</div>
<div id="footer_morecopyright" class="shade footer_morecopyright">
	<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
	{vb:raw cronimage}
	<!-- Do not remove cronimage or your scheduled tasks will cease to function -->
	{vb:raw vboptions.copyrighttext}
</div>

{vb:raw ad_location.ad_footer_end} 
</div>
Code:
jQuery.cookie is not a function
[Break on this error] if ( jQuery.cookie("namaless_snowstorm_show") == "null" ) {\r\n
I found the error. I think it is due to the use of another mod that displays notifications with jQuery and this may create a problem with my MOD.
Try disabling this MOD and see if my MOD works. If it does, you will create an alternative version for you to try. If I make it official resolve.
I'm glad you like my way of giving support. I want the mod works perfectly and I do it for free.
Reply With Quote
  #68  
Old 12-17-2010, 11:59 PM
literatestylish literatestylish is offline
 
Join Date: Feb 2010
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Namaless View Post
Code:
jQuery.cookie is not a function
[Break on this error] if ( jQuery.cookie("namaless_snowstorm_show") == "null" ) {\r\n
I found the error. I think it is due to the use of another mod that displays notifications with jQuery and this may create a problem with my MOD.
Try disabling this MOD and see if my MOD works. If it does, you will create an alternative version for you to try. If I make it official resolve.
I'm glad you like my way of giving support. I want the mod works perfectly and I do it for free.
I disabled every mod I have but the toggle still isn't there?
Reply With Quote
  #69  
Old 12-18-2010, 07:04 AM
Namaless's Avatar
Namaless Namaless is offline
 
Join Date: Sep 2006
Location: Italy
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I check but not found any errors, if you want move che toggle link to bottom (footer link).

The MOD works correctly: http://www.downloadgeneration.info
Reply With Quote
  #70  
Old 12-18-2010, 07:06 AM
Namaless's Avatar
Namaless Namaless is offline
 
Join Date: Sep 2006
Location: Italy
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by onehost View Post
suggestion: allow an option that only allows snow just below
the header area, which is fine, but i see snow following about
clearly past the first screen, which i can see could annoy anyone...
I think people can get the idea of snow around the header area...
I do not think it needs to extend a 1 1/2 screen pages down...
In the MOD options set "header"
Quote:
Target Element
Element which snow will be appended to (default: document body) - can be an element ID string eg. 'myDiv', or a DOM node reference.
Reply With Quote
  #71  
Old 12-18-2010, 07:16 AM
Namaless's Avatar
Namaless Namaless is offline
 
Join Date: Sep 2006
Location: Italy
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have create alternative version.

If have problem with official version test it and report to me if you works correctly, thanks.
Attached Files
File Type: xml product-namaless_snowstorm.xml (19.3 KB, 9 views)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:18 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09191 seconds
  • Memory Usage 2,359KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete