Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-12-01 17:30:08

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 595
Website

[howto] Control snowfall on your website with adi_variables

Not sure if it’s OK to just link to one’s own tutorial here, but I’ve written one on controlling snowfall on your website with adi_variables.

Offline

#2 2010-12-01 19:23:41

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: [howto] Control snowfall on your website with adi_variables

Great tip maruchan! Hope you don’t mind I’ve made the jQuery part into a plugin based on your tip. With the plugin you can simply use:

<txp:if_variable name="snowflakes" value="on">
<txp:msd_snowflakes/>
</txp:if_variable>

Merry Christmas!


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#3 2010-12-01 19:31:47

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 595
Website

Re: [howto] Control snowfall on your website with adi_variables

Very cool, Matt. I’m not able to download the plugin though…do I need to donate first? Maybe I’m not seeing the correct link.

Offline

#4 2010-12-01 19:46:56

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: [howto] Control snowfall on your website with adi_variables

No donation necessary! I just had to tell rah_plugin_download it was ok to let folks download it. Should work now.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#5 2010-12-01 20:06:06

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 595
Website

Re: [howto] Control snowfall on your website with adi_variables

Right on, that worked. I’ve updated the tutorial page with the information, as well as a fix for a bug in Firefox.

Offline

#6 2010-12-01 20:17:31

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [howto] Control snowfall on your website with adi_variables

Wow, very nice, thank you both! I really hate real life snow, but I like it on my site ;)

Edit: I wish I could make it pile up at the bottom ;)

Last edited by els (2010-12-01 20:19:54)

Offline

#7 2010-12-01 20:18:58

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: [howto] Control snowfall on your website with adi_variables

Nice guys!

a fwiw — I tried putting the txp tag for Matt’s plugin in the <head></head>. Showed in the source, but no snowflakes. Moved to the body and worked perfect. I don’t have time to figure out why right now (probably something I’m clueless on re: js.). But in case it wasn’t operator error, thought I’d mention it.

Offline

#8 2010-12-01 20:24:52

PascalL
Member
From: Switzerland
Registered: 2009-03-09
Posts: 132
Website

Re: [howto] Control snowfall on your website with adi_variables

Els wrote:

I really hate real life snow, but I like it on my site ;)

It’s all the contrary for me. :D

Last edited by PascalL (2010-12-01 20:25:08)

Offline

#9 2010-12-01 20:31:48

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: [howto] Control snowfall on your website with adi_variables

maverick wrote:

a fwiw — I tried putting the txp tag for Matt’s plugin in the <head></head>. Showed in the source, but no snowflakes.

I’ve just updated the plugin to fix this.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#10 2010-12-01 20:34:20

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: [howto] Control snowfall on your website with adi_variables

Very nice, I remember last year going on some Wordpress sites and seeing the falling snow.

I have a question, why does the falling flakes cause my CPU to spike up? I’m using Firefox 3.6.12 on Windows 7.

Offline

#11 2010-12-01 20:40:17

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: [howto] Control snowfall on your website with adi_variables

hcgtv wrote:

I have a question, why does the falling flakes cause my CPU to spike up? I’m using Firefox 3.6.12 on Windows 7.

Yikes, No idea since I didn’t write the jQuery plugin that’s doing that work. Sorry.

I’ve created a forum post for the plugin to keep track of questions or issues.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

Board footer

Powered by FluxBB