Docskillz

The Good Stuff => SMF and Mods Docs => Topic started by: aura on December 03, 2014, 09:35:00 PM

Title: Dreaming of a snowy Christmas.
Post by: aura on December 03, 2014, 09:35:00 PM
Hello Skhilled

Yes its me again .....  :ohmy2:

Im picking your brain again, is it possible to add this http://www.hypergurl.com/snowmaker.html (http://www.hypergurl.com/snowmaker.html) to SMF forum?

I use to have a snow mod but its not on the mod site anymore and i dont like the project snow mod they have.

aura

EDIT By Skhilled: Here's the link to make it easy for those who need it:

http://web-develop.ca/index.php?action=downloads;sa=view;down=6 (http://web-develop.ca/index.php?action=downloads;sa=view;down=6)
Title: Re: Dreaming of a snowy Christmas.
Post by: Skhilled on December 04, 2014, 08:06:41 AM
It should work if you add the code to the index.template.php file for your theme(s) following these instructions:

Quote
STEP 1:
Copy and paste the falling snow javascript below after the <body> tag of your html.

You must add it to each them your viewers are allowed to use. But be warned that on slow servers it can slow down your site because it is constantly running. Give it a try and see if it works. If it doesn't look here and see if you can find others that may work better:

http://www.hotscripts.com/ (http://www.hotscripts.com/)

EDIT: I tried it and it didn't work for me. I'm sure that I'm doing something wrong...
Title: Re: Dreaming of a snowy Christmas.
Post by: aura on December 04, 2014, 09:00:12 AM
thanks Skhilled i just got out of bed cos i was laying there and i thought hhmmm i reckon i use to run something in my headers on a free forum where i had no mods ......but that didnt work either....*grins*

maybe there is to much hot air on elements from girls fighting lol
Title: Re: Dreaming of a snowy Christmas.
Post by: Skhilled on December 04, 2014, 09:06:54 AM
LOL! I'm sure it is something I'm doing wrong cause I get a blank screen when I do it. I'll ask someone who is a much better coder than I am. LOL
Title: Re: Dreaming of a snowy Christmas.
Post by: aura on December 04, 2014, 09:10:17 AM
but but but ...and another but You know everything *grins*

honestly you are a very clever Man i admire you greatly and i have learnt so much from you. 

Even little things like you suggesting i put in some forum rules, it was good cos i needed them.  We even have a resources sharing policy now *grins*

hugs
aura
Title: Re: Dreaming of a snowy Christmas.
Post by: Skhilled on December 04, 2014, 09:15:03 AM
I "WISH" I knew everything!  :hah:

...and thanks...  :blush:
Title: Re: Dreaming of a snowy Christmas.
Post by: aura on December 04, 2014, 09:17:57 AM
The thing is your kind and you share your knowledge and you do it in a way that others dont feel stupid, and teach us blonde one how to do it ourselfs *S* there is a saying adults learn best by doing, and i have learnt lots from doing things you suggest.

i must go back to bed my eyes are trying to shut, i hope you have a good sleep if you just did nights *S* or a good day if your off.

hugs
aura .....
Title: Re: Dreaming of a snowy Christmas.
Post by: Skhilled on December 04, 2014, 09:20:03 AM
I'll be heading to bed in about 2 hours myself then back to work for the last night of the week.

Sleep well, babe.

oxox
Title: Re: Dreaming of a snowy Christmas.
Post by: aura on December 04, 2014, 09:24:01 AM
take care hugs

talk soon.... i need to tell you about our big font drama .....groans im still worn down from it.  :pullhair:

Title: Re: Dreaming of a snowy Christmas.
Post by: Skhilled on December 04, 2014, 09:27:30 AM
I'll stop by and have a peek. ;)
Title: Re: Dreaming of a snowy Christmas.
Post by: Skhilled on December 05, 2014, 09:20:58 AM
I've found out how to do it if you have a portal. But I'm still waiting for an answer for those who don't...
Title: Re: Dreaming of a snowy Christmas.
Post by: Ken. on December 07, 2014, 06:40:37 AM
Quote from: Skhilled on December 05, 2014, 09:20:58 AM
I've found out how to do it if you have a portal. But I'm still waiting for an answer for those who don't...

How to for portals Steve?  :cool2:
Title: Re: Dreaming of a snowy Christmas.
Post by: Skhilled on December 07, 2014, 07:37:28 AM
Follow this topic:

http://web-develop.ca/index.php?topic=128.0 (http://web-develop.ca/index.php?topic=128.0)
Title: Re: Dreaming of a snowy Christmas.
Post by: beast on December 07, 2014, 09:03:43 AM

  Do I install the portal like a mod ? or what

   :taz:
Title: Re: Dreaming of a snowy Christmas.
Post by: Skhilled on December 07, 2014, 09:12:53 AM
You already have a portal, Simple Portal...you just need to make the block, make it invisible and add that code to it then upload that file.
Title: Re: Dreaming of a snowy Christmas.
Post by: beast on December 07, 2014, 09:20:37 AM

  OH!!! I see now. Thank you

   :taz:
Title: Re: Dreaming of a snowy Christmas.
Post by: Skhilled on December 07, 2014, 09:21:22 AM
No problem, bro. :happy:
Title: Re: Dreaming of a snowy Christmas.
Post by: Ken. on December 09, 2014, 07:20:03 AM
Umm... not working for me.  :(
Title: Re: Dreaming of a snowy Christmas.
Post by: Skhilled on December 09, 2014, 07:46:24 AM
It didn't work for me here too but haven't tried it since he changed it. He said there may be a theme issue or it only works for SP and not TP?
Title: Re: Dreaming of a snowy Christmas.
Post by: Ken. on December 09, 2014, 08:07:21 AM
The SP .vs TP thing may be the issue.  I've looked at all of the available block codes on the TP site and all of them are out of date and so are not working.
Title: Re: Dreaming of a snowy Christmas.
Post by: Skhilled on December 09, 2014, 08:19:27 AM
I'm waiting for the version without a portal anyways...hopefully this weekend or sooner.
Title: Re: Dreaming of a snowy Christmas.
Post by: Ken. on December 09, 2014, 09:50:29 AM
Quote from: Skhilled on December 09, 2014, 08:19:27 AM
I'm waiting for the version without a portal anyways...hopefully this weekend or sooner.

Sounds good.
Title: Re: Dreaming of a snowy Christmas.
Post by: Skhilled on December 13, 2014, 03:33:46 PM
OK, will someone please try this on a test site on their server? It is not working for me and gives me a blank page. I'd like to make sure it is not just this server.

http://web-develop.ca/index.php?action=downloads;cat=5 (http://web-develop.ca/index.php?action=downloads;cat=5)
Title: Re: Dreaming of a snowy Christmas.
Post by: Chen Zhen on December 13, 2014, 04:30:38 PM

It's your php memory_limit being too low.
The newer version of PHP sets this at 128M but yours is a bit dated and sets it at 32M.
I have adjusted the code to set it at 128M although it would be prudent to ask your host to set it permanently within the php.ini file.
The block code I previously posted is now PHP and I tested it here whereas it worked just fine.
However the mod I made gives you more options but not for placement just yet.

Regards.
Title: Re: Dreaming of a snowy Christmas.
Post by: Chen Zhen on December 13, 2014, 04:48:00 PM
For now until I add the options for where to place the effect it will show on every page.
However, you can control this using a portal.

Within the mods settings opt whatever effect you want and adjust its configuration.
Uncheck the first box to disable the mod.

Create a PHP block and set it to where you want it to display and put the following into it.
Make sure to place the block as the last thing on the page (so no other block invokes the global call).

global $modSettings;
$modSettings['snowflakesEnable'] = 1;

Title: Re: Dreaming of a snowy Christmas.
Post by: Skhilled on December 13, 2014, 08:16:57 PM
Every time I install it everything goes blank? 500 Internal Server Error...
Title: Re: Dreaming of a snowy Christmas.
Post by: Chen Zhen on December 13, 2014, 09:03:45 PM
Also I see nothing shows up in the Modifications template which means it is not doing its edits here for some reason.
There is a lot of images and lengthy js files included, perhaps your php.ini settings for upload file size is low?
The only thing I can think of atm is to recompile the mod missing the js and images files on purpose.
Afterwards add them via FTP.

It can also be the memory setting again..
Let me try something..
Title: Re: Dreaming of a snowy Christmas.
Post by: Skhilled on December 13, 2014, 09:10:06 PM
I've got much larger mods installed so it can't be the upload size...
Title: Re: Dreaming of a snowy Christmas.
Post by: Chen Zhen on December 15, 2014, 08:37:36 PM

The mod has been updated and installed on this forum.
It seems to be working well.

Regards.
Title: Re: Dreaming of a snowy Christmas.
Post by: Skhilled on December 16, 2014, 08:07:02 AM
Thank you very much, sir!  ;D You da man!

For those of you who wish to use this mod, you can get it here:

http://web-develop.ca/index.php?action=downloads;sa=view;down=6 (http://web-develop.ca/index.php?action=downloads;sa=view;down=6)
Title: Re: Dreaming of a snowy Christmas.
Post by: Skhilled on December 21, 2014, 07:45:21 AM
The mod has been updated to v1.2 with a random option included! Here's what's fixed in the new version:

v1.2
+ added random Snowflake script option
+ added optional top px offset value for Xmas Lights script
! fixed help text
! fixed token validation for SMF 2.1.X
! fixed image resizing for invalid or corrupt file types
! fixed form multipart/form-data on Snowflakes admin template
! Snowflakes image folder no longer removed during the uninstall process

I suggest you update to get the fixes and try out the random option. ;)