From 2d2ad3f1ce3c78707f6cba5f5cd59ca9f416d21a Mon Sep 17 00:00:00 2001 From: samerton Date: Wed, 6 Apr 2016 13:35:28 +0100 Subject: [PATCH] Release 1.0.7 Add update files and update installer for 1.0.7 --- README.md | 5 +++-- changelog.txt | 35 +++++++++++++++++++++++++++++++++- core/includes/updates/106.php | 36 +++++++++++++++++++++++++++++++++++ pages/install.php | 4 ++-- 4 files changed, 75 insertions(+), 5 deletions(-) create mode 100644 core/includes/updates/106.php diff --git a/README.md b/README.md index 1a3a966160..e1c763c5dc 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# NamelessMC - version 1.0.6 +# NamelessMC - version 1.0.7 NamelessMC is a free, easy to use & powerful website software for your Minecraft server, which includes a large range of features. -Version 1.0.6 features: +Version 1.0.7 features: - Template and theme system - Languages @@ -74,3 +74,4 @@ Upcoming addons (these will need to be downloaded separately): * Slovak: @Marki35 * French: @CreaModZ * Dutch: Sander Jochems +* Finnish: -kakara- \ No newline at end of file diff --git a/changelog.txt b/changelog.txt index c84d2040d4..fc33565027 100644 --- a/changelog.txt +++ b/changelog.txt @@ -200,4 +200,37 @@ - Fix quoting posts containing apostrophes - Add missing translations - Allow custom icons in navbar -- Add code insertion to editor \ No newline at end of file +- Add code insertion to editor + +1.0.7 +- Fix null Group HTML error +- Don't check if admin account is valid MC account +- Allow cancelling reporting posts +- Remove Minecraft username check in Admin Users tab +- Fix editing posts not having any labels selected +- Fix undefined Smarty variable +- Fix ampersand not displaying correctly +- Change config double quotes to single quotes +- Fix undefined language variable in password reset +- Fix extra pagination page being displayed +- Fix 0th page displaying in pagination +- Fix display issues with floating content +- Set email charset as UTF-8 +- Add Finnish language +- Allow users to update their Minecraft usernames +- Update Norsk language +- Fix Admin core page redirect +- Fix tagging alert issue +- Fix footer navigation array for addons +- Enable "More" dropdown in navbar +- Fix avatars not uploading +- Change profile image size to 300x300 +- Display custom avatars in navbar +- Update base directory setting +- Display group HTML in memberlist +- Display message if installer couldn't delete itself +- Modify friend system +- Display custom avatars in Members list +- Allow functionality if cache is not present +- Fix Paper theme Jumbotron font colour +- Update profile system \ No newline at end of file diff --git a/core/includes/updates/106.php b/core/includes/updates/106.php new file mode 100644 index 0000000000..ff03d3e2b7 --- /dev/null +++ b/core/includes/updates/106.php @@ -0,0 +1,36 @@ + 1.0.7 updater + +// Database changes: +// Changes to User table +$queries->alterTable('users', 'last_username_update', "int(11) DEFAULT '0'"); +$queries->alterTable('users', 'user_title', "varchar(64) DEFAULT NULL"); +$queries->alterTable('users', 'birthday', "date DEFAULT NULL"); +$queries->alterTable('users', 'location', "varchar(128) DEFAULT NULL"); +$queries->alterTable('users', 'display_age', "tinyint(1) NOT NULL DEFAULT '1'"); + +// New user wall tables +$queries->createTable("user_profile_wall_posts", " `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `author_id` int(11) NOT NULL, `time` int(11) NOT NULL, `content` mediumtext NOT NULL, PRIMARY KEY (`id`)", "ENGINE=InnoDB DEFAULT CHARSET=latin1"); +$queries->createTable("user_profile_wall_posts_likes", " `id` int(11) NOT NULL AUTO_INCREMENT, `post_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, PRIMARY KEY (`id`)", "ENGINE=InnoDB DEFAULT CHARSET=latin1"); +$queries->createTable("user_profile_wall_posts_replies", " `id` int(11) NOT NULL AUTO_INCREMENT, `post_id` int(11) NOT NULL, `author_id` int(11) NOT NULL, `time` int(11) NOT NULL, `content` mediumtext NOT NULL, PRIMARY KEY (`id`)", "ENGINE=InnoDB DEFAULT CHARSET=latin1"); + +// Followers setting +$queries->create('settings', array( + 'name' => 'followers', + 'value' => '0' +)); + +// Update version number +$version_number_id = $queries->getWhere('settings', array('name', '=', 'version')); +$version_number_id = $version_number_id[0]->id; + +$queries->update('settings', $version_number_id, array( + 'value' => '1.0.7' +)); + +$version_update_id = $queries->getWhere('settings', array('name', '=', 'version_update')); +$version_update_id = $version_update_id[0]->id; + +$queries->update('settings', $version_update_id, array( + 'value' => 'false' +)); \ No newline at end of file diff --git a/pages/install.php b/pages/install.php index ad11c589b3..16b899de55 100644 --- a/pages/install.php +++ b/pages/install.php @@ -623,7 +623,7 @@ // Version update $version_id = $queries->getWhere('settings', array('name', '=', 'version')); $queries->update('settings', $version_id[0]->id, array( - 'value' => '1.0.6' + 'value' => '1.0.7' )); @@ -992,7 +992,7 @@ ), 28 => array( 'name' => 'version', - 'value' => '1.0.6' + 'value' => '1.0.7' ), 29 => array( 'name' => 'version_checked',