● Have snow on your site like I have here - V2

Sun Dec 04, 2022 12:05 pm
Clan Leader
Top Dog
Nuke Dev / Coder
3015 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 77.7hrs.
Total Played: 195hrs.


  
There is life outside of the game.
Reputation: 7317.9
votes: 7
Okay, I was originally going to update the original thread, but this one is a bit different and works a little differently.
So if you have the original one
Please login to see this link
Get registered or Log in
, then please undo your edits before adding this one.


This is the same mod as visually, but with the addition of the Santa.
I also cleaned up the folder structure and moved all controls to the following file:

public_html/includes/custom_files/holidays/xmas/x-config.php


**TIP**
If you have never edited your custom_head.php or custom_footer.php, then you can use the pre-edited files I give.
Just know that if you DON'T have a custom_footer.php, then more and likely, you have never modified either file for Evo Xtreme does not come with the custom_footer.php by default. Not sure why this is, but it is.



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

In there, look for the line that looks like:

Code: [ Select all ]

echo '<div class="snowman">&nbsp;</div>', PHP_EOL;


Change to:

Code: [ Select all ]

//echo '<div class="snowman">&nbsp;</div>', PHP_EOL;


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, (public_html/includes/custom_files/holidays/xmas/images/) and do what ever you want to the snowman image, but, try keeping the height 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/custom_files/holidays/xmas/css/christmas.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.

I also added in an adjustment further down for mobile, and you will see that under the other code, you will see the expanded height you can adjust if you do change the snowman, but that will be up to you to play around with. If you get stuck and need help, feel free to ask.

That's it.

I hope you enjoy.


[UPDATED] 12/8/2022
-Added instructions to fix the cookie warning to be behind the snow for most themes. Instructions can be found in this post:
Please login to see this link
Get registered or Log in

Download instructions were also updated.


Expand
Sun Dec 04, 2022 12:37 pm
Blabbing Noob
98 Posts
Reputation: 460.1
thanks corpse works great
Sun Dec 04, 2022 1:29 pm
Original Poster
Clan Leader
Top Dog
Nuke Dev / Coder
3015 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 77.7hrs.
Total Played: 195hrs.


  
There is life outside of the game.
Reputation: 7317.9
votes: 7
Glad to hear.


 
Sun Dec 04, 2022 2:27 pm
Spammer
130 Posts
Zardos
Currently Offline
Offline
  
Doesn't like playing games!
Reputation: 846.4
Thanks coRpSE working great for me aswell.
Sun Dec 04, 2022 3:44 pm
Original Poster
Clan Leader
Top Dog
Nuke Dev / Coder
3015 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 77.7hrs.
Total Played: 195hrs.


  
There is life outside of the game.
Reputation: 7317.9
votes: 7
nice


 
Thu Dec 08, 2022 10:57 am
Original Poster
Clan Leader
Top Dog
Nuke Dev / Coder
3015 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 77.7hrs.
Total Played: 195hrs.


  
There is life outside of the game.
Reputation: 7317.9
votes: 7
Here is a little update for those of you that are using this. You may have noticed that if you go to your site using a different browser or if you cleared your browser cookies/cache and saw the message at the bottom, "This website uses cookies to ensure you get the best experience on our website. Learn more". Well, using this christmas script I have here blocks it with the snow. To fix this, just do the following. I have updated the download readme with the fix aswell.

#
#-----[ OPEN ]------------------------------------------
#


public_html/includes/css/cookieconsent.min.css

#
#-----[ FIND ]------------------------------------------
#


z-index:9999

#
#-----[ REPLACE WITH ]------------------------------------------
#


z-index:99999

#
#-----[ SAVE & CLOSE ]------------------------------------------
#


Basically, if you can't tell, all you are doing is adding an extra 9 at the end, changing it from 9999, to 99999. You will need to clear your browser cache to be able to see the difference. There is only 1 occurrence where z-index occurs in the file so that is what I don't give all the instructions to find the line, then in the line find that one thing. I am just following the KISS principle with this one.


 
Fri Dec 09, 2022 7:44 am
Blabbing Noob
98 Posts
Reputation: 460.1
thanks again updated


 
Fri Dec 09, 2022 12:52 pm
Original Poster
Clan Leader
Top Dog
Nuke Dev / Coder
3015 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 77.7hrs.
Total Played: 195hrs.


  
There is life outside of the game.
Reputation: 7317.9
votes: 7
no problem.


 
Forums ©