• Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Default
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Quartz
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Slate
  • Solar
  • Superhero
  • Vapor
Collapse

Community

EisFreiE

EisFrei

@EisFrei
About
Posts
21
Topics
1
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

    RE: NodeBB 0.9.4 to 1.0.0 changes and how to upgrade ?
  • EisFreiE EisFrei

    changes
    upgrading look at steps 3. and 4.


  • RE: How can I handle two one async.each into async.waterfall....Cannot read property 'bodyClass' of undefined
  • EisFreiE EisFrei

    I 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' ]
    
    });
    

  • RE: Template conditional <!-- IF x=y --> possible?
  • EisFreiE EisFrei

    @baris when opening the topic directly, the title now is correct. When opening the topic using ajax the title is html-escaped &lt;!-- IF....


  • RE: Template conditional <!-- IF x=y --> possible?
  • EisFreiE EisFrei

    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.


  • RE: Mobile view and post reply
  • EisFreiE EisFrei

    @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 😉


  • RE: Mobile view and post reply
  • EisFreiE EisFrei

    I 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;
        }
    }
    

  • RE: where is the root directory of website?
  • EisFreiE EisFrei

    Depends on what you want.
    If you want the file to be downloadable you can place it in public/


  • RE: Markdown hast vanished.
  • EisFreiE EisFrei

    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 [...]
    

  • RE: Markdown hast vanished.
  • EisFreiE EisFrei

    try chown instead of chmod
    and you need to run it as root


  • RE: German Installation on Vserver
  • EisFreiE EisFrei

    @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


  • RE: Topic Sorting Feature Required under Categories
  • EisFreiE EisFrei

    This 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.


  • RE: [nodebb-plugin-pushbullet] Push Notifications for NodeBB
  • EisFreiE EisFrei

    @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': '' } ]
    

  • RE: [nodebb-plugin-pushbullet] Push Notifications for NodeBB
  • EisFreiE EisFrei

    @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
    

  • RE: Spot the irony in this screenshot.
  • EisFreiE EisFrei

    @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?


  • RE: Chrome notification extension
  • EisFreiE EisFrei

    @julian Glad to hear that it is working again.
    You can see the version next to the extension title:
    chrome://extensions/?id=ooeikplgcjeeggiopajfhmadglhjhcco


  • RE: Chrome notification extension
  • EisFreiE EisFrei

    @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.


  • RE: Chrome notification extension
  • EisFreiE EisFrei

    @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?


  • RE: nodebb-plugin-audio simple music player
  • EisFreiE EisFrei

    @main this one


  • RE: Can't Install Fresh
  • EisFreiE EisFrei

    did you try running

    npm install

    without parameters?


  • RE: Chrome notification extension
  • EisFreiE EisFrei

    Yes, 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 😉

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
  • Login

  • Don't have an account? Register

  • Login or register to search.