diff --git a/README.md b/README.md index ab02209c57..b45429cdf8 100644 --- a/README.md +++ b/README.md @@ -38,38 +38,7 @@ NodeBB requires the following software to be installed: ## Installation -First, we install our base software stack: - - # apt-get install git nodejs redis-server build-essential imagemagick - -If you want to use MongoDB instead of Redis install it from http://www.mongodb.org/downloads and remove 'redis-server' from the above command. [MongoDB-Setup](https://github.com/designcreateplay/NodeBB/wiki/Installing-NodeBB-With-MongoDB) - -**If your package manager only installed a version of Node.js that is less than 0.8 (e.g. Ubuntu 12.10, 13.04):** - - # add-apt-repository ppa:chris-lea/node.js - # apt-get update && apt-get dist-upgrade - -Next, clone this repository: - - $ cd /path/to/nodebb/install/location - $ git clone git://github.com/designcreateplay/NodeBB.git nodebb - -Obtain all of the dependencies required by NodeBB: - - $ cd nodebb - $ npm install - -Initiate the setup script by running the app with the `--setup` flag: - - $ ./nodebb setup - -The default settings are for a local server running on the default port, with a redis store on the same machine/port. - -Lastly, we run the forum. - - $ ./nodebb start - -NodeBB can also be started with helper programs, such as `supervisor` and `forever`. [Take a look at the options here](https://github.com/designcreateplay/NodeBB/wiki/How-to-run-NodeBB). +[Please refer to platform-specific installation documentation](https://github.com/designcreateplay/NodeBB/wiki#wiki-installing-nodebb) ## Securing NodeBB diff --git a/public/src/forum/accountedit.js b/public/src/forum/accountedit.js index 13bab6cf9d..207785e846 100644 --- a/public/src/forum/accountedit.js +++ b/public/src/forum/accountedit.js @@ -189,8 +189,7 @@ define(['forum/accountheader', 'uploader'], function(header, uploader) { password_confirm.on('blur', onPasswordConfirmChanged); $('#changePasswordBtn').on('click', function() { - - if (passwordvalid && passwordsmatch && (currentPassword.val() || app.isAdmin)) { + if ((passwordvalid && passwordsmatch) || app.isAdmin) { socket.emit('user.changePassword', { 'currentPassword': currentPassword.val(), 'newPassword': password.val(), diff --git a/public/templates/accountedit.tpl b/public/templates/accountedit.tpl index acfe85af56..536943b7b5 100644 --- a/public/templates/accountedit.tpl +++ b/public/templates/accountedit.tpl @@ -115,7 +115,7 @@
- + disabled>
diff --git a/public/templates/header.tpl b/public/templates/header.tpl index 9682271b8a..a391d9fd04 100644 --- a/public/templates/header.tpl +++ b/public/templates/header.tpl @@ -11,9 +11,6 @@ link="{linkTags.link}" rel="{linkTags.rel}" type="{linkTags.type}" href="{linkTags.href}" /> - - - diff --git a/src/plugins.js b/src/plugins.js index 40aa6b996e..32d902b03b 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -62,6 +62,8 @@ var fs = require('fs'), Plugins.loadedHooks = {}; Plugins.staticDirs = {}; Plugins.cssFiles.length = 0; + Plugins.lessFiles.length = 0; + Plugins.clientScripts.length = 0; // Read the list of activated plugins and require their libraries async.waterfall([ @@ -195,21 +197,12 @@ var fs = require('fs'), winston.info('[plugins] Found ' + pluginData.css.length + ' CSS file(s) for plugin ' + pluginData.id); } - if (!pluginData.staticDir) { - Plugins.cssFiles = Plugins.cssFiles.concat(pluginData.css.map(function(file) { - return path.join('/plugins', file); - })); - } else { - winston.warn('[plugins/' + pluginData.id + '] staticDir is deprecated, define CSS files with new staticDirs instead.'); - Plugins.cssFiles = Plugins.cssFiles.concat(pluginData.css.map(function(file) { - return path.join('/plugins', pluginData.id, file); - })); - } - - next(); - } else { - next(); + Plugins.cssFiles = Plugins.cssFiles.concat(pluginData.css.map(function(file) { + return path.join(pluginData.id, file); + })); } + + next(); }, function(next) { // LESS files for plugins diff --git a/src/routes/meta.js b/src/routes/meta.js index cc5683b924..3b5fbed3f7 100644 --- a/src/routes/meta.js +++ b/src/routes/meta.js @@ -26,6 +26,11 @@ var path = require('path'), source += '\n@import "./' + plugins.lessFiles[x] + '";'; } + // ... and for each CSS file + for(x=0,numCSS=plugins.cssFiles.length;x