Hi , Christmas Is coming , you should be looking for ways to decorate your network.

Why not make your Ning SNOW?

(p/s original post by  Mat on Christmas Snow : Make it rain - Tip , this tip will be using the same script from Mat's post but one more script that enables on/off function)

 

Just copy the two scripts below and paste it into your Custom Code:

<script type="text/javascript" src="http://elsodev.com/projects/snow/snowstorm-min.js"></script>
<script type="text/javascript" src="http://elsodev.com/projects/snow/settings-dpro.js"></script>

(p/s i have hosted snowstorm-min.js from SchillMania on my server elsodev.com)

The first script is the core script that enables snow using jQuery in your site

while,

the second script that i made enables members to Turn On/Off the snow(as some members may not like the snowing effect)

It will inject a button just below your network Ning bar and stay in a fixed position(you can change it in CSS).

 

 

CSS , place this css code into your Design Studio/Appearance:

#snow-btn{
position:fixed;
top:50px;
left:-20px;
padding:10px 20px 10px 30px;
background-color:rgba(0, 0, 0, 0.7);
-webkit-border-top-right-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
-moz-border-radius-topright: 5px;
-moz-border-radius-bottomright: 5px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
display:block;
color:#ddd!important;
text-decoration:none!important;
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#B2000000,endColorstr=#B2000000);
}

#snow-btn:hover{
color:#fff!important;
left:0px;
background-color:rgba(0, 0, 0, 1);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#FF000000,endColorstr=#FF000000);
}


This is the CSS for the On/Off button.


NOTE!

This script (http://elsodev.com/projects/snow/settings-dpro.js) disables snow storm on profiles , if you want it to snow in profiles too , change it to

http://elsodev.com/projects/snow/settings-epro.js


And , if you enabled it on profiles , you will need to add the css into Custom code like this:

<style type="text/css">

 

#snow-btn{
position:fixed;
top:50px;
left:-20px;
padding:10px 20px 10px 30px;
background-color:rgba(0, 0, 0, 0.7);
-webkit-border-top-right-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
-moz-border-radius-topright: 5px;
-moz-border-radius-bottomright: 5px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
display:block;
color:#ddd!important;
text-decoration:none!important;
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#B2000000,endColorstr=#B2000000);
}

#snow-btn:hover{
color:#fff!important;
left:0px;
background-color:rgba(0, 0, 0, 1);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#FF000000,endColorstr=#FF000000);
}


</style>

 

Why ? because some members have different CSS codes for their profiles , that means your site main css will not be used on their profiles.

 

 

That's all!

Hope you like it and enjoy your holidays.

 

Check out my other post as well :

engage your members by rewarding them points!

Views: 1395

Reply to This

Replies to This Discussion

i don't know how to use it <.< my ning it's in italian

I'm not sure what Custom Code is called in Italian. but it is where you put the scripts and google analytics code.

Thanks ^^

Awesome!

THANKS

Thank you! Used it on underworldrp.com

it would be super cool if there was a way to have the snow pile up at the bottom every so often.

Anyone know if this is possible?

Nice Tip Elson :)

Excellent - thank you very much, Elson!

+1 Your tips are better than great, Elson!

Thank you Elson!

RSS

Latest Activity


NC for Hire
SweetPotato replied to SweetPotato's discussion 'Suggestion: Social Channels Page Titles and Title Tags' in the group The Sandbox
"Hi Kos, not on my Ning 3.0 they aren't: Click to enlarge"
34 minutes ago
Kos replied to SweetPotato's discussion 'Suggestion: Social Channels Page Titles and Title Tags' in the group The Sandbox
"yeah, they're showing up as h2 in firebug :(  Hope Ning wakes up on this."
58 minutes ago
Kos replied to Enrrico Torres's discussion 'Change Domain Name'
59 minutes ago
Cherry replied to shirley's discussion 'how can i stop a member from sending privet massage to all his friend's on my net?'
"If what is being sent is truly spam, you need to suspend the member for spam. If it is just…"
1 hour ago
Kos replied to Enrrico Torres's discussion 'Change Domain Name'
"With domain mapping, you're pointing your purchased domain towards Ning's servers.…"
1 hour ago
Enrrico Torres replied to Enrrico Torres's discussion 'Change Domain Name'
"yes it's a 3.0, i could not change the doman from domain mapping? or we have to email Ning to…"
1 hour ago
Kos replied to Enrrico Torres's discussion 'Change Domain Name'
"If it's a 3.0 sandbox, I would imagine you should email Ning and tell them what you want to…"
1 hour ago
Indrie Florin Gabriel replied to Indrie Florin Gabriel's discussion 'Latest Activity'
"Hy Bernard do you know why more button disappears from the home page.? Is there a code to be…"
4 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service