--- acp/main_info.php @@ -1,9 +1,9 @@ '\canidev\chat\acp\main_module', 'title' => 'ACP_CAT_CHAT', - 'version' => '1.2.6', + 'version' => '1.2.7', 'modes' => [ 'config' => ['title' => 'ACP_CHAT_CONFIG', 'auth' => 'ext_canidev/chat && acl_a_chat', 'cat' => ['ACP_CAT_CHAT']], 'pages' => ['title' => 'ACP_CHAT_PAGES', 'auth' => 'ext_canidev/chat && acl_a_chat', 'cat' => ['ACP_CAT_CHAT']], --- acp/main_module.php @@ -1,9 +1,9 @@ 'load_language', - 'core.user_setup_after' => 'on_setup_after', + 'core.user_setup_after' => ['on_setup_after', -2], 'core.session_kill_after' => 'on_user_logout', 'core.page_footer' => 'on_footer', 'core.delete_user_after' => 'on_user_delete', --- ext.php @@ -1,9 +1,9 @@ config['chat_version']) && version_compare($this->config['chat_version'], '1.1.0', '>='); + return $this->db_tools->sql_table_exists($this->table_prefix . 'chat_messages'); } public function update_schema() --- migrations/v111.php @@ -17,7 +17,8 @@ */ public function effectively_installed() { - return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.1.1', '>='); + // "chat_version" is deprecated, migration ignored + return true; } /** --- migrations/v112.php @@ -17,7 +17,7 @@ */ public function effectively_installed() { - return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.1.2', '>='); + return $this->db_tools->sql_column_exists($this->table_prefix . 'chat_rooms', 'room_autopurge_time'); } /** @@ -72,7 +72,7 @@ if(!empty($this->config['chat_show_topics'])) { - set_config('chat_forum_posts', 1); + $this->config->set('chat_forum_posts', 1); } } } --- migrations/v113.php @@ -14,7 +14,7 @@ { public function effectively_installed() { - return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.1.3', '>='); + return $this->config->offsetExists('chat_purge_mark'); } static public function depends_on() --- migrations/v120.php @@ -13,7 +13,7 @@ { public function effectively_installed() { - return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.2.0', '>='); + return $this->db_tools->sql_column_exists($this->table_prefix . 'chat_users', 'user_groups'); } static public function depends_on() --- migrations/v121.php @@ -13,7 +13,7 @@ { public function effectively_installed() { - return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.2.1', '>='); + return $this->config->offsetExists('chat_hide_popup'); } static public function depends_on() --- migrations/v122.php @@ -13,7 +13,7 @@ { public function effectively_installed() { - return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.2.2', '>='); + return $this->config->offsetExists('chat_row_align'); } static public function depends_on() --- migrations/v123.php @@ -16,7 +16,8 @@ */ public function effectively_installed() { - return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.2.3', '>='); + // "chat_version" is deprecated, migration ignored + return true; } /** --- migrations/v124.php @@ -16,7 +16,8 @@ */ public function effectively_installed() { - return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.2.4', '>='); + // "chat_version" is deprecated, migration ignored + return true; } /** --- migrations/v125.php @@ -16,7 +16,8 @@ */ public function effectively_installed() { - return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.2.5', '>='); + // "chat_version" is deprecated, migration ignored + return true; } /** --- migrations/v126.php @@ -16,7 +16,8 @@ */ public function effectively_installed() { - return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.2.6', '>='); + // "chat_version" is deprecated, migration ignored + return true; } /** --- migrations/v127.php @@ -0,0 +1,41 @@ +config->offsetExists('chat_cron_lock') && !$this->config->offsetExists('chat_version'); + } + + /** + * {@inheritDoc} + */ + static public function depends_on() + { + return [ + '\canidev\chat\migrations\v126', + ]; + } + + /** + * {@inheritDoc} + */ + public function update_data() + { + return [ + ['config.remove', ['chat_version']], + ]; + } +} --- styles/all/theme/chat.css @@ -1,7 +1,7 @@ /* cBB Chat StyleSheet -------------------------------------------------------------- Style: All - Copyright (c) 2024 CaniDev ( https://www.canidev.com ) + Copyright (c) 2025 CaniDev ( https://www.canidev.com ) -------------------------------------------------------------- */ @@ -502,23 +502,21 @@ } .chat-editor-counter { + display: flex; top: 5px; position: absolute; right: 5px; } .chat-editor-counter > svg { - margin-bottom: -4px; overflow: visible; transform: rotate(-90deg); } .chat-editor-counter > span { color: #e0245e; - font-size: 9px; + font-size: 0.8em; margin: 5px 2px 0 0; - display: inline-block; - vertical-align: top; } .chat-editor-counter .safe { @@ -665,7 +663,6 @@ .chat-message, .chat-tip-message { - font-size: 11px; margin: 5px 0; } @@ -815,6 +812,11 @@ padding-right: 5px; } +.rtl #chat-message textarea, +.rtl .ic-edit-container textarea { + border: none; +} + .rtl .chat-editor-counter, .rtl .chat-submit-btn { left: 5px;