1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained TaigaChat Pro Alert Sound Notification 1.3

Adds a sound to each new massage in TaigaChat Pro

  1. it_

    it_ Member

    it_ submitted a new resource:

    TaigaChat Pro Alert Sound Notification - Adds a sound to each new massage in TaigaChat Pro

    Read more about this resource...
  2. RoldanLT

    RoldanLT Well-Known Member

    Thanks for sharing (y)
  3. aiman.h.kallaf

    aiman.h.kallaf Active Member

    just what i was looking for . i have suggested this to the addon developer but got no feedback .
    thanks a lot
  4. Harelin

    Harelin Member

    Thanks for this!

    I have a big need for an on/off feature, though. I have users browsing at work, sound effects are not ideal for them, but I'd still like to use this feature. For their sake I will probably have to remove it unless I can give them the ability to disable sounds.

    Maybe create a custom profile field and surround the play() commands with a conditional? That way muting is persistent across multiple sessions. I don't know enough to say whether that is possible or a desirable way of going about it.
    Last edited: Sep 26, 2013
  5. Alexey.P

    Alexey.P Member

    How about sound for the normal notifications/conversations ?
  6. oVR

    oVR Active Member

    This might me out of the scope of this addon but can you develop a general notification for Taiga Chat?

    I'm looking for it to show notification on top of the shoutbox/chatbox tab when there is an unviewed chat message.

    To make this current addon more appealing you can implement something like this on top of the sound notification and let people toggle one or the other or both.
  7. Deepmartini

    Deepmartini Well-Known Member

    Can users hear the notification if they are in the forum and not in the chat window?
  8. RoldanLT

    RoldanLT Well-Known Member

    I think yes.
  9. Junior

    Junior Well-Known Member

    How users can temporarily stop the sound
    1. Open up your Adblock Options (Requires adblock Plugin)
    2. Click the Customize Tab
    3. Manually Enter A Filter
    4. Filter out :

    Yes. You can be browsing another page or even in another program or game all together and you will hear the notification sound.
  10. CNK

    CNK Active Member

    I create a new custom user field:

    Basic Information:
    Field ID: SoundChat
    Title: Alert sounds in the chat
    Description: Enable / disable sound in chat
    Display Location: Preferences

    Options for Choice Fields:
    Radio Buttons:
    • yes
    • no
    General Options:
    • Field is required
    • Show during registration
    • User editable

    I copied the file: taigachat.js and changed its name to taigachatSound.js
    Then edited the taigachatSound.js according to: http://xenforo.com/community/resources/taigachat-pro-alert-sound-notification.2365/

    I edited the template dark_taigachat_chatbox and dark_taigachat_popup:

    In dark_taigachat_chatbox replaced:
    <xen:require js="js/dark/taigachat.js?{xen:raw $taigachat.js_modification}" /> 
    <xen:if is="{$visitor.customFields.SoundChat} == 'yes'">
    <xen:require js="js/dark/taigachatSound.js?{xen:raw $taigachat.js_modification}" />   
    <xen:else />
    <xen:require js="js/dark/taigachat.js?{xen:raw $taigachat.js_modification}" />   

    In dark_taigachat_popup replaced:
    <script type="text/javascript" src="js/dark/taigachatSound.js?{xen:raw $taigachat.js_modification}"></script> 
    <xen:if is="{$visitor.customFields.SoundChat} == 'yes'">
    <script type="text/javascript" src="js/dark/taigachatSound.js?{xen:raw $taigachat.js_modification}"></script>   
    <xen:else />
    <script type="text/javascript" src="js/dark/taigachat.js?{xen:raw $taigachat.js_modification}"></script>

    Now users can decide themselves whether they want to have enabled the sounds in account Preferences ;)
    MasterPiece and it_ like this.
  11. it_

    it_ Member

    Very nice, may you allow me to update the overview with your credits?
    MasterPiece likes this.
  12. CNK

    CNK Active Member

    Yes ;-)
  13. MasterPiece

    MasterPiece Active Member

    it's not working for me could you verify your code please as it works without it Thanks
  14. CNK

    CNK Active Member

    Send a link to your forum.
    If you set a custom field well it should work fine.
  15. CNK

    CNK Active Member

    Hmm .. If you have edited dark_taigachat_chatbox and dark_taigachat_popup it should work ok, check if the same thing {$visitor.customFields.SoundChat} display yes or now.
  16. MasterPiece

    MasterPiece Active Member

    ah well i gave up. Everything is set like the instruction and its not working. Too bad no sounds for shoutbox. Thanks anyway
  17. CNK

    CNK Active Member

    I have no idea why your custom field not work properly. On my xF everything works okay.
  18. it_

    it_ Member

  19. ldr451

    ldr451 Member

    Is there a way to adjust the volume on the sounds without users just adjusting the volume on their computer? The reason I ask is we use the chat while listening or watching a stream at the same time. The sounds plays a lot louder than everything else that is running sound.
  20. UnitySoft

    UnitySoft Member

    Template Errors: forum_list
    1. filemtime(): stat failed for js/dark/taigachat.js in /var/www/vhosts/xxxx/httpdocs/library/Dark/TaigaChat/Helper/Global.php, line 77:
      76: if ($xenOptions['xengalleryForumListRecent'] AND $xenOptions['xengalleryForumListPosition'] == ('top'))
      77: {
      78: $__output .= '

Share This Page