Plugin Directory

Changeset 3479990


Ignore:
Timestamp:
03/11/2026 11:10:26 AM (3 weeks ago)
Author:
wpiko
Message:

1.1.4

  • Feature: Added a new advanced option to customize the background color of the Chatbot Floating Text.
  • Feature: Added support for the OpenAI models GPT-5.3 Chat and GPT-5.4 in AI Configuration.
Location:
wpiko-chatbot
Files:
72 added
9 edited

Legend:

Unmodified
Added
Removed
  • wpiko-chatbot/trunk/admin/js/models-info.js

    r3454700 r3479990  
    1010    // Model information data based on provided table
    1111    const modelsData = {
     12        'gpt-5.4': {
     13            displayName: 'GPT-5.4',
     14            description: 'Most capable frontier model for agentic, coding, and professional workflows',
     15            reasoning: 5,
     16            intelligence: null,
     17            speed: 3,
     18            contextWindow: '1,050,000',
     19            maxOutputTokens: '128,000',
     20            cost: 'Ultra premium',
     21            badge: 'Latest'
     22        },
    1223        'gpt-5.2': {
    1324            displayName: 'GPT-5.2',
     
    1526            reasoning: 4,
    1627            intelligence: null,
    17             speed: 4,
     28            speed: 3,
    1829            contextWindow: '400,000',
    1930            maxOutputTokens: '128,000',
    2031            cost: 'Premium flagship +',
    21             badge: 'Latest'
     32            badge: 'Flagship'
    2233        },
    2334        'gpt-5.2-chat-latest': {
     
    3243            badge: 'Best Chat'
    3344        },
     45        'gpt-5.3-chat-latest': {
     46            displayName: 'GPT-5.3 Chat',
     47            description: 'GPT-5.3 chat model used in ChatGPT-style conversations',
     48            reasoning: null,
     49            intelligence: 3,
     50            speed: 3,
     51            contextWindow: '128,000',
     52            maxOutputTokens: '16,384',
     53            cost: 'Premium flagship +',
     54            badge: 'Latest Chat'
     55        },
    3456        'gpt-5.1': {
    3557            displayName: 'GPT-5.1',
     
    3759            reasoning: 4,
    3860            intelligence: null,
    39             speed: 4,
     61            speed: 3,
    4062            contextWindow: '400,000',
    4163            maxOutputTokens: '128,000',
  • wpiko-chatbot/trunk/admin/sections/ai-configuration-section.php

    r3464145 r3479990  
    6666                                                'gpt-5.1-chat-latest' => 'GPT-5.1 Chat',
    6767                                                'gpt-5.2' => 'GPT-5.2',
    68                                                 'gpt-5.2-chat-latest' => 'GPT-5.2 Chat'
     68                                                'gpt-5.2-chat-latest' => 'GPT-5.2 Chat',
     69                                                'gpt-5.3-chat-latest' => 'GPT-5.3 Chat',
     70                                                'gpt-5.4' => 'GPT-5.4'
    6971                                            );
    7072                                            foreach ($available_models as $model_value => $model_label) {
     
    439441                'gpt-5-nano': { efforts: ['minimal', 'low', 'medium', 'high'], defaultEffort: 'medium' },
    440442                'gpt-5.1': { efforts: ['none', 'low', 'medium', 'high'], defaultEffort: 'none' },
    441                 'gpt-5.2': { efforts: ['none', 'low', 'medium', 'high', 'xhigh'], defaultEffort: 'none' }
     443                'gpt-5.2': { efforts: ['none', 'low', 'medium', 'high', 'xhigh'], defaultEffort: 'none' },
     444                'gpt-5.4': { efforts: ['none', 'low', 'medium', 'high', 'xhigh'], defaultEffort: 'none' }
    442445            };
    443446
  • wpiko-chatbot/trunk/admin/sections/chatbot-style-section.php

    r3454700 r3479990  
    2626        update_option('wpiko_chatbot_icon_color', isset($_POST['icon_color']) ? sanitize_hex_color(wp_unslash($_POST['icon_color'])) : '');
    2727        update_option('wpiko_chatbot_input_background_color', isset($_POST['input_background_color']) ? sanitize_hex_color(wp_unslash($_POST['input_background_color'])) : '');
     28        update_option('wpiko_chatbot_floating_text_bg_color', isset($_POST['floating_text_bg_color']) ? sanitize_hex_color(wp_unslash($_POST['floating_text_bg_color'])) : '');
    2829
    2930        // Save the user message border setting
     
    4546        update_option('wpiko_chatbot_icon_color', '#707070');
    4647        update_option('wpiko_chatbot_input_background_color', '#fbfbfb');
     48        update_option('wpiko_chatbot_floating_text_bg_color', '#ffffff');
    4749        update_option('wpiko_chatbot_show_user_border', '1');
    4850
     
    6769    $icon_color = get_option('wpiko_chatbot_icon_color', '#707070');
    6870    $input_background_color = get_option('wpiko_chatbot_input_background_color', '#fbfbfb');
     71    $floating_text_bg_color = get_option('wpiko_chatbot_floating_text_bg_color', '#ffffff');
    6972    $show_user_border = get_option('wpiko_chatbot_show_user_border', '1');
    7073    ?>
     
    252255                    </tr>
    253256
     257                    <tr valign="top">
     258                        <th scope="row"><label for="floating_text_bg_color">Floating Text Background Color</label></th>
     259                        <td>
     260                            <input type="color" name="floating_text_bg_color" id="floating_text_bg_color"
     261                                value="<?php echo esc_attr($floating_text_bg_color); ?>">
     262                            <p class="description">Choose the background color for the floating chatbot text.</p>
     263                        </td>
     264                    </tr>
     265
    254266                </table>
    255267            </div>
  • wpiko-chatbot/trunk/chatbot-interface.php

    r3468718 r3479990  
    3838    $icon_color = get_option('wpiko_chatbot_icon_color', '#707070');
    3939    $input_background_color = get_option('wpiko_chatbot_input_background_color', '#fbfbfb');
     40    $floating_text_bg_color = get_option('wpiko_chatbot_floating_text_bg_color', '#ffffff');
    4041    $questions = get_option('wpiko_chatbot_questions', array());
    4142    $has_questions = !empty($questions);
     
    7172        --icon-color: ' . esc_attr($icon_color) . ';
    7273        --input-background-color: ' . esc_attr($input_background_color) . ';
     74        --floating-text-bg-color: ' . esc_attr($floating_text_bg_color) . ';
    7375       
    7476        --chatbot-width: ' . esc_attr($chatbot_width) . 'px;
     
    139141                    <ul>
    140142                        <li id="clear-chat">
    141                             <span class="menu-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/></svg></span>
    142                             <span class="menu-text"><?php echo esc_html(get_option('wpiko_chatbot_menu_clear_chat', 'Clear Chat')); ?></span>
     143                            <span class="menu-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
     144                                    stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
     145                                    <path d="M3 6h18" />
     146                                    <path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" />
     147                                    <path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" />
     148                                </svg></span>
     149                            <span
     150                                class="menu-text"><?php echo esc_html(get_option('wpiko_chatbot_menu_clear_chat', 'Clear Chat')); ?></span>
    143151                        </li>
    144152                        <?php
     
    151159                                <span class="sound-on">
    152160                                    <span class="menu-item-content">
    153                                         <span class="menu-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"/><line x1="23" y1="9" x2="17" y2="15"/><line x1="17" y1="9" x2="23" y2="15"/></svg></span>
    154                                         <span class="menu-text"><?php echo esc_html(get_option('wpiko_chatbot_menu_sound_off', 'Turn Sound Off')); ?></span>
     161                                        <span class="menu-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
     162                                                fill="none" stroke="currentColor" stroke-linecap="round"
     163                                                stroke-linejoin="round">
     164                                                <polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5" />
     165                                                <line x1="23" y1="9" x2="17" y2="15" />
     166                                                <line x1="17" y1="9" x2="23" y2="15" />
     167                                            </svg></span>
     168                                        <span
     169                                            class="menu-text"><?php echo esc_html(get_option('wpiko_chatbot_menu_sound_off', 'Turn Sound Off')); ?></span>
    155170                                    </span>
    156171                                </span>
    157172                                <span class="sound-off" style="display: none;">
    158173                                    <span class="menu-item-content">
    159                                         <span class="menu-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"/><path d="M19.07 4.93a10 10 0 0 1 0 14.14"/><path d="M15.54 8.46a5 5 0 0 1 0 7.07"/></svg></span>
    160                                         <span class="menu-text"><?php echo esc_html(get_option('wpiko_chatbot_menu_sound_on', 'Turn Sound On')); ?></span>
     174                                        <span class="menu-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
     175                                                fill="none" stroke="currentColor" stroke-linecap="round"
     176                                                stroke-linejoin="round">
     177                                                <polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5" />
     178                                                <path d="M19.07 4.93a10 10 0 0 1 0 14.14" />
     179                                                <path d="M15.54 8.46a5 5 0 0 1 0 7.07" />
     180                                            </svg></span>
     181                                        <span
     182                                            class="menu-text"><?php echo esc_html(get_option('wpiko_chatbot_menu_sound_on', 'Turn Sound On')); ?></span>
    161183                                    </span>
    162184                                </span>
     
    166188                        <?php if (get_option('wpiko_chatbot_enable_transcript_download', '1') === '1'): ?>
    167189                            <li id="download-transcript">
    168                                 <span class="menu-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg></span>
    169                                 <span class="menu-text"><?php echo esc_html(get_option('wpiko_chatbot_menu_download_transcript', 'Download Transcript')); ?></span>
     190                                <span class="menu-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
     191                                        stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
     192                                        <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
     193                                        <polyline points="7 10 12 15 17 10" />
     194                                        <line x1="12" y1="15" x2="12" y2="3" />
     195                                    </svg></span>
     196                                <span
     197                                    class="menu-text"><?php echo esc_html(get_option('wpiko_chatbot_menu_download_transcript', 'Download Transcript')); ?></span>
    170198                            </li>
    171199                        <?php endif; ?>
  • wpiko-chatbot/trunk/css/wpiko-chatbot.css

    r3468718 r3479990  
    663663
    664664#wpiko-chatbot-floating-text {
    665     background-color: var(--chatbot-background-color);
     665    background-color: var(--floating-text-bg-color);
    666666    color: var(--chatbot-name-color);
    667667    padding: 8px 12px;
  • wpiko-chatbot/trunk/includes/cache-management.php

    r3468718 r3479990  
    5656            'wpiko_chatbot_icon_color',
    5757            'wpiko_chatbot_input_background_color',
     58            'wpiko_chatbot_floating_text_bg_color',
    5859            'wpiko_chatbot_show_user_border',
    5960
  • wpiko-chatbot/trunk/includes/responses-api.php

    r3454700 r3479990  
    2525        // GPT-5.2 family
    2626        'gpt-5.2',
    27         'gpt-5.2-chat-latest'
     27        'gpt-5.2-chat-latest',
     28        // GPT-5.3 family
     29        'gpt-5.3-chat-latest',
     30        // GPT-5.4 family
     31        'gpt-5.4'
    2832    );
    2933    if (in_array($model, $supports, true)) {
     
    3135    }
    3236    // Heuristic: most modern 4.1/5-series variants support tools
    33     if (preg_match('/^(gpt-4\.1|gpt-5|gpt-5\.1|gpt-5\.2)/', $model)) {
     37    if (preg_match('/^(gpt-4\.1|gpt-5|gpt-5\.1|gpt-5\.2|gpt-5\.4)/', $model)) {
    3438        return true;
    3539    }
     
    6771        function wpiko_chatbot_get_responses_api_models()
    6872        {
    69             return array('gpt-4.1' => 'GPT-4.1', 'gpt-4.1-mini' => 'GPT-4.1 Mini', 'gpt-4.1-nano' => 'GPT-4.1 Nano', 'gpt-5' => 'GPT-5', 'gpt-5-mini' => 'GPT-5 Mini', 'gpt-5-nano' => 'GPT-5 Nano', 'gpt-5.1' => 'GPT-5.1', 'gpt-5.1-chat-latest' => 'GPT-5.1 Chat', 'gpt-5.2' => 'GPT-5.2', 'gpt-5.2-chat-latest' => 'GPT-5.2 Chat');
     73            return array('gpt-4.1' => 'GPT-4.1', 'gpt-4.1-mini' => 'GPT-4.1 Mini', 'gpt-4.1-nano' => 'GPT-4.1 Nano', 'gpt-5' => 'GPT-5', 'gpt-5-mini' => 'GPT-5 Mini', 'gpt-5-nano' => 'GPT-5 Nano', 'gpt-5.1' => 'GPT-5.1', 'gpt-5.1-chat-latest' => 'GPT-5.1 Chat', 'gpt-5.2' => 'GPT-5.2', 'gpt-5.2-chat-latest' => 'GPT-5.2 Chat', 'gpt-5.3-chat-latest' => 'GPT-5.3 Chat', 'gpt-5.4' => 'GPT-5.4');
    7074        }
    7175    }
     
    117121        // Optional knob per latest guidance
    118122        // Exclude specific models that do not support reasoning/verbosity controls
    119         $no_reasoning_models = array('gpt-5.1-chat-latest', 'gpt-5.2-chat-latest');
     123        $no_reasoning_models = array('gpt-5.1-chat-latest', 'gpt-5.2-chat-latest', 'gpt-5.3-chat-latest');
    120124
    121125        if (!in_array($model, $no_reasoning_models, true)) {
     
    128132                'gpt-5-nano' => array('allowed' => array('minimal', 'low', 'medium', 'high'), 'default' => 'medium'),
    129133                'gpt-5.1' => array('allowed' => array('none', 'low', 'medium', 'high'), 'default' => 'none'),
    130                 'gpt-5.2' => array('allowed' => array('none', 'low', 'medium', 'high', 'high', 'xhigh'), 'default' => 'none')
     134                'gpt-5.2' => array('allowed' => array('none', 'low', 'medium', 'high', 'xhigh'), 'default' => 'none'),
     135                'gpt-5.4' => array('allowed' => array('none', 'low', 'medium', 'high', 'xhigh'), 'default' => 'none')
    131136            );
    132137
     
    510515        'gpt-5.1-chat-latest' => 'GPT-5.1 Chat',
    511516        'gpt-5.2' => 'GPT-5.2',
    512         'gpt-5.2-chat-latest' => 'GPT-5.2 Chat'
     517        'gpt-5.2-chat-latest' => 'GPT-5.2 Chat',
     518        'gpt-5.3-chat-latest' => 'GPT-5.3 Chat',
     519        'gpt-5.4' => 'GPT-5.4'
    513520    );
    514521}
     
    583590    if (!$model || !is_string($model))
    584591        return false;
    585     $fixed = array('gpt-5', 'gpt-5-mini', 'gpt-5-nano', 'gpt-5.1', 'gpt-5.1-chat-latest', 'gpt-5.2', 'gpt-5.2-chat-latest');
     592    $fixed = array('gpt-5', 'gpt-5-mini', 'gpt-5-nano', 'gpt-5.1', 'gpt-5.1-chat-latest', 'gpt-5.2', 'gpt-5.2-chat-latest', 'gpt-5.3-chat-latest', 'gpt-5.4');
    586593    if (in_array($model, $fixed, true))
    587594        return true;
  • wpiko-chatbot/trunk/readme.txt

    r3468718 r3479990  
    44Requires at least: 6.0
    55Tested up to: 6.9
    6 Stable tag: 1.1.3
     6Stable tag: 1.1.4
    77Requires PHP: 7.0
    88License: GPL-2.0+
     
    123123== Changelog ==
    124124
     125= 1.1.4 =
     126* Feature: Added a new advanced option to customize the background color of the Chatbot Floating Text.
     127* Feature: Added support for the OpenAI models GPT-5.3 Chat and GPT-5.4 in AI Configuration.
     128
    125129= 1.1.3 =
    126130* Fix: Shortcode chatbot overlap issue (Z-index fix)
     
    201205== Upgrade Notice ==
    202206
     207= 1.1.4 =
     208Added floating chatbot text background color styling and support for the GPT-5.3 Chat model.
     209
    203210= 1.1.2 =
    204211Improved sound notification system with consistent volume levels and immediate playback response.
  • wpiko-chatbot/trunk/wpiko-chatbot.php

    r3468718 r3479990  
    44 * Plugin URI: https://wpiko.com/chatbot
    55 * Description: A WordPress plugin that integrates OpenAI's AI models to create an intelligent chatbot for WordPress websites.
    6  * Version: 1.1.3
     6 * Version: 1.1.4
    77 * Author: WPiko
    88 * Author URI: https://wpiko.com
     
    2020define('WPIKO_CHATBOT_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2121define('WPIKO_CHATBOT_PLUGIN_URL', plugin_dir_url(__FILE__));
    22 define('WPIKO_CHATBOT_VERSION', '1.1.3');
     22define('WPIKO_CHATBOT_VERSION', '1.1.4');
    2323
    2424// Ensures that the default options is set
     
    253253    // This error is managed in Pro's Contact Form Settings, with a fallback default
    254254    $localized_errors['upload_error'] = get_option(
    255         'wpiko_chatbot_contact_upload_error', 
     255        'wpiko_chatbot_contact_upload_error',
    256256        __('There was a problem with your file upload. Please ensure it is a valid image (JPG, PNG, GIF) under 3MB.', 'wpiko-chatbot')
    257257    );
Note: See TracChangeset for help on using the changeset viewer.