Add a Sound to each new message send in TaigaChat Pro ?

codered101

  1. Ce site utilise des cookies. En continuant à utiliser ce site, vous acceptez l'utilisation des cookies. En savoir plus.
  1. codered101

    codered101

    Messages:
    93
    J'aime reçus:
    5
    Points:
    713
    How to add a sound to each new message send in TaigaChat Pro....
    Any Alternative to This one :
    TaigaChat Pro Alert Sound Notification 1.3
    is Totally Appreciated .

    because it's not working with UI.X styles !
     

      L'auteur de la discussion a jugé qu'une réponse pertinente à répondu à l'interrogation de son topic. Cliquez ici pour la voir.

    ●●●Outils
  2. ℓ๏я€ɲƶ๏

    ℓ๏я€ɲƶ๏

    Messages:
    305
    J'aime reçus:
    133
    Points:
    1 693
    This mod will add a sound to each new message send in TaigaChat Pro.

    About
    This mod will play the sound on each site you are displaying TaigaChat Pro at.
    Sounds will be loaded and buffered after the first message has been sent/received. Also, users can decide whether they want to hear the notification sound or not via custom user field choice.

    1. Step: Download and Upload
    Download the resource and upload the files inside the upload folder to your forum's root directory.

    2. Step: Create the new custom user field
    NAVIGATE TO:
    ACP > Users > Custom User Fields > +Create New Field

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

    Options for Choice Fields:
    Field Type: Radio Buttons
    Possible Choices: yes, no

    General Options:
    [x] Field is required
    [x] Show during registration
    [x] User editable
    SAVE FIELD

    3. Step: Copy and Rename taigachat.js

    COPY THE FILE: taigachat.js
    (It's inside yourdomain/js/dark/taigachat.js)

    AND RENAME IT TO: taigachatSound.js

    4. Step: Edit taigachatSound.js


    OPEN YOUR NEW FILE: taigachatSound.js
    SEARCH FOR:

    Code:
    var taigachat_hidden, taigachat_visibilityChange;
    ADD AFTER:

    Code:
    var snd = new Audio("tcp_sound.ogg");
    var snd2 = new Audio("tcp_sound.mp3");
    SEARCH FOR:

    Code:
    taigachat_lastMessage = new Date().getTime();
    ADD AFTER:

    Code:
    snd.play();
    
    snd2.play();
    Done! Go to your Account Settings --> Preferences and enable alert sounds in chat. Then try sending something in your Taigachat Pro. You should hear a sound now!

    Télécharger
     

      Cette réponse a aidé l'auteur de la discussion.

    ●●●Outils