Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Vladimir Samoilov on June 29, 2013, 04:42:00 AM

Title: Yandex Garland
Post by: Vladimir Samoilov on June 29, 2013, 04:42:00 AM
Link to the mod (https://custom.simplemachines.org/index.php?mod=3587)


Yandex Garland
mamavrn.ru (http://mamavrn.ru/index.php)

Musical Christmas garland for SMF.
You can hear the sound when you touch balls by your mouse or when you press some keys. For example for play Jingle Bells press t-t-t-t-t-t-t-i-q-e-t-y-y-y-y-y-t-t-t-t-t-e-e-q-e-i

Should work with any modern browsers like Edge, Chrome, Firefox, Opera. Doesn't work with IE11 and older.

Languages:

     - English
     - Russian

Github repo: https://github.com/realdigger/SMF-Yandex-Garland (https://github.com/realdigger/SMF-Yandex-Garland)

Change Log

v1.3.3
- add option to enable/disable sound

v1.3.2
- small fix

v1.3.1
- add SMF 2.1 support

v1.3
- flash and jQuery dependency removed (thanks to https://github.com/bybelov/new-year-garland)
- some code improvements
- add option to enable/disable garland on mobile devices

v1.2
- added mod on/off setting
- added keyboard sound on/off setting

v1.1
- rewrote with using hooks and layers

v1.0
- first release

This mod is licensed under Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) (http://creativecommons.org/licenses/by-sa/3.0/)
Title: Re: YandexGarland
Post by: TheListener on June 29, 2013, 12:05:30 PM
Is there any actual music or no?

If yes is there a setting so it can be muted?
Title: Re: YandexGarland
Post by: Vladimir Samoilov on June 29, 2013, 12:59:27 PM
You can hear the sound when you touch balls by your mouse or when you press any key. For example for play Jingle Bells press
t-t-t-t-t-t-t-i-q-e-t-y-y-y-y-y-t-t-t-t-t-e-e-q-e-i
Title: Re: YandexGarland
Post by: TheListener on June 29, 2013, 01:04:16 PM
No sound at all.

:)
Title: Re: YandexGarland
Post by: Vladimir Samoilov on June 29, 2013, 02:08:30 PM
Thank you for mod testing. I have fixed it and uploaded.
Title: Re: YandexGarland
Post by: TheListener on June 29, 2013, 02:14:43 PM
The sounds are now there.

Long wait until December though

:D
Title: Re: YandexGarland
Post by: FrizzleFried on June 29, 2013, 09:34:06 PM
Awesome!  My only request would be to add a switch to turn it on/off...

Title: Re: YandexGarland
Post by: yutcu on June 30, 2013, 12:37:58 PM
Quote from: FrizzleFried on June 29, 2013, 09:34:06 PM
Awesome!  My only request would be to add a switch to turn it on/off...
Also I request thanks
Title: Re: YandexGarland
Post by: TheListener on June 30, 2013, 12:39:36 PM
Quote from: yutcu on June 30, 2013, 12:37:58 PM
Quote from: FrizzleFried on June 29, 2013, 09:34:06 PM
Awesome!  My only request would be to add a switch to turn it on/off...
Also I request thanks

IMHO

I see no point in this. Why have moving baubles with no sound?
Title: Re: YandexGarland
Post by: FrizzleFried on June 30, 2013, 12:47:11 PM
Quote from: Old Fossil on June 30, 2013, 12:39:36 PM
Quote from: yutcu on June 30, 2013, 12:37:58 PM
Quote from: FrizzleFried on June 29, 2013, 09:34:06 PM
Awesome!  My only request would be to add a switch to turn it on/off...
Also I request thanks

IMHO

I see no point in this. Why have moving baubles with no sound?

CLARIFICATION: A switch to turn the "whole mod" on and off... so it doesn't have to be installed / uninstalled every holiday season...
Title: Re: YandexGarland
Post by: FrizzleFried on July 20, 2013, 11:19:57 AM
Also... I just realized that we DO need a "SOUND" on/off... or at least a "KEYBOARD SOUNDS ON/OFF" try typing a message with the mod installed.  I think my users would go freakin' crazy.

Title: Re: YandexGarland
Post by: Vladimir Samoilov on July 20, 2013, 04:04:46 PM
FrizzleFried :), ok, I will try to do it
Title: Re: YandexGarland
Post by: FrizzleFried on July 20, 2013, 04:47:26 PM
Quote from: mamavrn on July 20, 2013, 04:04:46 PM
FrizzleFried :), ok, I will try to do it

Awesome.  I currently only have it installed on my test site... I went there and was testing another mod which required I type up some reviews and ... ding!  DING! ding!... hehehe... didn't even think about that when I installed it.

:D

If I could suggest something visitble for users to know how/where to turn it off at their convenience (if possible)... otherwise if you must,  admin only... and then only the mouse clicks would cause the noise...

:)

Title: Re: YandexGarland
Post by: Vladimir Samoilov on October 15, 2013, 08:44:57 AM
Quote from: FrizzleFried on July 20, 2013, 11:19:57 AM
Also... I just realized that we DO need a "SOUND" on/off... or at least a "KEYBOARD SOUNDS ON/OFF" try typing a message with the mod installed.  I think my users would go freakin' crazy.

FrizzleFried, I have uploaded version 1.2 of this modification where I added mod on/off and keyboard sound on/off settings
Title: Re: YandexGarland
Post by: Gryzor on December 24, 2013, 03:29:14 AM
Just installed 1.2, no sounds here... But it does look nice!
Title: Re: YandexGarland
Post by: Greg Zimmerman on December 24, 2013, 03:33:41 PM
Quote from: Scrooge on June 29, 2013, 02:14:43 PM
The sounds are now there.

Long wait until December though

:D

Well, feel better now because it's already December.
Title: Re: YandexGarland
Post by: uklocksport on December 13, 2014, 10:32:55 AM
great garland, looks great sounds are fine, but can i stop the bells ringing when wrting posts


thanks
Title: Re: YandexGarland
Post by: Vladimir Samoilov on December 23, 2014, 02:03:26 AM
Quote from: pickwizard on December 13, 2014, 10:32:55 AM
great garland, looks great sounds are fine, but can i stop the bells ringing when wrting posts


thanks

Yes, of course. You can do it in the mod settings area.
Title: Re: YandexGarland
Post by: akbora on December 23, 2014, 01:22:59 PM
Very good mod. Can you add scheduled tasks for example time to start and time to stop...
Title: Re: YandexGarland
Post by: coltp45 on December 23, 2014, 02:27:54 PM
any chance that sound constantly jingle bells instead of sounds?
Title: Re: YandexGarland
Post by: @rjen on December 07, 2015, 04:09:21 AM
Since Christmas is getting closer I reactivated the mod again.

Surprise that the sounds are no longer being played. They where last year when I switched the mod off.
This seams to be the same in any browser.

Uninstalling and reinstalling the mod does nog change the behaviour.

Now I have seen that the mod uses Javascript and a shockwave flash (.swf) file to play the sounds and in 2015 at least Chrome stopped supporting some flash animations. Could it be that the mod is outdated for the latest browsers?
Still have the mod activated ( www.fjr-club.nl ), but some users are missing the tingling sounds the bells used to make when hovering a mouse over the christmas balls...
Title: Re: YandexGarland
Post by: Tonyvic on December 07, 2015, 09:53:18 AM
I just installed the mod, and can hear the sound ok with Edge, Firefox and Chrome which are all the latest versions. ???
Title: Re: YandexGarland
Post by: @rjen on December 07, 2015, 10:29:20 AM
What forum url is it? Maybe it is my pc?
Title: Re: YandexGarland
Post by: @rjen on December 07, 2015, 01:07:00 PM
Just installed a clean smf version on my laptop, and installed the mod again, and you are right, it works now!

So there must be something conflicting in my forum...
I tried replacing various files with the original ones (sources / themes / css / script) but no luck...  >:(

The balls move, but NO SOUND... any idea where to look?


Title: Re: YandexGarland
Post by: Tonyvic on December 07, 2015, 02:11:59 PM
Sorry @rjen I haven't a clue, hopefully someone with knowledge will be along soon.
Title: Re: YandexGarland
Post by: Manius on December 13, 2015, 06:23:22 AM
Hello! And anyone know how to install IPS 4.x?
Title: Re: YandexGarland
Post by: Vladimir Samoilov on December 15, 2015, 03:01:59 AM
Hello, @rjen.

Could you show the full list of installed mods on your forum, please?
Title: Re: YandexGarland
Post by: Vladimir Samoilov on December 15, 2015, 03:05:06 AM
Quote from: Manius on December 13, 2015, 06:23:22 AM
Hello! And anyone know how to install IPS 4.x?

This mod for SMF only. But you can copy and some code for install it manually.
Title: Re: YandexGarland
Post by: @rjen on December 15, 2015, 11:46:35 AM
Quote from: mamavrn on December 15, 2015, 03:01:59 AM
Hello, @rjen.

Could you show the full list of installed mods on your forum, please?

Sure, below the mods.

Most of them were already active last year...

1.   Optimus Brave   1.8.7 
2.   Responsive Curve   1.0 Beta 5 
3.   TinyPortal   1.2 
4.   Google Analytics Code   1.4 
5.   Group Attachment Limits   1.1.0 
6.   EU Cookie FJR   1.3fjr 
7.   Users Online Today   2.1 
8.   Order Custom Profile Fields   1.1.1 
9.   Downloads System   2.5 
10.   Previous and Next Links for Page Index   2.1.204 
11.   AJAX Recent Topics   1.1 
12.   Alternate User Posting   1.0.1 
13.   Custom Board Sort   1.0.2 
14.   View Only Boards   1.2c 
15.   Force Topic Read On Login Mod   2.1 
16.   Voter Visibility   2.0 FJR 
17.   Simple Audio Video Embedder   3.5a 
18.   YandexGarland   1.2 
19.   Ignore Topics   2.3 
20.   Auto Lock Old Topics   2.0 
21.   Float BBCODE   1.0.2 
22.   Tapatalk SMF 2.0 Plugin   4.3.3 
23.   Users Online Today   2.0.3
24.   SMF Theme Changer   1.0.1 
25.   Remove "Last edit" mod   0.2.5 
26.   SMFPacks Shoutbox   1.0.5 
27.   Add Social Media Icons To Profiles FJR   1.2.0 
28.   SMF 2.0.11 Update   1.0 
29.   Enhanced PM System   3.1 
Title: Re: YandexGarland
Post by: @rjen on December 15, 2015, 02:05:50 PM
It seems I am geting closer to finding the cause. On my local forum version I have one by one installed the latest additions to my mods and I think I have found the cause: Tinyportal 1.2

Yandex works ok (with sound) then I install TP version 1.2 and the sound stops working. Uninstalling tinyportal: and the sound works again... Last year I was still on version 1.0 of TP: it worked ok then...

I did a check in the code changes TP makes but I cannot see the cause of the conflict. Maybe someone more knowledgable can help here?

TP install affects the follwing files:

1.   Extract Tree   ./Themes
2.   Extract Tree   ./Sources
3.   Extract Tree   ./tp-downloads
4.   Extract Tree   ./tp-images
5.   Extract Tree   ./tp-files
6.   Execute Modification   ./index.php
7.   Execute Modification   ./Sources/Load.php
8.   Execute Modification   ./Sources/Subs.php
9.   Execute Modification   ./SSI.php
10.   Execute Modification   ./Sources/QueryString.php
11.   Execute Modification   ./Sources/Subs-Editor.php
12.   Adapt Database   install.php
13.   Execute Code   do_hooks.php

Title: Re: YandexGarland
Post by: @rjen on December 15, 2015, 03:40:14 PM
Fixed!

I found the conflict: in TPortal.php.
As a result jquery is loaded twice: once by Yandex, once by TP...



// Load JQuery if it's not set (anticipated for SMF2.1)
if (!isset($modSettings['jquery_source']))
$context['html_headers'] .= '
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>';


Since it suggests it is there for SMF 2.1 I commented out the code: and now it works again. I see no direct downside on Tinyportal...
Title: Re: YandexGarland
Post by: Vladimir Samoilov on December 16, 2015, 02:25:16 AM
Quote from: @rjen on December 15, 2015, 03:40:14 PM
Fixed!

I found the conflict: in TPortal.php.
As a result jquery is loaded twice: once by Yandex, once by TP...



// Load JQuery if it's not set (anticipated for SMF2.1)
if (!isset($modSettings['jquery_source']))
$context['html_headers'] .= '
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>';


Since it suggests it is there for SMF 2.1 I commented out the code: and now it works again. I see no direct downside on Tinyportal...

Good morning! :)
Thank you for your investigation! It will be helpfull for another TP users.
Title: Re: YandexGarland
Post by: @rjen on December 16, 2015, 03:21:04 AM
Also a note to Yandexgarland mod developer, for future reference:

come SMF 2.1 you will need to remove the jquery call from the yandexgarland mod as SMF 2.1 calls jquery by default.
Title: Re: YandexGarland
Post by: Black Tiger on December 20, 2017, 01:49:12 PM
I know it's almost 3 years ago, but anyone still using this?
Last year in Firefox the bells and sounds worked.

I did not add any new mods, but now I only see the bells, no sound in Chrome and Firefox, which did some major changes the past year.
With Internet Explorer 11 the sound still works.

These are my mods:
1.    Contact Page    3.2
2.    SMF 2.0.15 Update    1.0
3.    YandexGarland    1.2
4.    SimplePortal    2.3.7
5.    Remove "Last edit" mod    0.2.5
6.    Tapatalk SMF 2.0 Plugin    4.4.1
7.    Redirection Topics    1.0.3
8.    Downloads System    2.5
9.    Image Upload    1.0.0    [ Install Mod ] [ List Files ] [ Delete ]
10.    Optimus    1.9.6
11.    Birthday On Register    1.0
12.    My Posts SMF2    1.2

But they were present end 2016 too, only versions are updated.
Anyone else having the sound issue this year with FF or Chrome?
Title: Re: YandexGarland
Post by: Black Tiger on December 24, 2017, 05:47:55 PM
Seems YandexGarland is not 100% SSL compatible, it formerly also worked without issues with Dziners's Xmas-20a theme. But not if you scroll to the end of the page it will keep giving white space and keeps loading when Yandex is enabled.

For example I had to change this code:
http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
to
https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
for the bells to move in Chrome and Firefox. Sound still did not work and we got that sudden conflict with the Dziners theme.

If disabled, problem is gone, now so this mod really needs some updating. :)
Title: Re: YandexGarland
Post by: @rjen on December 25, 2017, 03:21:52 AM
Thanks for the tip on the SSL. I had the same issue: now the balls move again.

I am still missing the sounds (fix I did two years ago still in place) ... any idea where to look for that one ?
Title: Re: YandexGarland
Post by: Shambles on December 25, 2017, 04:18:58 AM
You'll have to install/enable Adobe Flash to get sound
Title: Re: YandexGarland
Post by: Black Tiger on December 25, 2017, 08:35:47 AM
Flash is installed and enabled.

@Arjan: nope, sorry, don't know where too look for that. Maybe it has something to do with the fact that the code is not to be found on that http://code.google.com/p/swfobject/  url in swfobject.min.js? That's redirecting to https://github.com/swfobject/swfobject nowadays.
I tried changing that to the github url, but that did not have any effect.

Any clue on why it suddenly conflicts with that x-mas theme so it keeps scrolling when getting to the bottom?
Title: Re: YandexGarland
Post by: digger on December 27, 2017, 03:47:40 PM
Updated version 1.3 https://github.com/realdigger/SMF-Yandex-Garland

Title: Re: YandexGarland
Post by: @rjen on December 27, 2017, 05:05:17 PM
Quote from: digger on December 27, 2017, 03:47:40 PM
Updated version 1.3 https://github.com/realdigger/SMF-Yandex-Garland


  • Some code improvements.
  • Flash and jQuery dependency removed.
  • Add option to enable/disable garland on mobile devices.

Thanks!

just updated (3rd day of Christmas, still possible I guess) and it works again!
Title: Re: YandexGarland
Post by: Black Tiger on December 27, 2017, 06:01:26 PM
Just tried the 1.3.2 (release 2 minutes ago on Github it said).
However that one is giving an error notice:
Package upload failed due to the following error:
"Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable.

I used the zip, which does have some content. I don't have this issue with other zips or with the YandexGarland 1.3.2.tar.gz file so something must be wrong with the .zip release.

As for the mod itself, still having the same issues as before, no sound and end of forum page keeps scrolling.
Title: Re: YandexGarland
Post by: @rjen on December 27, 2017, 06:33:08 PM
I had the same error with the .zip file, but the .tar_gz installed fine...

Since you are adding 'switches' digger, would it possible to include a switch to enable / disable the bell sound as well?
Title: Re: YandexGarland
Post by: Black Tiger on December 27, 2017, 06:40:28 PM
Yep I wrote the tar.gz was fine too. It's just so Digger can fix the zip file. The tar.gz contains some pax_global_header which the zip has not, don't know where it's for.
Isn't the keyboard switch for enabling/disabling the bell sound?
Title: Re: YandexGarland
Post by: digger on December 29, 2017, 09:41:36 PM
Quote from: @rjen on December 27, 2017, 06:33:08 PM
Since you are adding 'switches' digger, would it possible to include a switch to enable / disable the bell sound as well?
Done
Title: Re: YandexGarland
Post by: @rjen on December 30, 2017, 06:03:44 AM
Quote from: digger on December 29, 2017, 09:41:36 PM
Quote from: @rjen on December 27, 2017, 06:33:08 PM
Since you are adding 'switches' digger, would it possible to include a switch to enable / disable the bell sound as well?
Done

Wonderful, works like a charm.   :)

Now there would be only one thing left to shut up the last complainers on my forum: the ability to set the sounds on and off in the user profile, so that those who feel bothered can switch the sound off in their profile...
Title: Re: Yandex Garland
Post by: Steve on December 08, 2023, 06:34:40 AM
Quote from: @rjen on December 30, 2017, 06:03:44 AMNow there would be only one thing left to shut up the last complainers on my forum: the ability to set the sounds on and off in the user profile, so that those who feel bothered can switch the sound off in their profile...
+1
Title: Re: Yandex Garland
Post by: Ricsca on December 24, 2024, 08:17:39 AM
Why don't you post a picture that shows the final result of the mod?
Title: Re: Yandex Garland
Post by: Diego Andrés on December 24, 2024, 09:52:22 AM
Quote from: Ricsca on December 24, 2024, 08:17:39 AMWhy don't you post a picture that shows the final result of the mod?

There seems to be one in the repository:
https://github.com/realdigger/SMF-Yandex-Garland
Title: Re: Yandex Garland
Post by: Ricsca on December 26, 2024, 04:33:26 PM
very nice, why don't you insert it for the motorbike so everyone can see it and it will surely be used more
Title: Re: Yandex Garland
Post by: Diego Andrés on December 26, 2024, 08:14:03 PM
Mmm fair request, I attached the preview in the MOD page.
Title: Re: Yandex Garland
Post by: Ricsca on December 27, 2024, 05:49:22 PM
you have not updated that is compatible with the latest version 2.1.4  :D