Advertisement:

Author Topic: YandexGarland  (Read 12517 times)

Offline mamavrn

  • Semi-Newbie
  • *
  • Posts: 57
    • Форум воронежских родителей
YandexGarland
« on: June 29, 2013, 04:42:00 AM »
Link to Mod


Yandex Garland
mamavrn.ru

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

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)

TheListener

  • Guest
Re: YandexGarland
« Reply #1 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?

Offline mamavrn

  • Semi-Newbie
  • *
  • Posts: 57
    • Форум воронежских родителей
Re: YandexGarland
« Reply #2 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

TheListener

  • Guest
Re: YandexGarland
« Reply #3 on: June 29, 2013, 01:04:16 PM »
No sound at all.

 :)

Offline mamavrn

  • Semi-Newbie
  • *
  • Posts: 57
    • Форум воронежских родителей
Re: YandexGarland
« Reply #4 on: June 29, 2013, 02:08:30 PM »
Thank you for mod testing. I have fixed it and uploaded.

TheListener

  • Guest
Re: YandexGarland
« Reply #5 on: June 29, 2013, 02:14:43 PM »
The sounds are now there.

Long wait until December though

 :D

Offline FrizzleFried

  • Drama-Monger
  • Sr. Member
  • ****
  • Posts: 754
Re: YandexGarland
« Reply #6 on: June 29, 2013, 09:34:06 PM »
Awesome!  My only request would be to add a switch to turn it on/off...


Offline yutcu

  • Newbie
  • *
  • Posts: 4
Re: YandexGarland
« Reply #7 on: June 30, 2013, 12:37:58 PM »
Awesome!  My only request would be to add a switch to turn it on/off...
Also I request thanks

TheListener

  • Guest
Re: YandexGarland
« Reply #8 on: June 30, 2013, 12:39:36 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?

Offline FrizzleFried

  • Drama-Monger
  • Sr. Member
  • ****
  • Posts: 754
Re: YandexGarland
« Reply #9 on: June 30, 2013, 12:47:11 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...

Offline FrizzleFried

  • Drama-Monger
  • Sr. Member
  • ****
  • Posts: 754
Re: YandexGarland
« Reply #10 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.


Offline mamavrn

  • Semi-Newbie
  • *
  • Posts: 57
    • Форум воронежских родителей
Re: YandexGarland
« Reply #11 on: July 20, 2013, 04:04:46 PM »
FrizzleFried :), ok, I will try to do it

Offline FrizzleFried

  • Drama-Monger
  • Sr. Member
  • ****
  • Posts: 754
Re: YandexGarland
« Reply #12 on: July 20, 2013, 04:47:26 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...

:)


Offline mamavrn

  • Semi-Newbie
  • *
  • Posts: 57
    • Форум воронежских родителей
Re: YandexGarland
« Reply #13 on: October 15, 2013, 08:44: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

Offline Gryzor

  • Sr. Member
  • ****
  • Posts: 729
  • Gender: Male
  • CPCwiki.eu - The Amstrad CPC Encyclopaedia!
    • CPCWiki
Re: YandexGarland
« Reply #14 on: December 24, 2013, 03:29:14 AM »
Just installed 1.2, no sounds here... But it does look nice!

Offline Greg Zimmerman

  • Newbie
  • *
  • Posts: 6
Re: YandexGarland
« Reply #15 on: December 24, 2013, 03:33:41 PM »
The sounds are now there.

Long wait until December though

 :D

Well, feel better now because it's already December.

Offline uklocksport

  • Semi-Newbie
  • *
  • Posts: 16
    • UK Locksport
Re: YandexGarland
« Reply #16 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

Offline mamavrn

  • Semi-Newbie
  • *
  • Posts: 57
    • Форум воронежских родителей
Re: YandexGarland
« Reply #17 on: December 23, 2014, 02:03:26 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.

Offline akbora

  • Sr. Member
  • ****
  • Posts: 960
    • Anında Tepki
Re: YandexGarland
« Reply #18 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...
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Offline coltp45

  • Semi-Newbie
  • *
  • Posts: 61
    • Futbol Argento
Re: YandexGarland
« Reply #19 on: December 23, 2014, 02:27:54 PM »
any chance that sound constantly jingle bells instead of sounds?

Offline @rjen

  • Jr. Member
  • **
  • Posts: 187
  • Gender: Male
    • FJR-club Nederland
Re: YandexGarland
« Reply #20 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...
 
Running SMF 2.0 with Tinyportal 1.3R at www.fjr-club.nl
Testing SMF 2.1 beta 3 with Tinyportal 2.0 at http://test2.fjr-club.nl/

Offline Tonyvic

  • Jr. Member
  • **
  • Posts: 137
  • Gender: Male
Re: YandexGarland
« Reply #21 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. ???

Offline @rjen

  • Jr. Member
  • **
  • Posts: 187
  • Gender: Male
    • FJR-club Nederland
Re: YandexGarland
« Reply #22 on: December 07, 2015, 10:29:20 AM »
What forum url is it? Maybe it is my pc?
Running SMF 2.0 with Tinyportal 1.3R at www.fjr-club.nl
Testing SMF 2.1 beta 3 with Tinyportal 2.0 at http://test2.fjr-club.nl/

Offline @rjen

  • Jr. Member
  • **
  • Posts: 187
  • Gender: Male
    • FJR-club Nederland
Re: YandexGarland
« Reply #23 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?


Running SMF 2.0 with Tinyportal 1.3R at www.fjr-club.nl
Testing SMF 2.1 beta 3 with Tinyportal 2.0 at http://test2.fjr-club.nl/

Offline Tonyvic

  • Jr. Member
  • **
  • Posts: 137
  • Gender: Male
Re: YandexGarland
« Reply #24 on: December 07, 2015, 02:11:59 PM »
Sorry @rjen I haven't a clue, hopefully someone with knowledge will be along soon.

Offline Manius

  • Newbie
  • *
  • Posts: 1
Re: YandexGarland
« Reply #25 on: December 13, 2015, 06:23:22 AM »
Hello! And anyone know how to install IPS 4.x?

Offline mamavrn

  • Semi-Newbie
  • *
  • Posts: 57
    • Форум воронежских родителей
Re: YandexGarland
« Reply #26 on: December 15, 2015, 03:01:59 AM »
Hello, @rjen.

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

Offline mamavrn

  • Semi-Newbie
  • *
  • Posts: 57
    • Форум воронежских родителей
Re: YandexGarland
« Reply #27 on: December 15, 2015, 03:05:06 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.

Offline @rjen

  • Jr. Member
  • **
  • Posts: 187
  • Gender: Male
    • FJR-club Nederland
Re: YandexGarland
« Reply #28 on: December 15, 2015, 11:46:35 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 
Running SMF 2.0 with Tinyportal 1.3R at www.fjr-club.nl
Testing SMF 2.1 beta 3 with Tinyportal 2.0 at http://test2.fjr-club.nl/

Offline @rjen

  • Jr. Member
  • **
  • Posts: 187
  • Gender: Male
    • FJR-club Nederland
Re: YandexGarland
« Reply #29 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
 
Running SMF 2.0 with Tinyportal 1.3R at www.fjr-club.nl
Testing SMF 2.1 beta 3 with Tinyportal 2.0 at http://test2.fjr-club.nl/

Offline @rjen

  • Jr. Member
  • **
  • Posts: 187
  • Gender: Male
    • FJR-club Nederland
Re: YandexGarland
« Reply #30 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...


Code: [Select]
// 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...
Running SMF 2.0 with Tinyportal 1.3R at www.fjr-club.nl
Testing SMF 2.1 beta 3 with Tinyportal 2.0 at http://test2.fjr-club.nl/

Offline mamavrn

  • Semi-Newbie
  • *
  • Posts: 57
    • Форум воронежских родителей
Re: YandexGarland
« Reply #31 on: December 16, 2015, 02:25:16 AM »
Fixed!

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


Code: [Select]
// 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.

Offline @rjen

  • Jr. Member
  • **
  • Posts: 187
  • Gender: Male
    • FJR-club Nederland
Re: YandexGarland
« Reply #32 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.
Running SMF 2.0 with Tinyportal 1.3R at www.fjr-club.nl
Testing SMF 2.1 beta 3 with Tinyportal 2.0 at http://test2.fjr-club.nl/

Offline Black Tiger

  • Full Member
  • ***
  • Posts: 543
  • Gender: Male
    • Satellite Fun
Re: YandexGarland
« Reply #33 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?
Greetings, Black Tiger

Offline Black Tiger

  • Full Member
  • ***
  • Posts: 543
  • Gender: Male
    • Satellite Fun
Re: YandexGarland
« Reply #34 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:
Code: [Select]
http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.jsto
Code: [Select]
https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.jsfor 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. :)
Greetings, Black Tiger

Offline @rjen

  • Jr. Member
  • **
  • Posts: 187
  • Gender: Male
    • FJR-club Nederland
Re: YandexGarland
« Reply #35 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 ?
Running SMF 2.0 with Tinyportal 1.3R at www.fjr-club.nl
Testing SMF 2.1 beta 3 with Tinyportal 2.0 at http://test2.fjr-club.nl/

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 4,567
  • Gender: Male
    • i30 Owners Club
Re: YandexGarland
« Reply #36 on: December 25, 2017, 04:18:58 AM »
You'll have to install/enable Adobe Flash to get sound

Offline Black Tiger

  • Full Member
  • ***
  • Posts: 543
  • Gender: Male
    • Satellite Fun
Re: YandexGarland
« Reply #37 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?
Greetings, Black Tiger

Offline digger

  • Full Member
  • ***
  • Posts: 690
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
Re: YandexGarland
« Reply #38 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.

Offline @rjen

  • Jr. Member
  • **
  • Posts: 187
  • Gender: Male
    • FJR-club Nederland
Re: YandexGarland
« Reply #39 on: December 27, 2017, 05:05:17 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!
Running SMF 2.0 with Tinyportal 1.3R at www.fjr-club.nl
Testing SMF 2.1 beta 3 with Tinyportal 2.0 at http://test2.fjr-club.nl/

Offline Black Tiger

  • Full Member
  • ***
  • Posts: 543
  • Gender: Male
    • Satellite Fun
Re: YandexGarland
« Reply #40 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:
Code: [Select]
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.
Greetings, Black Tiger

Offline @rjen

  • Jr. Member
  • **
  • Posts: 187
  • Gender: Male
    • FJR-club Nederland
Re: YandexGarland
« Reply #41 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?
Running SMF 2.0 with Tinyportal 1.3R at www.fjr-club.nl
Testing SMF 2.1 beta 3 with Tinyportal 2.0 at http://test2.fjr-club.nl/

Offline Black Tiger

  • Full Member
  • ***
  • Posts: 543
  • Gender: Male
    • Satellite Fun
Re: YandexGarland
« Reply #42 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?
Greetings, Black Tiger

Offline digger

  • Full Member
  • ***
  • Posts: 690
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
Re: YandexGarland
« Reply #43 on: December 29, 2017, 09:41:36 PM »
Since you are adding 'switches' digger, would it possible to include a switch to enable / disable the bell sound as well?
Done

Offline @rjen

  • Jr. Member
  • **
  • Posts: 187
  • Gender: Male
    • FJR-club Nederland
Re: YandexGarland
« Reply #44 on: December 30, 2017, 06:03:44 AM »
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...
Running SMF 2.0 with Tinyportal 1.3R at www.fjr-club.nl
Testing SMF 2.1 beta 3 with Tinyportal 2.0 at http://test2.fjr-club.nl/