Sound notifications Alerts and Conversations

restrainuk

Active member
Registered
Joined
Apr 17, 2022
Messages
28
Points
13

Reputation:

In your PAGE_CONTAINER template look for:
HTML:
<body data-template="{$template}">

And add below:
HTML:
<xf:if is="{$xf.visitor.conversations_unread}">
    <audio src="http://s1download-universal-soundbank.com/mp3/sounds/9756.mp3" autoplay></audio>
</xf:if>
<xf:if is="{$xf.visitor.alerts_unread}">
    <audio src="http://s1download-universal-soundbank.com/mp3/sounds/newemail.mp3" autoplay></audio>
</xf:if>

If you want only 1 sound for both put this code instead:
HTML:
<xf:if is="{$xf.visitor.conversations_unread} OR {$xf.visitor.alerts_unread}">
    <audio src="http://s1download-universal-soundbank.com/mp3/sounds/9756.mp3" autoplay></audio>
</xf:if>

PS: You can change the sound links at your convenience.

You can also add an .mp3 link like on the chatBox.
 

Tabao

Member
Registered
Joined
Aug 14, 2021
Messages
6
Points
13

Reputation:

Really Great !

Would it be possible to have the code so that an mp3 is triggered when a member connects please?
 
Top