We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Chat sound | Forum

Ricky
Ricky Oct 1 '13
please when a ever a user send message he hears sound. please can someone help me stop the sound from users sending a chat message. i want only the receiver to hear the sound
ross Team
ross Oct 3 '13
This will be a custom code modification
ross Team
ross Oct 3 '13
Topic was moved from General Questions.
Daisy Team
Daisy Oct 3 '13
You should add a condition that if a sender ID is equal to current user ID - the the sound should not be played. You can do these change in /ow_plugins/ajaxim/static/js/ajaxim.js file, simply search for the write: function(msg, css_class){ string.
Ricky
Ricky Oct 3 '13
ok i will try that
amen
amen Nov 5 '14
what about in v 1.7.0 /ow_plugins/ajaxim/static/js/ajaxim.js is not found.......please help
Daisy Team
Daisy Nov 24 '14
Go to ow_plugins/mailbox/static/js/contactmanager.js file, search for the following string:

if ( parseInt(im_readCookie('im_soundEnabled')) && css_class == null){

You will need to add a condition to check the senderId into this function.
S. Bourdon
S. Bourdon Nov 24 '14
Hi!


Could someone share the «if» statement, please?


Ricky, were you able to achieve this?  What about you, amen?

Could you share your solution, please?


Thank you very much!