The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
4 posters

    When a new Notification: play mp3 file

    teliosmetonma1
    teliosmetonma1
    Forumember


    Posts : 247
    Reputation : 1
    Language : greek

    Solved When a new Notification: play mp3 file

    Post by teliosmetonma1 Mon 7 Jan 2019 - 18:34

    Is there any codes that makes my forum play an mp3 file when users have new notifications?

    thank you  Hello
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: When a new Notification: play mp3 file

    Post by Ape Mon 7 Jan 2019 - 19:27

    Right now NO this is not installed but we are testing a system that may work but until we test it then we can't hand the code out but it maybe in the tricks a tips soon so watch this space



    When a new Notification: play mp3 file Left1212When a new Notification: play mp3 file Center11When a new Notification: play mp3 file Right112
    When a new Notification: play mp3 file Ape_b110
    When a new Notification: play mp3 file Ape1010
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15312
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: When a new Notification: play mp3 file

    Post by skouliki Mon 7 Jan 2019 - 19:28

    hello

    am not sure that this works but give it a try 

     create a new javascript ... in all pages 

    Code:
    $(window).load(function () {
        my_setcookie('notifications', document.getElementById('fa_right').innerHTML, false);
        setInterval(function () {
            if (document.getElementById('fa_right').innerHTML != my_getcookie('notifications')) {
                $('body').append('<embed src="http://www.freesfx.co.uk/rx2/mp3s/2/1305_1256857800.mp3" width="0"
    height="0" autoplay="true" style="display: none;" class="notification_sound"></embed>');
                setTimeout(function () {
                    $('.notification_sound').remove();
                }, 3000);
                my_setcookie('notifications', document.getElementById('fa_right').innerHTML, false);
            }
        }, 5000);
    });


    replace this : http://www.freesfx.co.uk/rx2/mp3s/2/1305_1256857800.mp3

    teliosmetonma1
    teliosmetonma1
    Forumember


    Posts : 247
    Reputation : 1
    Language : greek

    Solved Re: When a new Notification: play mp3 file

    Post by teliosmetonma1 Mon 7 Jan 2019 - 21:55

    Well it doesnt work... and i changed the mp3 to: https://s1.vocaroo.com/media/download_temp/Vocaroo_s12lFH1cG3Km.mp3
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15312
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: When a new Notification: play mp3 file

    Post by skouliki Tue 8 Jan 2019 - 4:31

    Then wait as APE suggested

    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: When a new Notification: play mp3 file

    Post by Ape Tue 22 Jan 2019 - 17:26

    Great news @teliosmetonma1 we have now tested a Tutorial we was gave from one of our other support forums
    This is fully tested and working like a charm.

    I think this will be what your looking for.
    https://help.forumotion.com/t157012-sound-notifications#1086421

    Have a great day from all of us @ Forumotion



    When a new Notification: play mp3 file Left1212When a new Notification: play mp3 file Center11When a new Notification: play mp3 file Right112
    When a new Notification: play mp3 file Ape_b110
    When a new Notification: play mp3 file Ape1010
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15312
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: When a new Notification: play mp3 file

    Post by skouliki Tue 5 Feb 2019 - 9:38

    @teliosmetonma1 is this solved?
    if yes please mark it as Solved

    thank you


    teliosmetonma1
    teliosmetonma1
    Forumember


    Posts : 247
    Reputation : 1
    Language : greek

    Solved Re: When a new Notification: play mp3 file

    Post by teliosmetonma1 Tue 5 Feb 2019 - 11:55

    Yep, solved
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: When a new Notification: play mp3 file

    Post by SLGray Tue 5 Feb 2019 - 12:16

    Problem solved & topic archived.
    Please read our forum rules:  ESF General Rules



    When a new Notification: play mp3 file Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is Mon 23 Sep 2024 - 9:30