When a new Notification: play mp3 file Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
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 January 7th 2019, 6:34 pm

    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 January 7th 2019, 7:27 pm

    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 : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: When a new Notification: play mp3 file

    Post by skouliki January 7th 2019, 7:28 pm

    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 January 7th 2019, 9:55 pm

    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 : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: When a new Notification: play mp3 file

    Post by skouliki January 8th 2019, 4:31 am

    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 January 22nd 2019, 5:26 pm

    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 : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: When a new Notification: play mp3 file

    Post by skouliki February 5th 2019, 9:38 am

    @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 February 5th 2019, 11:55 am

    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 February 5th 2019, 12:16 pm

    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.