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 July 18th 2013, 9:52 pm

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

Rukiafan
Forumember

Posts : 264
Reputation : 8
Language : English

Back to top Go down

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

Post by SLGray on July 18th 2013, 10:51 pm

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.


SLGray
Administrator
Administrator

Male Posts : 35661
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

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

Post by kirk on July 19th 2013, 9:11 am

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?

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 July 19th 2013, 1:30 pm

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

levy
Hyperactive

Male Posts : 2566
Reputation : 344
Language : Romanian, English
Location : Romania | Feel free to tag me into your topic if you have a problem

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