Welcome to the [HSX] website!

Been Gaming since 2003

Community Driven Site

Gaming, Web Development, and Support

  

 
Main Menu
 
DFG
 Home
 Join our Clan
 [HSX] Roster
 Forums
 News
 Downloads
 News Letter
 Video tutorials
 Supporters
 Uploads
 F.A.Q
· FAQ
· Docs
· Forums FAQ
 [HS] History
 Site Map
 Write a Review
 Image Repo
 WhoIs
 Twitch ID Finder
 Logout
DFG
DFG DFG DFG

 
[HSX] Donations
 
DFG
Donation
This here is a combined total of what we need to keep us going each month.

0 %

Donate

End DateJul 01
Target$25.00
Below Target$25.00
CurrencyUSD

Donators This Month
-No Donations Yet-
DFG
DFG DFG DFG

 
Theme Management
 
DFG
DFG
DFG DFG DFG

 
Whos Been
 
DFG
 coRpSE
 1 hour ago
 pest
 5 hours ago
 hossboss
 6 hours ago
 SgTChris
 6 hours ago
 Megaboost
 11 hours ago
 Bulldog1
 14 hours ago
 fire
 17 hours ago
 soulreaver
 1 day ago
 2xTaz
 1 day ago
 Lonestar
 2 days ago
DFG
DFG DFG DFG

 
Survey
 
DFG What is your favorite game to play ATM?

WarThunder
World of Tanks
H1Z1
MechWarrior Online
ARK
WarFace
SWTOR
BattleField serier
COD Series
Diablo
Armored Warfare



Results
Polls

Votes 1194
Comments: 0
DFG
DFG DFG DFG

 
Honey Pot
 
DFG
Bots in the pot!
We have [2122] bots stopped!

DFG
DFG DFG DFG

     
DFG
 
Forum Index Members Search Usergroups
Ranks Staff Statistics Forum FAQ
Board Rules Edit your profile Login, Check Messages Log in
 


Search for at

Have snow on your site like I have here
Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post Forum Index PC & Codeing Talk
View previous topic View next topic
PostPosted: Tue Dec 03, 2019 12:11 am Reply with quote
coRpSE
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


Expand

Top Dog
Nuke Dev / Coder

Groups Top Dog
Nuke Dev / Coder
Posts 2385
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website Find all posts by coRpSE

Thankful People
3 user(s) is/are thankful for this post.
PostPosted: Thu Dec 05, 2019 10:48 am Reply with quote
fire
Thank you!

NOOB!!!

Groups NOOB!!!
Posts 26
Joined Jan 29, 2019
Status Offline
View user's profile Send fire a private message Find all posts by fire

PostPosted: Thu Dec 05, 2019 12:52 pm Reply with quote
coRpSE
No problem.


 

Top Dog
Nuke Dev / Coder

Groups Top Dog
Nuke Dev / Coder
Posts 2385
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website Find all posts by coRpSE

 
PostPosted: Sat Dec 14, 2019 11:08 am Reply with quote
Trowbie
Great effect! Wish I could download it.  Did the download feature go away with the forum updates?

NOOB!!!

Groups NOOB!!!
Posts 5
Joined Aug 10, 2019
Status Offline
View user's profile Send Trowbie a private message Visit user's website Find all posts by Trowbie

PostPosted: Sat Dec 14, 2019 1:29 pm Reply with quote
coRpSE
— 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.


 

Top Dog
Nuke Dev / Coder

Groups Top Dog
Nuke Dev / Coder
Posts 2385
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website Find all posts by coRpSE

PostPosted: Mon Dec 16, 2019 9:00 am Reply with quote
Trowbie
Thanks, Corpse.  I was able to find the link.  Had to select the text to get it to show up.  DUH!


 

NOOB!!!

Groups NOOB!!!
Posts 5
Joined Aug 10, 2019
Status Offline
View user's profile Send Trowbie a private message Visit user's website Find all posts by Trowbie

 
PostPosted: Mon Dec 16, 2019 10:23 am Reply with quote
coRpSE
— 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


 

Top Dog
Nuke Dev / Coder

Groups Top Dog
Nuke Dev / Coder
Posts 2385
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website Find all posts by coRpSE

Display posts from previous:
Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post All times are UTC - 7 Hours [DST enabled]
Page 1 of 1


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2019 phpBB Group
DFG
DFG DFG DFG
Forums ©
Copyright © HeadShotDomain 2016 By: coRpSE
SimpleBlack V2 By: Killigan
Powered By: Evolution-Xtreme