EisFrei
Posts
-
NodeBB 0.9.4 to 1.0.0 changes and how to upgrade ? -
How can I handle two one async.each into async.waterfall....Cannot read property 'bodyClass' of undefinedI have no idea where bodyClass comes into play, but maybe this will help:
var async = require('async'); var total = ['a', 'b']; async.waterfall([function(called) { var arr = [1, 2]; async.forEach(total, function(item, callback) { arr = arr.concat(item); callback(); }, function(error) { called(null, arr); }); }], function(err, elem) { console.log(err, elem); // Output: null [ 1, 2, 'a', 'b' ] });
-
Template conditional <!-- IF x=y --> possible?@baris when opening the topic directly, the title now is correct. When opening the topic using ajax the title is html-escaped
<!-- IF...
. -
Template conditional <!-- IF x=y --> possible?I think you just discovered a bug in the title handling.
When visiting this topic directly without involving ajax, the title tag gets corrupted and the HTML looks like this:<title>Template conditional rel="icon" type="image/x-icon" href="/favicon.ico" />
Can't help you on your initial question, though. Sorry.
-
Mobile view and post reply@trevor it basically removes the overlay-behaviour of the composer if your screen is very small. It keeps the textarea's height at a usable value (squished down to 2-3px isn't very useful) and you can look at the other posts to check something, too
-
Mobile view and post replyI had this problem too and put this in the custom css. It's kind of hacky but the users in my forum like it better this way:
@media (max-height: 500px) { .composer { position: static; min-height:9em; padding-top:1em; } .composer .write-preview-container { min-height: 5em; } body { margin-bottom:0!important; } }
-
where is the root directory of website?Depends on what you want.
If you want the file to be downloadable you can place it in public/ -
Markdown hast vanished.Let's try to break this down
Take a look at the directory running
ls -l /nodebb/directory
. It should look like this:-rw-r----- 1 a_5mith a_5mith [...] drwxr-x--- 10 a_5mith a_5mith [...]
If you see a lot more dashes in the first few rows, running
chmod
probably messed up the file permissions.---------- 1 a_5mith a_5mith [...] d--------- 10 a_5mith a_5mith [...]
Running
chmod 770 -R /nodebb/directory
should reenable your user's access to the files. The command is a bit broad and will make all files executable but it should do the trick.-rwxrwx--- 1 a_5mith a_5mith [...] drwxrwx--- 10 a_5mith a_5mith [...]
-
Markdown hast vanished.try
chown
instead ofchmod
and you need to run it as root -
German Installation on Vserver@Florian hast du den nodebb prozess am laufen?
./nodebb setup ./nodebb start
nodebb arbeitet übrigens nicht mit port 80, sondern 4567
du müsstest also hier schauen ob es läuft: http://62.141.39.60:4567
-
Topic Sorting Feature Required under CategoriesThis is quite an intersting read on sorting by popularity: http://scienceblogs.com/builtonfacts/2013/01/16/the-mathematics-of-reddit-rankings-or-how-upvotes-are-time-travel/
The trick is to let the votes' influence degrade over time.
-
[nodebb-plugin-pushbullet] Push Notifications for NodeBB@julian the settings page is working, but I still don't receive notifications.
I think I have narrowed the problem down.
The enabled check is looking for a numerical value:
parseInt(results.settings[index]['pushbullet:enabled'], 10) === 1
The data from the db contains a string value (I disabled and enabled notifications multiple times to make sure it's always a string):
settings: [ { 'pushbullet:enabled': 'true', 'pushbullet:target': '' } ]
-
[nodebb-plugin-pushbullet] Push Notifications for NodeBB@julian I can associate my pushbullet account but get an error when opening or trying to save my settings on https://community.nodebb.org/pushbullet/settings
Uncaught TypeError: undefined is not a function
-
Spot the irony in this screenshot.@Ted I actually added two hooks (action:groups.join and action:groups.leave) to my local repo yesterday. I'll refactor a little and do a pr in the next 24h.
Do you need any more hooks regarding groups while I'm at it? -
Chrome notification extension@julian Glad to hear that it is working again.
You can see the version next to the extension title:
chrome://extensions/?id=ooeikplgcjeeggiopajfhmadglhjhcco -
Chrome notification extension@julian Do you have v0.0.6 installed?
I previously used topics[X].teaser which was removed from the JSON, causing an "undefined variable" error which in turn halted the refreshGUI function. -
Chrome notification extension@psychobunny thank you
If you have any suggestions or improvements I'd be happy to implement them.I currently check
/api/unread
and/api/chats
for updates. Do you think another call could be useful? -
nodebb-plugin-audio simple music player@main this one
-
Can't Install Freshdid you try running
npm install
without parameters?
-
Chrome notification extensionYes, it can.
You can add as many instances to the list as you like.Copy/paste the link to the start page into the input field on the bottom, click add and you are set.
I don't do a lot of input sanitation yet, so there has to be a trailing slash after the domain name for it to be accepted.While typing I saw your edit. You are correct