Advertisement:

Author Topic: Snowflakes  (Read 1363 times)

Offline Chen Zhen

  • Sophist Member
  • *****
  • Posts: 1,173
  • Gender: Male
  • If you're going through hell, keep going!
    • Underdog-01 on GitHub
    • WebDev.ca
Snowflakes
« on: December 24, 2018, 06:44:11 AM »
Link to Mod

Snowflakes Display Modification c/o Chen Zhen
Copyright 2014 - 2019, Chen Zhen @ web-develop.ca
Compatible with the SMF 2.0.X & SMF 2.1.X branches


This installation process will add options to the "Modification Settings" template
which will allow an administrator to opt various types of snowflake and animated image scripts.
This will allow all your users to view these scripts on all of your website pages.

Distributed under the GNU Lesser General Public License version 3



Available effects:
  • Four types of snowflakes: Snowflakes, Flurry, Diverse & Snowstorm
  • Fireworks
  • Flying Bats
  • Xmas Lights
  • Xmas Light Strands
  • Xmas Wired Lights
  • Random (some/all of the above)
  • Many more available under the headings of "Diverse" & "Halloween" (ie. rain, leaves, bees, butterflies, doves, etc.)
  • Your own images can be uploaded in the Halloween, Diverse or Xmas Wired Lights options

Available options:
  • Various settings for all of the effects (available when each are selected in the admin)
  • Enable/disable options for:  modification, members, specific actions/sub-actions, mobile or tablet detection
  • Ability to enable/disable JQuery library for the SMF 2.0 branch (ie. disable when already available from another modification)
  • Upload/change images for some of the effects



Version History
-----------------

v1.7
+ added new wired lights effect
! fixed mobile/tablet detection
! fixed snowstorm options for SMF 2.0 branch
! fixed explosion animation for smash lights effect

v1.62
+ added mouseenter/mouseover events for menus and search
+& added admin options for mouseover/mouseenter events
! adjusted ion.sound to only use HTML5 audio
! fixed onload event for various scripts that do not use JQuery (affects SMF 2.0)

v1.61
+ added one additional light smash mp3 file
! fixed smash lights script to only play one sound per bulb smash
! fixed smash lights script to ensure it only loads one instance

v1.6
+& added new light strands effect
+ any script requiring sound will now use the Ion.Sound 3.0.7 plug-in
+ all scripts are now compressed for stable versions
- SoundManager2 completely removed from smash lights script
! fixed Javascript objects for snowstorm effect
! fixed admin settings for snowstorm effect
! fixed Javascript for smash lights effect
! fixed Javascript node for smash lights effect now loaded using DOM
! fixed css for exploding lights
! fixed default offset height for smash lights effect on SMF 2.1 branch
! fixed default settings for smash lights effect no longer sets or disables append & admin-view options

v1.5
+& added mobile detection as another disable option
+& added tablet detection as another disable option
+& license changed to: GNU Lesser General Public License version 3
! permission settings fixed for both SMF branches
! profile menu icon fixed for SMF 2.0 branch

v1.42
+& added profile permissions to the Snowflakes admin template
+& disabling Snowflakes for actions/subactions behavior has changed (see help text in admin)
! fixed misspelled help text
! fixed member database function (missing key column for replace/insert)

v1.41
+& added permission to allow membergroups profile option of enable/disable Snowflakes
! fixed profile and permission functions
! fixed SMF 2.1 profile area hook

v1.4
+& added admin options to disable Snowflakes during specific SMF actions and/or subactions

v1.3
+ updated included JQuery library to v3.3.1
+ added admin option to select Xmas lights container height
- removed utf-8 language files (existing language files are utf-8)
- eliminated redundant flash files
! fixed deprecated msie detection
! fixed css for lights
! fixed instance of window.onload changed to eventListener
! fixed instances of (window).load(function(){...}) changed to (window).on("load, function(){...})
! lights offset now "em" instead of "px" and floating value input allowing negative to positive range: -10.99 to 10.99

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

v1.1
+ Snowflakes now utilizes its own snowflakes_settings table
+ all settings are now mostly script/effect specific
+ added lightbulbs script
+ installer now applies defaults where no settings exist for specific scripts
+ users have option to disable Snowflakes within their profile settings
+ membergroup permissions
+ file edit no longer necessary
! fixed issue within snowflakesSMF.php file which affected some environments

v1.0
+ adds options for Snowflakes under the heading of Modification Settings
+ many options available for control ( more are pending )
+ 7 optional scripts available for varied effects



Disclaimer:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

My SMF Mods & Plug-Ins

WebDev
Simple Portal Support

Request politely & demand nothing.

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,453
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Snowflakes
« Reply #1 on: December 24, 2018, 11:09:50 AM »
Nice job! The only thing I could wish for is the ability to have more than one choice selectable (not counting the random option). :)
Online Manual

Please do not PM me for support.

Offline Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 2,283
  • Gender: Male
  • I also speak english :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: Snowflakes
« Reply #2 on: December 24, 2018, 04:40:39 PM »
It seems pretty good, I'll install it in a test forum to see it better. Great job @Chen Zhen


Regards!
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!


Ayudame via PayPal

Offline Chen Zhen

  • Sophist Member
  • *****
  • Posts: 1,173
  • Gender: Male
  • If you're going through hell, keep going!
    • Underdog-01 on GitHub
    • WebDev.ca
Re: Snowflakes
« Reply #3 on: December 24, 2018, 09:13:01 PM »

Thanks  ;D

Nice job! The only thing I could wish for is the ability to have more than one choice selectable (not counting the random option). :)

The random effect option lets you opt the effects you want in the form of a check list.
Do you mean to let the member opt the effect instead of just the Admin?

My SMF Mods & Plug-Ins

WebDev
Simple Portal Support

Request politely & demand nothing.

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,453
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Snowflakes
« Reply #4 on: December 25, 2018, 11:02:36 AM »
As I understand it, the random effect rotates through whatever is checked so that there is only one effect happening at a time.

I wish I could select two or more of the effects and have them all show at the same time.

But that's only a wish. Like I said, great job on the mod as it is. :D
Online Manual

Please do not PM me for support.

Offline Chen Zhen

  • Sophist Member
  • *****
  • Posts: 1,173
  • Gender: Male
  • If you're going through hell, keep going!
    • Underdog-01 on GitHub
    • WebDev.ca
Re: Snowflakes
« Reply #5 on: December 27, 2018, 06:27:04 PM »
I just released version 1.6 which has some important updates.
Please uninstall plus delete the older version, then download & install the newer one.
Read the change-log in the app or in this mods initial post for details.

This update mainly concerns fixing the snowstorm & lights effects.
It also adds a newer light-strands effect.

The lights effect was previously using Soundmanager2 and its script was conflicting with other jQuery on the page.
This has been fixed in Snowflakes v1.6 along with using ion.sound v3.0.7 instead of Soundmanager2.



@Steve:
I can look into what you requested although I will have to test them with each other to see if they do not conflict (variable & function wise).
Having that many scripts running on the page at one time may almost certainly cause a performance concern.
 


My SMF Mods & Plug-Ins

WebDev
Simple Portal Support

Request politely & demand nothing.

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,453
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Snowflakes
« Reply #6 on: December 28, 2018, 08:49:29 AM »
No worries Chen Zhen. It was only wishful thinking and I don't want you going through a lot of work just to do this.

Thanks for the update. :D
Online Manual

Please do not PM me for support.

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,453
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Snowflakes
« Reply #7 on: December 28, 2018, 08:56:30 AM »
Hmm ... I see only options for the snowflakes. No lights, no bats, etc.
Online Manual

Please do not PM me for support.

Offline Chen Zhen

  • Sophist Member
  • *****
  • Posts: 1,173
  • Gender: Male
  • If you're going through hell, keep going!
    • Underdog-01 on GitHub
    • WebDev.ca
Re: Snowflakes
« Reply #8 on: December 28, 2018, 01:20:29 PM »
@Steve:

I just tested it on both SMF 2.0 & SMF 2.1 branches.
As well as installing when it was installed previously and when it was not.
In all scenarios it functions as expected with no PHP errors, no Javascript errors, no conflicts and nothing missing in any admin menu.
Although this was using the default theme in those tests.
What theme are you using?


I can not seem to duplicate what was reported.
Please uninstall it from your forum, clear the forum cache, clear the browser cache/history, download the version from here again and then install it.
Let me know if it works properly or not after those steps.

Thanks.

 

My SMF Mods & Plug-Ins

WebDev
Simple Portal Support

Request politely & demand nothing.

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,453
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Snowflakes
« Reply #9 on: December 28, 2018, 02:00:46 PM »
My apologies Chen Zhen. I'm an idiot. I totally missed the dropdown box which switches effects. It works as advertised.
Online Manual

Please do not PM me for support.

Offline Chen Zhen

  • Sophist Member
  • *****
  • Posts: 1,173
  • Gender: Male
  • If you're going through hell, keep going!
    • Underdog-01 on GitHub
    • WebDev.ca
Re: Snowflakes
« Reply #10 on: December 28, 2018, 02:09:39 PM »
@Steve:
No problem and I'm glad it works as expected.



Even though I chose the name "Snowflakes", it has many effects including the ability to customize the images for "Diverse" & "Halloween".
Diverse provides a drop effect and Halloween provides a hover effect.
Which have options to change size, density, speed, images, etc.
You can make floating bees, leaves, falling rain drops or whatever you want.

What I should do is provide the ability to save multiple configurations for those 2 options.


My SMF Mods & Plug-Ins

WebDev
Simple Portal Support

Request politely & demand nothing.

Offline Chen Zhen

  • Sophist Member
  • *****
  • Posts: 1,173
  • Gender: Male
  • If you're going through hell, keep going!
    • Underdog-01 on GitHub
    • WebDev.ca
Re: Snowflakes
« Reply #11 on: December 29, 2018, 01:00:08 AM »

Snowflakes v1.61 is now available.

This update fixes issues with the smash lights effect.
Please read the change-log located in the initial post of the thread for details.

Regards.

My SMF Mods & Plug-Ins

WebDev
Simple Portal Support

Request politely & demand nothing.

Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 798
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: Snowflakes
« Reply #12 on: January 01, 2019, 11:46:35 PM »
Anyone have a link to a forum where this is in use so I can see what it looks like ?
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

Offline Chen Zhen

  • Sophist Member
  • *****
  • Posts: 1,173
  • Gender: Male
  • If you're going through hell, keep going!
    • Underdog-01 on GitHub
    • WebDev.ca
Re: Snowflakes
« Reply #13 on: January 04, 2019, 12:00:52 AM »

Snowflakes has been updated to version 1.62.
This update includes some bug fixes and extra admin options.

The newer settings can make it so when a user has their mouse over specific HTML/XHTML containers, the lights will be temporarily disabled.
This will allow you to have those lights at the top in the position you want but not interfere with any links or navigation.



@landyvlad:

I have this mod enabled on my website and it is set to random.
You can click on the Forum link in the nav bar multiple times to see different effects.
However, due to the season I have 2 of the effects turned off (6 are enabled).

My SMF Mods & Plug-Ins

WebDev
Simple Portal Support

Request politely & demand nothing.

Offline Chen Zhen

  • Sophist Member
  • *****
  • Posts: 1,173
  • Gender: Male
  • If you're going through hell, keep going!
    • Underdog-01 on GitHub
    • WebDev.ca
Re: Snowflakes
« Reply #14 on: January 11, 2019, 09:50:28 PM »

Snowflakes has been updated to version 1.7
This update includes some bug fixes and another added wired lights effect.
The new effect has multiple image options including the ability to add your own images.

My SMF Mods & Plug-Ins

WebDev
Simple Portal Support

Request politely & demand nothing.