Changeset 3464145
- Timestamp:
- 02/18/2026 09:56:39 AM (6 weeks ago)
- Location:
- wpiko-chatbot
- Files:
-
- 75 added
- 2 deleted
- 6 edited
-
tags/1.1.2 (added)
-
tags/1.1.2/admin (added)
-
tags/1.1.2/admin/admin-page.php (added)
-
tags/1.1.2/admin/css (added)
-
tags/1.1.2/admin/css/admin-style.css (added)
-
tags/1.1.2/admin/css/ai-configuration.css (added)
-
tags/1.1.2/admin/css/conversation-mobile-style.css (added)
-
tags/1.1.2/admin/css/conversation-style.css (added)
-
tags/1.1.2/admin/css/dashboard-style.css (added)
-
tags/1.1.2/admin/css/debug-log-style.css (added)
-
tags/1.1.2/admin/css/file-management.css (added)
-
tags/1.1.2/admin/css/modal-style.css (added)
-
tags/1.1.2/admin/css/plugin-header.css (added)
-
tags/1.1.2/admin/css/transcript-styles.css (added)
-
tags/1.1.2/admin/includes (added)
-
tags/1.1.2/admin/includes/plugin-header.php (added)
-
tags/1.1.2/admin/js (added)
-
tags/1.1.2/admin/js/admin-script.js (added)
-
tags/1.1.2/admin/js/conversations.js (added)
-
tags/1.1.2/admin/js/dashboard.js (added)
-
tags/1.1.2/admin/js/file-management.js (added)
-
tags/1.1.2/admin/js/files-list.js (added)
-
tags/1.1.2/admin/js/modal-handlers.js (added)
-
tags/1.1.2/admin/js/models-info.js (added)
-
tags/1.1.2/admin/js/responses-api.js (added)
-
tags/1.1.2/admin/sections (added)
-
tags/1.1.2/admin/sections/ai-configuration-section.php (added)
-
tags/1.1.2/admin/sections/api-key-section.php (added)
-
tags/1.1.2/admin/sections/chatbot-menu-section.php (added)
-
tags/1.1.2/admin/sections/chatbot-style-section.php (added)
-
tags/1.1.2/admin/sections/conversations-section.php (added)
-
tags/1.1.2/admin/sections/dashboard-section.php (added)
-
tags/1.1.2/admin/sections/debug-log-section.php (added)
-
tags/1.1.2/admin/sections/error-messages-section.php (added)
-
tags/1.1.2/admin/sections/floating-chatbot-section.php (added)
-
tags/1.1.2/admin/sections/questions-section.php (added)
-
tags/1.1.2/admin/sections/shortcode-chatbot-section.php (added)
-
tags/1.1.2/admin/templates (added)
-
tags/1.1.2/admin/templates/admin-wrapper.php (added)
-
tags/1.1.2/admin/templates/file-management.php (added)
-
tags/1.1.2/assets (added)
-
tags/1.1.2/assets/images (added)
-
tags/1.1.2/assets/images/chatbot-icon.png (added)
-
tags/1.1.2/chatbot-interface.php (added)
-
tags/1.1.2/css (added)
-
tags/1.1.2/css/frontend-transcript-styles.css (added)
-
tags/1.1.2/css/wpiko-chatbot.css (added)
-
tags/1.1.2/includes (added)
-
tags/1.1.2/includes/api-helpers.php (added)
-
tags/1.1.2/includes/cache-management.php (added)
-
tags/1.1.2/includes/conversation-handler.php (added)
-
tags/1.1.2/includes/conversation-translation.php (added)
-
tags/1.1.2/includes/files-list-handler.php (added)
-
tags/1.1.2/includes/floating-chatbot.php (added)
-
tags/1.1.2/includes/instructions-handler.php (added)
-
tags/1.1.2/includes/logging.php (added)
-
tags/1.1.2/includes/markdown-handler.php (added)
-
tags/1.1.2/includes/nonce-refresh.php (added)
-
tags/1.1.2/includes/responses-api.php (added)
-
tags/1.1.2/includes/sound-functions.php (added)
-
tags/1.1.2/includes/transcript-generator.php (added)
-
tags/1.1.2/index.php (added)
-
tags/1.1.2/js (added)
-
tags/1.1.2/js/chatbot-sound.js (added)
-
tags/1.1.2/js/howler.min.js (added)
-
tags/1.1.2/js/wpiko-chatbot.js (added)
-
tags/1.1.2/readme.txt (added)
-
tags/1.1.2/sounds (added)
-
tags/1.1.2/sounds/clear-chat-notification.mp3 (added)
-
tags/1.1.2/sounds/error-notification.mp3 (added)
-
tags/1.1.2/sounds/message-notification.mp3 (added)
-
tags/1.1.2/wpiko-chatbot.php (added)
-
trunk/admin/sections/ai-configuration-section.php (modified) (1 diff)
-
trunk/includes/sound-functions.php (modified) (1 diff)
-
trunk/js/chatbot-sound.js (modified) (2 diffs)
-
trunk/js/wpiko-chatbot.js (modified) (5 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/sounds/clear-chat-notification.mp3 (added)
-
trunk/sounds/error-notification.mp3 (added)
-
trunk/sounds/error-notification.wav (deleted)
-
trunk/sounds/message-notification.mp3 (added)
-
trunk/sounds/message-notification.wav (deleted)
-
trunk/wpiko-chatbot.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpiko-chatbot/trunk/admin/sections/ai-configuration-section.php
r3454700 r3464145 266 266 ?></textarea> 267 267 <p class="description">Edit knowledge-related system instructions for 268 your assistant only if necessary. These instructions help the AI268 your assistant. These instructions help the AI 269 269 understand how to use uploaded files and knowledge base.</p> 270 270 </td> -
wpiko-chatbot/trunk/includes/sound-functions.php
r3324106 r3464145 11 11 wp_enqueue_script('wpiko-chatbot-sound', WPIKO_CHATBOT_PLUGIN_URL . 'js/chatbot-sound.js', array('howler'), '1.0', true); 12 12 13 $sound_url = WPIKO_CHATBOT_PLUGIN_URL . 'sounds/message-notification.wav'; 14 $error_sound_url = WPIKO_CHATBOT_PLUGIN_URL . 'sounds/error-notification.wav'; 13 $sound_url = WPIKO_CHATBOT_PLUGIN_URL . 'sounds/message-notification.mp3'; 14 $error_sound_url = WPIKO_CHATBOT_PLUGIN_URL . 'sounds/error-notification.mp3'; 15 $clear_chat_sound_url = WPIKO_CHATBOT_PLUGIN_URL . 'sounds/clear-chat-notification.mp3'; 15 16 wp_localize_script('wpiko-chatbot-sound', 'wpikoChatbotSound', array( 16 17 'messageReceivedSound' => $sound_url, 17 18 'errorSound' => $error_sound_url, 19 'clearChatSound' => $clear_chat_sound_url, 18 20 )); 19 21 } -
wpiko-chatbot/trunk/js/chatbot-sound.js
r3324106 r3464145 1 document.addEventListener('DOMContentLoaded', function() { 1 document.addEventListener('DOMContentLoaded', function () { 2 /** 3 * Calibrated volume levels for consistent perceived loudness 4 * 5 * These values are tuned to balance the different audio files: 6 * - Message notification: Base reference volume (0.5) 7 * - Error notification: Reduced to match message notification level (0.35) 8 * - Clear chat notification: Reduced significantly as this file is inherently louder (0.25) 9 * 10 * Adjust these values if sounds still seem inconsistent on different devices. 11 */ 12 const VOLUME_LEVELS = { 13 message: 0.8, // Base reference - gentle notification chime 14 error: 0.6, // Error alert - calibrated to match message volume 15 clearChat: 0.9 // Clear chat confirmation - calibrated to match message volume 16 }; 17 18 // Initialize all sound instances with calibrated volumes 2 19 const messageReceivedSound = new Howl({ 3 20 src: [wpikoChatbotSound.messageReceivedSound], 4 volume: 0.5 21 volume: VOLUME_LEVELS.message, 22 preload: true 5 23 }); 6 24 7 25 const errorSound = new Howl({ 8 26 src: [wpikoChatbotSound.errorSound], 9 volume: 0.5 27 volume: VOLUME_LEVELS.error, 28 preload: true 10 29 }); 11 30 12 document.addEventListener('wpiko-chatbot-message-received', function(event) { 31 const clearChatSound = new Howl({ 32 src: [wpikoChatbotSound.clearChatSound], 33 volume: VOLUME_LEVELS.clearChat, 34 preload: true 35 }); 36 37 // Event listeners for sound triggers 38 document.addEventListener('wpiko-chatbot-message-received', function (event) { 13 39 if (event.detail.isSoundEnabled) { 14 40 messageReceivedSound.play(); … … 16 42 }); 17 43 18 document.addEventListener('wpiko-chatbot-error', function (event) {44 document.addEventListener('wpiko-chatbot-error', function (event) { 19 45 if (event.detail.isSoundEnabled) { 20 46 errorSound.play(); 21 47 } 22 48 }); 49 50 document.addEventListener('wpiko-chatbot-clear', function (event) { 51 if (event.detail.isSoundEnabled) { 52 clearChatSound.play(); 53 } 54 }); 23 55 }); -
wpiko-chatbot/trunk/js/wpiko-chatbot.js
r3454700 r3464145 223 223 // Function to clears the chat 224 224 function clearChat() { 225 // Trigger sound immediately when clear chat is confirmed 226 if (isSoundEnabled) { 227 const clearChatEvent = new CustomEvent('wpiko-chatbot-clear', { 228 detail: { isSoundEnabled: true } 229 }); 230 document.dispatchEvent(clearChatEvent); 231 } 232 225 233 messagesContainer.innerHTML = ''; 226 234 sessionStorage.removeItem('wpiko_chatbot_messages'); … … 235 243 const welcomeMessage = getWelcomeMessage(); 236 244 if (welcomeMessage) { 237 appendMessage('bot', welcomeMessage, 'general_error', true );245 appendMessage('bot', welcomeMessage, 'general_error', true, true); 238 246 } 239 247 … … 241 249 showPreMadeQuestions(); 242 250 } 251 243 252 244 253 // Clear chat button … … 574 583 575 584 // Append Message 576 function appendMessage(type, content, errorType = 'general_error', skipStoring = false ) {585 function appendMessage(type, content, errorType = 'general_error', skipStoring = false, suppressSound = false) { 577 586 if (content === null || content === '') return; 578 587 const messageElement = document.createElement('div'); … … 590 599 591 600 // Sound functionality (bot response) 592 if (isSoundEnabled ) {601 if (isSoundEnabled && !suppressSound) { 593 602 const messageReceivedEvent = new CustomEvent('wpiko-chatbot-message-received', { 594 603 detail: { isSoundEnabled: true } -
wpiko-chatbot/trunk/readme.txt
r3454700 r3464145 4 4 Requires at least: 6.0 5 5 Tested up to: 6.9 6 Stable tag: 1.1. 16 Stable tag: 1.1.2 7 7 Requires PHP: 7.0 8 8 License: GPL-2.0+ … … 123 123 == Changelog == 124 124 125 = 1.1.2 = 126 * Improve: Sound notifications 127 * Improve: Added sound preloading for faster playback response 128 125 129 = 1.1.1 = 126 130 * Feature: Add Reasoning Effort and Verbosity controls for GPT-5 models … … 193 197 == Upgrade Notice == 194 198 199 = 1.1.2 = 200 Improved sound notification system with consistent volume levels and immediate playback response. 201 195 202 = 1.1.1 = 196 203 Adds Reasoning Effort/Verbosity controls, customizable Error Messages system, and new Debug Log page for easier troubleshooting. -
wpiko-chatbot/trunk/wpiko-chatbot.php
r3454700 r3464145 4 4 * Plugin URI: https://wpiko.com/chatbot 5 5 * Description: A WordPress plugin that integrates OpenAI's AI models to create an intelligent chatbot for WordPress websites. 6 * Version: 1.1. 16 * Version: 1.1.2 7 7 * Author: WPiko 8 8 * Author URI: https://wpiko.com … … 20 20 define('WPIKO_CHATBOT_PLUGIN_DIR', plugin_dir_path(__FILE__)); 21 21 define('WPIKO_CHATBOT_PLUGIN_URL', plugin_dir_url(__FILE__)); 22 define('WPIKO_CHATBOT_VERSION', '1.1. 1');22 define('WPIKO_CHATBOT_VERSION', '1.1.2'); 23 23 24 24 // Ensures that the default options is set
Note: See TracChangeset
for help on using the changeset viewer.