XF2 Guides Sound notifications Alerts and Conversations

AynazRahimi

Administrative
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.
 

joostyle

Registered
Thank you for your response. But I would like to ask - is there any way for it to work on version 2.1.5? Respectively any modification in the code?
 

Misterman

Loyal Member
Official User
Thank you for your response. But I would like to ask - is there any way for it to work on version 2.1.5? Respectively any modification in the code?
It works on xenforo 2.1.
You just have to change the links in the code, it doesn't work anymore.
 
Top