The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Playing A Sound File When You Receive A Notification?

View previous topic View next topic Go down

In progress Playing A Sound File When You Receive A Notification?

Post by Rukiafan on Thu 18 Jul - 14:52

Can this feature be added to the toolbar? My forum version is PunBB.
avatar
Rukiafan
Forumember

Posts : 277
Reputation : 9
Language : English

Back to top Go down

In progress Re: Playing A Sound File When You Receive A Notification?

Post by SLGray on Thu 18 Jul - 15:51

I have not seen anyone add this feature to the toolbar yet.


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

avatar
SLGray
Administrator
Administrator

Male Posts : 38440
Reputation : 2587
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: Playing A Sound File When You Receive A Notification?

Post by kirk on Fri 19 Jul - 2:11

yeah i don't know anyway to do that. i have added sound to navigation bars before, but as far as when receiving a notification not sure?
avatar
kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

In progress Re: Playing A Sound File When You Receive A Notification?

Post by levy on Fri 19 Jul - 6:30

Hello, Hello

You maked other request for that and in AvacWEB forum and for me work Dom's code :

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);
});

Just replace : http://www.freesfx.co.uk/rx2/mp3s/2/1305_1256857800.mp3
avatar
levy
Hyperactive

Male Posts : 2585
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum