MyBB Community Forums

Full Version: Add sounds
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I would like to see a sound added for each new post. A simple chime or bell, or something for whenever a new post is made to alert the users that someone has posted.

I don't know if this is feesible, but it would be a nice feature that could be activated in the user CP panel.
I don't know how this could be implemented, simply because if you're at the forums you'd still have to "refresh" your browser for the new posts to show, by which time there's icons/images already for showing new posts.
lufbra Wrote:I don't know how this could be implemented, simply because if you're at the forums you'd still have to "refresh" your browser for the new posts to show, by which time there's icons/images already for showing new posts.
this is correct
Smile
Well it could be accomplished by some ajax, but it could be a nightmare to support and something I would consider bloat.
I can see that this could be a nice idea - I'm just not sure if it's possible to dynamically play sounds with Javascript (could be done with Flash perhaps).

Maybe someone could try using Javascript to create an EMBED element and see if it works... IDK.
With refresh page it's easy. Like in vb (Play Sound When Private Message Received).
Without refresh page it's possible only with ajax.
And with ajax... I don't know how to call function for instant play to all users...
ZiNgA BuRgA Wrote:I can see that this could be a nice idea - I'm just not sure if it's possible to dynamically play sounds with Javascript (could be done with Flash perhaps).

Maybe someone could try using Javascript to create an EMBED element and see if it works... IDK.

Just use a javascript interface to a flash player and have fun. If you use jQuery, try this: ( to learn.. checkout the autoplay option)
http://www.malsup.com/jquery/media/
Asad_Niazi Wrote:Just use a javascript interface to a flash player and have fun. If you use jQuery, try this: ( to learn.. checkout the autoplay option)
http://www.malsup.com/jquery/media/
Every time when I used jQuery, I have problems with my forum (perhaps with quick edit, and collapse boxes).
mybbromania Wrote:
Asad_Niazi Wrote:Just use a javascript interface to a flash player and have fun. If you use jQuery, try this: ( to learn.. checkout the autoplay option)
http://www.malsup.com/jquery/media/
Every time when I used jQuery, I have problems with my forum (perhaps with quick edit, and collapse boxes).

Learn to use jQuery in the compatibility mode (mentioned in their docs) or find plugins for prototype instead of jQuery.
Asad_Niazi Wrote:Learn to use jQuery in the compatibility mode (mentioned in their docs) or find plugins for prototype instead of jQuery.
btw... I really don't understant why mybb don't use jQuery instead of Prototype.
jQuery is very powerfull... Sad