From a3ad5ae580f4528c43f8ce3dfc346939e39465c0 Mon Sep 17 00:00:00 2001 From: Lodder Date: Thu, 1 Jun 2017 16:55:56 +0100 Subject: [PATCH 1/6] Fix install SQL for MySQL --- mod_shoutbox/sql/mysql/install.mysql.utf8.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_shoutbox/sql/mysql/install.mysql.utf8.sql b/mod_shoutbox/sql/mysql/install.mysql.utf8.sql index 6329d37..68b92b9 100644 --- a/mod_shoutbox/sql/mysql/install.mysql.utf8.sql +++ b/mod_shoutbox/sql/mysql/install.mysql.utf8.sql @@ -9,4 +9,4 @@ CREATE TABLE IF NOT EXISTS `#__shoutbox` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; -INSERT INTO `#__shoutbox` (`name`, `when`, `msg`, `user_id`) VALUES ('JoomJunk', '2012-01-16 20:00:00', 'Welcome to the Shoutbox', '0'); +INSERT INTO `#__shoutbox` (`name`, `when`, `ip`, `msg`, `user_id`) VALUES ('JoomJunk', '2012-01-16 20:00:00', '127.0.0.1', 'Welcome to the Shoutbox', '0'); From 51af3df6820a9c4184f9ebcf2fc6eb1134238e45 Mon Sep 17 00:00:00 2001 From: Lodder Date: Thu, 1 Jun 2017 16:56:52 +0100 Subject: [PATCH 2/6] Fix install SQL for PostgreSQL --- mod_shoutbox/sql/postgresql/install.postgresql.utf8.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_shoutbox/sql/postgresql/install.postgresql.utf8.sql b/mod_shoutbox/sql/postgresql/install.postgresql.utf8.sql index 90eb94f..7d15771 100644 --- a/mod_shoutbox/sql/postgresql/install.postgresql.utf8.sql +++ b/mod_shoutbox/sql/postgresql/install.postgresql.utf8.sql @@ -8,4 +8,4 @@ CREATE TABLE "#__shoutbox" ( PRIMARY KEY ("id") ); -INSERT INTO "#__shoutbox" ("name", "when", "msg", "user_id") VALUES ('JoomJunk', '2013-04-04 20:00:00', 'Welcome to the Shoutbox', '0'); +INSERT INTO "#__shoutbox" ("name", "when", "ip", "msg", "user_id") VALUES ('JoomJunk', '2013-04-04 20:00:00', '127.0.0.1', 'Welcome to the Shoutbox', '0'); From db499def7b3d950d24b56c42cd17337615f200dd Mon Sep 17 00:00:00 2001 From: Lodder Date: Thu, 1 Jun 2017 17:02:21 +0100 Subject: [PATCH 3/6] Update changelog.php --- changelog.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changelog.php b/changelog.php index 8960d6a..a690d40 100644 --- a/changelog.php +++ b/changelog.php @@ -14,6 +14,9 @@ - -> Removed ! -> Note +### WIP +# Fixed install SQL missing a field + Version 8.1.13 ^ Improved layout for RTL languages From f8dd37135ad5f7edc51f035230418ecaffbc7107 Mon Sep 17 00:00:00 2001 From: C-Lodder Date: Thu, 24 May 2018 13:04:08 +0100 Subject: [PATCH 4/6] Fix html5 notification image --- changelog.php | 1 + mod_shoutbox/media/js/mod_shoutbox.js | 13 ++++++++++--- mod_shoutbox/tmpl/default.php | 3 ++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/changelog.php b/changelog.php index a690d40..aa8c520 100644 --- a/changelog.php +++ b/changelog.php @@ -16,6 +16,7 @@ ### WIP # Fixed install SQL missing a field +# Fix HTML5 notification image on multilingual sites Version 8.1.13 ^ Improved layout for RTL languages diff --git a/mod_shoutbox/media/js/mod_shoutbox.js b/mod_shoutbox/media/js/mod_shoutbox.js index 298d220..30d9b03 100644 --- a/mod_shoutbox/media/js/mod_shoutbox.js +++ b/mod_shoutbox/media/js/mod_shoutbox.js @@ -27,10 +27,17 @@ JJShoutbox.performNotificationCheck = function() /** * Create the HTML5 Notification */ -JJShoutbox.createNotification = function(title, options) +JJShoutbox.createNotification = function(title) { - options = { - icon: 'media/mod_shoutbox/images/notification.png' + var icon = '/media/mod_shoutbox/images/notification.png'; + + if (typeof JJ_notification !== 'undefined') + { + icon = JJ_notification + } + + var options = { + icon: icon }; // Let's check if the browser supports notifications diff --git a/mod_shoutbox/tmpl/default.php b/mod_shoutbox/tmpl/default.php index 829ad11..b7fcd14 100644 --- a/mod_shoutbox/tmpl/default.php +++ b/mod_shoutbox/tmpl/default.php @@ -331,13 +331,14 @@ class="" } ?> -