Have snow on your site like I have here
Select messages from # through # Forum FAQ
[/[Print]\]

HeadShot Extreme -> PC & Codeing Talk

#1: Question Have snow on your site like I have here Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Tue Dec 03, 2019 12:11 am
    —
Okay, this is very simple to do on your site, and I designed it to automatically start on December 1st and end on December 25th at 11:59:59, (end of the 25th).
You can easily adjust this and I will explain below as well as tell you how to change the snowman, or, completely remove it.

  1. Download the attached file and extract the public_html folder to your desktop. DON'T upload just yet!

  2. Now, here is where we are going to edit either the dates or the images. Instructions below so do either one of them, or none of them, or even both, but do them here.

  3. Now, if you're confident in your changes, then go ahead and upload the contents of the public_html folder to the root of your site. Once you have those uploaded and the date is between the dates, (Default: December 1st - 25), then you should see it on your next page refresh. You may need to clear both your browsers cache and your sites cache.


That's it. Not hard at all since I already did the hard parts. :P




Changing the activation/deactivation dates:
Okay, there are two files that you will need to edit.

public_html/includes/custom_files/custom_head.php and Custom_footer.php.
Inside there, you will see something like:

PHP:  [ Select all ]

$date date("md");
if(
$date >= '1201' && $date <= '1225'){ 

 
The first line,
date = date("md");
is just pulling todays current date as a 4 digit month & day. Example, if today is April 1st, then this readout would be 0401. 04 for April and 01 for the 1st.
Now, if you follow that, then the next line should make a bit more sense.

Reading this line from left to right:
if($date >= '1201' && $date <= '1225')

I'm saying, If TODAY is GREATER THAN or EQUAL to 1201, (December 1st), AND TODAY is LESS THAN or EQUAL to 1225, (December 25th).
If that statement is TRUE, then it runs what we have between the curly brackets, { code here }

So just change the 1201, to what ever start date you want and change the 1225 to what ever date you want.




Edit/Remove the snowman:
We will start of with removing the snowman, since that is the easiest one out of both options.
Open public_html/includes/custom_files/custom_footer.php

In there, look for the line that looks like:

Code: [ Select all ]

echo '<div class="snowman"> </div>'


Change to:

Code: [ Select all ]

//echo '<div class="snowman"> </div>'


If you noticed, all I added was a // in front of it. That's it.

Now, how to edit the Snowman. Well, go into the images folder and do what ever you want to the snowman image, but, try keeping the high about what i have there. The width is up to you, but I wouldn't also go much wider than double what it is now.
When you're down with the snowman image, (DON'T CHANGE THE NAME AND KEEP IT A PNG IMAGE), you will need to remember the width and the height of the snowman.

Open:
public_html/includes/css/snowman.css

Okay, lets set the width first. Find the class .snowman, in that class, you will see "width: 237px;", change that to the width of your new snowman image. The height you see is at 75px, well, that is just the little bit that stays at the top for people to click on.

To set the height, that's further down.
Look for the selector called ".snowman.expanded", it's at the very bottom. There you will see "height: 303;", will this is where you put in the height of the snowman image you did.

That's it.



I hope you enjoy.
Any questions, feel free not to ask.

j/k, feel free to ask.   lol

#2: No icon Re: Have snow on your site like I have here Author: fire PostPosted: Thu Dec 05, 2019 10:48 am
    —
Thank you!

#3: No icon Re: Have snow on your site like I have here Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Thu Dec 05, 2019 12:52 pm
    —
No problem.

#4: No icon Re: Have snow on your site like I have here Author: Trowbie PostPosted: Sat Dec 14, 2019 11:08 am
    —
Great effect! Wish I could download it.  Did the download feature go away with the forum updates?

#5: No icon Re: Have snow on your site like I have here Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sat Dec 14, 2019 1:29 pm
    —
— Trowbie wrote
Great effect! Wish I could download it.  Did the download feature go away with the forum updates?


The attachment is there, it's been downloaded 7 times. The image that you clicked on was changed to a default ugly black paperclip, which can't be seen on the black background, so I changed that to a new image. But in the first post, you should be able to download it right from the post.

#6: No icon Re: Have snow on your site like I have here Author: Trowbie PostPosted: Mon Dec 16, 2019 9:00 am
    —
Thanks, Corpse.  I was able to find the link.  Had to select the text to get it to show up.  DUH!

#7: No icon Re: Have snow on your site like I have here Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Mon Dec 16, 2019 10:23 am
    —
— Trowbie wrote
Thanks, Corpse.  I was able to find the link.  Had to select the text to get it to show up.  DUH!


You should see this image now: Expand
and that's all you would need to click on. If you don't see an image, If you're on a Windows machine, click on Alt + F5. If not, click on this link then refresh.
Please login to see this link
Get registered or Log in

#8: No icon Re: Have snow on your site like I have here Author: pd35 PostPosted: Tue Dec 08, 2020 12:38 pm
    —
Thanks m8 i like it

#9: No icon Re: Have snow on your site like I have here Author: EmeraldDragonLocation: Vancouver, WA PostPosted: Tue Dec 08, 2020 5:18 pm
    —
Cool beans. Thanks!  cool I loved it.

#10: No icon Re: Have snow on your site like I have here Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Tue Dec 08, 2020 5:39 pm
    —
N/p

#11: No icon Re: Have snow on your site like I have here Author: PatPgtips PostPosted: Thu Dec 10, 2020 11:30 am
    —
thanks corpse

looks great

#12: No icon Re: Have snow on your site like I have here Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Fri Dec 11, 2020 10:00 pm
    —
No problem, if I get a chance, I will see about updating this for automation with keeping it clean.

#13: No icon Re: Have snow on your site like I have here Author: GrmmLocation: Boise, Idaho PostPosted: Wed Dec 16, 2020 9:10 am
    —
Love it! :)

Thanks coRpSE

#14: No icon Re: Have snow on your site like I have here Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Wed Dec 16, 2020 9:59 pm
    —
No problem

#15: No icon Re: Have snow on your site like I have here Author: vash_d1Location: Mississippi PostPosted: Sun Nov 07, 2021 7:47 am
    —
I just downloaded and installed your snowman program , edited the date , works great!
Found an xmas theme it was compatible . done all the edits seems to be working so far.
Even found your old download mod from long ago lol. This theme came with a snow php , it only works when it want to.  I am glad you had the snowman and snow program .   TYVM

#16: No icon Re: Have snow on your site like I have here Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sun Nov 07, 2021 10:38 am
    —
Nice and no problem.

#17: No icon Re: Have snow on your site like I have here Author: PatPgtips PostPosted: Sun Dec 04, 2022 9:51 am
    —
any chance we can get santa sleigh as well looks good

#18: No icon Re: Have snow on your site like I have here Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sun Dec 04, 2022 10:43 am
    —
— PatPgtips wrote
any chance we can get santa sleigh as well looks good


I will pack up what I have today or tomorrow and post it.

#19: No icon Re: Have snow on your site like I have here Author: zardosLocation: North west of England PostPosted: Sun Dec 04, 2022 11:27 am
    —
Thanks again coRpSE, nice chrimbo addon.

#20: No icon Re: Have snow on your site like I have here Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sun Dec 04, 2022 12:07 pm
    —
— zardos wrote
Thanks again coRpSE, nice chrimbo addon.

I created a new thread because the one I run on this site I cleaned up and made it better organized, and make it easier to remove/edit.
If you have the one from this thread installed on your site, you will need to remove it before adding in the new one.
Please login to see this link
Get registered or Log in


enjoy.  big grin



HeadShot Extreme -> PC & Codeing Talk


output generated using printer-friendly topic mod. All times are GMT - 7 Hours

Page 1 of 1