Change list :: cBB Chat v1.2.7

Changes in Javascript files and external plugins are not included here.

acp/main_info.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
@@ -16,7 +16,7 @@
16
16
return [
17
17
'filename' => '\canidev\chat\acp\main_module',
18
18
'title' => 'ACP_CAT_CHAT',
19
'version' => '1.2.6',
19
'version' => '1.2.7',
20
20
'modes' => [
21
21
'config' => ['title' => 'ACP_CHAT_CONFIG',  'auth' => 'ext_canidev/chat && acl_a_chat', 'cat' => ['ACP_CAT_CHAT']],
22
22
'pages' => ['title' => 'ACP_CHAT_PAGES',  'auth' => 'ext_canidev/chat && acl_a_chat', 'cat' => ['ACP_CAT_CHAT']],
acp/main_module.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
adm/style/acp.css
@@ -1,7 +1,7 @@
1
1
/*  cBB Chat StyleSheet
2
2
    --------------------------------------------------------------
3
3
Style: Admin
4
Copyright (c) 2024 CaniDev ( https://www.canidev.com )
4
Copyright (c) 2025 CaniDev ( https://www.canidev.com )
5
5
    --------------------------------------------------------------
6
6
*/
7
7
composer.json
@@ -3,7 +3,7 @@
3
3
"type": "phpbb-extension",
4
4
"description": "",
5
5
"homepage": "https://www.canidev.com",
6
"version": "1.2.6",
6
"version": "1.2.7",
7
7
"keywords": ["phpbb", "extension", "canidev", "chat"],
8
8
"license": "CreativeCommons Attribution-NonCommercial v4.0",
9
9
"authors": [
controller/admin_controller_base.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
controller/admin_controller_config.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
controller/admin_controller_pages.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
controller/admin_controller_rooms.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
@@ -84,7 +84,7 @@
84
84
85
85
$room_auth = @unserialize($room_data['room_data']);
86
86
87
$room_data['room_groups']  = $room_auth['groups'];
87
$room_data['room_groups']  = empty($room_auth['groups']) ? '' : $room_auth['groups'];
88
88
$room_data['room_users'] = (empty($room_auth['users']) ? '' : implode("\n", $room_auth['users']));
89
89
$room_data['linked_forums'] = (empty($room_auth['linked_forums']) ? [] : $room_auth['linked_forums']);
90
90
$room_data['linked_groups'] = (empty($room_auth['linked_groups']) ? [] : $room_auth['linked_groups']);
controller/admin_controller_texts.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
controller/main_controller.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
controller/mcp_controller_config.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
cron/prune.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
event/listener.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
@@ -47,7 +47,7 @@
47
47
{
48
48
return [
49
49
'core.user_setup' => 'load_language',
50
'core.user_setup_after' => 'on_setup_after',
50
'core.user_setup_after' => ['on_setup_after', -2],
51
51
'core.session_kill_after' => 'on_user_logout',
52
52
'core.page_footer' => 'on_footer',
53
53
'core.delete_user_after' => 'on_user_delete',
ext.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
@@ -12,7 +12,7 @@
12
12
class ext extends \phpbb\extension\base
13
13
{
14
14
const REQUIRED_PHPBB = '3.2.0';
15
const REQUIRED_CORE = '1.1.6';
15
const REQUIRED_CORE = '1.1.10';
16
16
17
17
/**
18
18
 * {@inheritDoc}
language/en/acp.php
@@ -2,9 +2,9 @@
2
2
/**
3
3
 * [English [En]]
4
4
 * @package cBB Chat
5
 * @version 1.2.6 01/07/2024
5
 * @version 1.2.7 07/03/2025
6
6
 *
7
 * @copyright (c) 2024 CaniDev
7
 * @copyright (c) 2025 CaniDev
8
8
 * @license https://creativecommons.org/licenses/by-nc/4.0/
9
9
 */
10
10
language/en/info_acp_chat.php
@@ -2,9 +2,9 @@
2
2
/**
3
3
 * [English [En]]
4
4
 * @package cBB Chat
5
 * @version 1.2.6 01/07/2024
5
 * @version 1.2.7 07/03/2025
6
6
 *
7
 * @copyright (c) 2024 CaniDev
7
 * @copyright (c) 2025 CaniDev
8
8
 * @license https://creativecommons.org/licenses/by-nc/4.0/
9
9
 */
10
10
language/en/info_mcp_chat.php
@@ -2,9 +2,9 @@
2
2
/**
3
3
 * [English [En]]
4
4
 * @package cBB Chat
5
 * @version 1.2.6 01/07/2024
5
 * @version 1.2.7 07/03/2025
6
6
 *
7
 * @copyright (c) 2024 CaniDev
7
 * @copyright (c) 2025 CaniDev
8
8
 * @license https://creativecommons.org/licenses/by-nc/4.0/
9
9
 */
10
10
language/en/main.php
@@ -2,9 +2,9 @@
2
2
/**
3
3
 * [English [En]]
4
4
 * @package cBB Chat
5
 * @version 1.2.6 01/07/2024
5
 * @version 1.2.7 07/03/2025
6
6
 *
7
 * @copyright (c) 2024 CaniDev
7
 * @copyright (c) 2025 CaniDev
8
8
 * @license https://creativecommons.org/licenses/by-nc/4.0/
9
9
 */
10
10
language/en/permissions_chat.php
@@ -2,9 +2,9 @@
2
2
/**
3
3
 * [English [En]]
4
4
 * @package cBB Chat
5
 * @version 1.2.6 01/07/2024
5
 * @version 1.2.7 07/03/2025
6
6
 *
7
 * @copyright (c) 2024 CaniDev
7
 * @copyright (c) 2025 CaniDev
8
8
 * @license https://creativecommons.org/licenses/by-nc/4.0/
9
9
 */
10
10
language/es/acp.php
@@ -2,9 +2,9 @@
2
2
/**
3
3
 * [Spanish [Es]]
4
4
 * @package cBB Chat
5
 * @version 1.2.6 01/07/2024
5
 * @version 1.2.7 07/03/2025
6
6
 *
7
 * @copyright (c) 2024 CaniDev
7
 * @copyright (c) 2025 CaniDev
8
8
 * @license https://creativecommons.org/licenses/by-nc/4.0/
9
9
 */
10
10
language/es/info_acp_chat.php
@@ -2,9 +2,9 @@
2
2
/**
3
3
 * [Spanish [Es]]
4
4
 * @package cBB Chat
5
 * @version 1.2.6 01/07/2024
5
 * @version 1.2.7 07/03/2025
6
6
 *
7
 * @copyright (c) 2024 CaniDev
7
 * @copyright (c) 2025 CaniDev
8
8
 * @license https://creativecommons.org/licenses/by-nc/4.0/
9
9
 */
10
10
language/es/info_mcp_chat.php
@@ -2,9 +2,9 @@
2
2
/**
3
3
 * [Spanish [Es]]
4
4
 * @package cBB Chat
5
 * @version 1.2.6 01/07/2024
5
 * @version 1.2.7 07/03/2025
6
6
 *
7
 * @copyright (c) 2024 CaniDev
7
 * @copyright (c) 2025 CaniDev
8
8
 * @license https://creativecommons.org/licenses/by-nc/4.0/
9
9
 */
10
10
language/es/main.php
@@ -2,9 +2,9 @@
2
2
/**
3
3
 * [Spanish [Es]]
4
4
 * @package cBB Chat
5
 * @version 1.2.6 01/07/2024
5
 * @version 1.2.7 07/03/2025
6
6
 *
7
 * @copyright (c) 2024 CaniDev
7
 * @copyright (c) 2025 CaniDev
8
8
 * @license https://creativecommons.org/licenses/by-nc/4.0/
9
9
 */
10
10
language/es/permissions_chat.php
@@ -2,9 +2,9 @@
2
2
/**
3
3
 * [Spanish [Es]]
4
4
 * @package cBB Chat
5
 * @version 1.2.6 01/07/2024
5
 * @version 1.2.7 07/03/2025
6
6
 *
7
 * @copyright (c) 2024 CaniDev
7
 * @copyright (c) 2025 CaniDev
8
8
 * @license https://creativecommons.org/licenses/by-nc/4.0/
9
9
 */
10
10
libraries/action_manager.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
libraries/chat.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
libraries/constants.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
mcp/main_info.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
mcp/main_module.php
@@ -1,9 +1,9 @@
1
1
<?php
2
2
/**
3
3
 * @package cBB Chat
4
 * @version 1.2.6 01/07/2024
4
 * @version 1.2.7 07/03/2025
5
5
 *
6
 * @copyright (c) 2024 CaniDev
6
 * @copyright (c) 2025 CaniDev
7
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
8
 */
9
9
migrations/v110.php
@@ -14,7 +14,7 @@
14
14
{
15
15
public function effectively_installed()
16
16
{
17
return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.1.0', '>=');
17
return $this->db_tools->sql_table_exists($this->table_prefix . 'chat_messages');
18
18
}
19
19
20
20
public function update_schema()
migrations/v111.php
@@ -17,7 +17,8 @@
17
17
 */
18
18
public function effectively_installed()
19
19
{
20
return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.1.1', '>=');
20
// "chat_version" is deprecated, migration ignored
21
return true;
21
22
}
22
23
23
24
/**
migrations/v112.php
@@ -17,7 +17,7 @@
17
17
 */
18
18
public function effectively_installed()
19
19
{
20
return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.1.2', '>=');
20
return $this->db_tools->sql_column_exists($this->table_prefix . 'chat_rooms', 'room_autopurge_time');
21
21
}
22
22
23
23
/**
@@ -72,7 +72,7 @@
72
72
73
73
if(!empty($this->config['chat_show_topics']))
74
74
{
75
set_config('chat_forum_posts', 1);
75
$this->config->set('chat_forum_posts', 1);
76
76
}
77
77
}
78
78
}
migrations/v113.php
@@ -14,7 +14,7 @@
14
14
{
15
15
public function effectively_installed()
16
16
{
17
return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.1.3', '>=');
17
return $this->config->offsetExists('chat_purge_mark');
18
18
}
19
19
20
20
static public function depends_on()
migrations/v120.php
@@ -13,7 +13,7 @@
13
13
{
14
14
public function effectively_installed()
15
15
{
16
return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.2.0', '>=');
16
return $this->db_tools->sql_column_exists($this->table_prefix . 'chat_users', 'user_groups');
17
17
}
18
18
19
19
static public function depends_on()
migrations/v121.php
@@ -13,7 +13,7 @@
13
13
{
14
14
public function effectively_installed()
15
15
{
16
return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.2.1', '>=');
16
return $this->config->offsetExists('chat_hide_popup');
17
17
}
18
18
19
19
static public function depends_on()
migrations/v122.php
@@ -13,7 +13,7 @@
13
13
{
14
14
public function effectively_installed()
15
15
{
16
return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.2.2', '>=');
16
return $this->config->offsetExists('chat_row_align');
17
17
}
18
18
19
19
static public function depends_on()
migrations/v123.php
@@ -16,7 +16,8 @@
16
16
 */
17
17
public function effectively_installed()
18
18
{
19
return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.2.3', '>=');
19
// "chat_version" is deprecated, migration ignored
20
return true;
20
21
}
21
22
22
23
/**
migrations/v124.php
@@ -16,7 +16,8 @@
16
16
 */
17
17
public function effectively_installed()
18
18
{
19
return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.2.4', '>=');
19
// "chat_version" is deprecated, migration ignored
20
return true;
20
21
}
21
22
22
23
/**
migrations/v125.php
@@ -16,7 +16,8 @@
16
16
 */
17
17
public function effectively_installed()
18
18
{
19
return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.2.5', '>=');
19
// "chat_version" is deprecated, migration ignored
20
return true;
20
21
}
21
22
22
23
/**
migrations/v126.php
@@ -16,7 +16,8 @@
16
16
 */
17
17
public function effectively_installed()
18
18
{
19
return isset($this->config['chat_version']) && version_compare($this->config['chat_version'], '1.2.6', '>=');
19
// "chat_version" is deprecated, migration ignored
20
return true;
20
21
}
21
22
22
23
/**
migrations/v127.php
@@ -0,0 +1,41 @@
1
<?php
2
/**
3
 * @package cBB Chat
4
 * @version 1.2.7 07/03/2025
5
 *
6
 * @copyright (c) 2025 CaniDev
7
 * @license https://creativecommons.org/licenses/by-nc/4.0/
8
 */
9
10
namespace canidev\chat\migrations;
11
12
class v127 extends \phpbb\db\migration\migration
13
{
14
/**
15
 * {@inheritDoc}
16
 */
17
public function effectively_installed()
18
{
19
return $this->config->offsetExists('chat_cron_lock') && !$this->config->offsetExists('chat_version');
20
}
21
22
/**
23
 * {@inheritDoc}
24
 */
25
static public function depends_on()
26
{
27
return [
28
'\canidev\chat\migrations\v126',
29
];
30
}
31
32
/**
33
 * {@inheritDoc}
34
 */
35
public function update_data()
36
{
37
return [
38
['config.remove', ['chat_version']],
39
];
40
}
41
}
styles/all/theme/chat.css
@@ -1,7 +1,7 @@
1
1
/*  cBB Chat StyleSheet
2
2
    --------------------------------------------------------------
3
3
Style: All
4
Copyright (c) 2024 CaniDev ( https://www.canidev.com )
4
Copyright (c) 2025 CaniDev ( https://www.canidev.com )
5
5
    --------------------------------------------------------------
6
6
*/
7
7
@@ -502,23 +502,21 @@
502
502
}
503
503
504
504
.chat-editor-counter {
505
display: flex;
505
506
top: 5px;
506
507
position: absolute;
507
508
right: 5px;
508
509
}
509
510
510
511
.chat-editor-counter > svg {
511
margin-bottom: -4px;
512
512
overflow: visible;
513
513
transform: rotate(-90deg);
514
514
}
515
515
516
516
.chat-editor-counter > span {
517
517
color: #e0245e;
518
font-size: 9px;
518
font-size: 0.8em;
519
519
margin: 5px 2px 0 0;
520
display: inline-block;
521
    vertical-align: top;
522
520
}
523
521
524
522
.chat-editor-counter .safe {
@@ -665,7 +663,6 @@
665
663
666
664
.chat-message,
667
665
.chat-tip-message {
668
font-size: 11px;
669
666
margin: 5px 0;
670
667
}
671
668
@@ -815,6 +812,11 @@
815
812
padding-right: 5px;
816
813
}
817
814
815
.rtl #chat-message textarea,
816
.rtl .ic-edit-container textarea {
817
border: none;
818
}
819
818
820
.rtl .chat-editor-counter,
819
821
.rtl .chat-submit-btn {
820
822
left: 5px;