Plugin Directory

Changeset 3359336


Ignore:
Timestamp:
09/10/2025 05:12:20 PM (7 months ago)
Author:
alphainterface
Message:

Removed apiurl

Location:
chat-bot-alpha-interface/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chat-bot-alpha-interface/trunk/chat-bot-alpha_interface.php

    r3356143 r3359336  
    44 * Plugin URI: https://www.npmjs.com/package/alpha-interface
    55 * Description: Embeds the Alpha Interface chatbot into your site using a custom web component.
    6  * Version: 2.0.3
     6 * Version: 2.0.4
    77 * Author: alphainterface
    88 * Author URI: https://alphainterface.ai
     
    2222    wp_register_script(
    2323        'ai-chatbot-module',
    24         'https://cdn.jsdelivr.net/npm/alpha-interface@1.0.1/dist/hash-bot/hash-bot.esm.js',
     24        'https://cdn.jsdelivr.net/npm/alpha-interface@1.0.2/dist/hash-bot/hash-bot.esm.js',
    2525        [],
    2626        null,
     
    4444function ai_chatbot_render() {
    4545    $options = get_option( 'ai_chatbot_settings', [] );
    46 
    47     $apiurl        = esc_attr( $options['apiurl'] ?? '' );
     46    $bot_name = esc_attr( $options['bot_name'] ?? 'Chat Bot' );
    4847    $agent_uuid    = esc_attr( $options['agent_uuid'] ?? '' );
    4948    $welcome_message = esc_attr( $options['welcome_message'] ?? '' );
    50     $bot_name = esc_attr( $options['bot_name'] ?? 'Chat Bot' );
    5149    $iconsize      = esc_attr( $options['iconsize'] ?? '70' );
    5250    $chatbotwidth  = esc_attr( $options['chatbotwidth'] ?? '300' );
     
    5452
    5553    echo '<hash-bot
     54            bot_name="' . $bot_name . '"
    5655            agent_uuid="'. $agent_uuid . '"
    57             apiurl="' . $apiurl . '"
    5856            welcome_message="' . $welcome_message . '"
    59             bot_name="' . $bot_name . '"
    6057            iconsize="' . $iconsize . '"
    6158            chatbotwidth="' . $chatbotwidth . '"
     
    114111            <table class="form-table" role="presentation">
    115112                <tr>
    116                     <th scope="row">API URL</th>
    117                     <td><input type="text" name="ai_chatbot_settings[apiurl]" value="<?php echo esc_attr( $options['apiurl'] ?? '' ); ?>" class="regular-text" /></td>
     113                    <th scope="row">Bot Name</th>
     114                    <td><input type="text" name="ai_chatbot_settings[bot_name]" value="<?php echo esc_attr( $options['bot_name'] ?? '' ); ?>" class="regular-text" /></td>
    118115                </tr>
    119116                <tr>
     
    123120                <tr>
    124121                    <th scope="row">Welcome Message</th>
    125                     <td><input type="text" name="ai_chatbot_settings[welcome_message]" value="<?php echo esc_attr( $options['welcome_message'] ?? "Hi! \n I'm an AI assistant trained on documentation, help articles, and other content. \n \n Ask me anything!" ); ?>" class="regular-text" /></td>
    126                 </tr>
    127                 <tr>
    128                     <th scope="row">Bot Name</th>
    129                     <td><input type="text" name="ai_chatbot_settings[bot_name]" value="<?php echo esc_attr( $options['bot_name'] ?? '' ); ?>" class="regular-text" /></td>
     122                    <td><input type="text" name="ai_chatbot_settings[welcome_message]" value="<?php echo esc_attr( $options['welcome_message'] ?? "Hi. Ask me anything!" ); ?>" class="regular-text" /></td>
    130123                </tr>
    131124                <tr>
  • chat-bot-alpha-interface/trunk/readme.txt

    r3356143 r3359336  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 2.0.3
     6Stable tag: 2.0.4
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1616
    1717* Agent UUID
    18 * API URL
    1918* Chat ID
    2019* Icon Size
     
    3029
    3130== Changelog ==
    32 = 2.0.3 =
    33 * UI change, Chatbot name, Welcome message, FAQ
     31= 2.0.4 =
     32* Removed API Url
    3433
    3534== Source Code ==
Note: See TracChangeset for help on using the changeset viewer.