diff --git a/lang/en/chat.php b/lang/en/chat.php
index 47ce645a5ac..39222eb7f6c 100644
--- a/lang/en/chat.php
+++ b/lang/en/chat.php
@@ -9,9 +9,11 @@ $string['beep'] = "beep";
$string['chatintro'] = "Introduction text";
$string['chatname'] = "Name of this chat room";
$string['chatreport'] = "Chat sessions";
+$string['chattime'] = "Next chat time";
$string['currentchats'] = "Active chat sessions";
$string['currentusers'] = "Current users";
-$string['enterchat'] = "Click here to enter the chat";
+$string['donotusechattime'] = "Don't publish any chat times";
+$string['enterchat'] = "Click here to enter the chat now";
$string['errornousers'] = "Could not find any users!";
$string['idle'] = "Idle";
$string['messagebeepseveryone'] = "\$a beeps everyone!";
@@ -19,12 +21,17 @@ $string['messagebeepsyou'] = "\$a has just beeped you!";
$string['messageenter'] = "\$a has just entered this chat";
$string['messageexit'] = "\$a has left this chat";
$string['neverdeletemessages'] = "Never delete messages";
+$string['nextsession'] = "Next scheduled session";
$string['nomessages'] = "No messages yet";
-$string['savemessages'] = "Save messages";
+$string['repeatnone'] = "No repeats - publish the specified time only";
+$string['repeatdaily'] = "At the same time every day";
+$string['repeattimes'] = "Repeat sessions";
+$string['repeatweekly'] = "At the same time every week";
+$string['savemessages'] = "Save past sessions";
$string['sessions'] = "Chat sessions";
$string['seesession'] = "See this session";
$string['strftimemessage'] = "%%H:%%M";
-$string['studentseereports'] = "Everyone can see past sessions";
+$string['studentseereports'] = "Everyone can view past sessions";
$string['viewreport'] = "View past chat sessions";
?>
diff --git a/mod/chat/db/mysql.php b/mod/chat/db/mysql.php
index 79e9f94f626..57c0ca7f304 100644
--- a/mod/chat/db/mysql.php
+++ b/mod/chat/db/mysql.php
@@ -18,6 +18,11 @@ function chat_upgrade($oldversion) {
table_column("chat", "", "studentlogs", "integer", "4", "unsigned", "0", "not null", "keepdays");
}
+ if ($oldversion < 2003072500) {
+ table_column("chat", "", "chattime", "integer", "10", "unsigned", "0", "not null", "studentlogs");
+ table_column("chat", "", "schedule", "integer", "4", "", "0", "not null", "studentlogs");
+ }
+
return true;
}
diff --git a/mod/chat/db/mysql.sql b/mod/chat/db/mysql.sql
index 44ee87b4cef..dde169848b0 100644
--- a/mod/chat/db/mysql.sql
+++ b/mod/chat/db/mysql.sql
@@ -9,6 +9,8 @@ CREATE TABLE `prefix_chat` (
`intro` text NOT NULL,
`keepdays` int(11) NOT NULL default '0',
`studentlogs` int(4) NOT NULL default '0',
+ `chattime` int(10) unsigned NOT NULL default '0',
+ `schedule` int(4) NOT NULL default '0',
`timemodified` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM COMMENT='Each of these is a chat room';
@@ -24,7 +26,7 @@ CREATE TABLE `prefix_chat_messages` (
`userid` int(10) NOT NULL default '0',
`system` int(1) unsigned NOT NULL default '0',
`message` text NOT NULL,
- `timestamp` int(10) NOT NULL default '0',
+ `timestamp` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `timemodifiedchat` (`timestamp`,`chatid`)
) TYPE=MyISAM COMMENT='Stores all the actual chat messages';
diff --git a/mod/chat/gui_header_js/index.php b/mod/chat/gui_header_js/index.php
index 1e01d66c0de..f19e37b4be9 100644
--- a/mod/chat/gui_header_js/index.php
+++ b/mod/chat/gui_header_js/index.php
@@ -30,8 +30,8 @@ $strchat = get_string("modulename", "chat");
shortname: $chat->name" ?>
-