Add PHP API

NodeBB Development

Suggested Topics


  • 2 Votes
    3 Posts
    140 Views

    That is correct. A plugin should work with no breakages as long as they do not upgrade to the next major version level.

    NodeBB forum admins are still advised to use the recommended plugin version in the ACP, as there is no guarantee that plugins will follow semver.

  • 0 Votes
    10 Posts
    4k Views

    @julian thanks, but all properties on any VPS "permission denied on key":

    $ cat /proc/sys/vm/swappiness 60 $ sudo sysctl vm.swappiness=10 sysctl: permission denied on key 'vm.swappiness'

    And with the memory seems to be all right:
    0_1478632336050_Снимок экрана от 2016-11-08 22-12-04.png

  • 0 Votes
    1 Posts
    1k Views

    Hi,
    Have NodeBB used "optimistic concurrency locking"?
    I think in NodeBB there is 'UPVOTE' concept,
    While upvoting there has to be 'Optimistic concurrency locking',
    So it can handle multiple database insert operation at a time while upvoting single post by multiple users.

    Please let me know where do I find the code for 'Optimistic Concurrency locking',
    and guide me how to handle multiple insert operation at a time in redis database.

    Thanks!!

  • 0 Votes
    2 Posts
    2k Views

    You need to write a server side script to go through all the users and update their urls.

    Something like the following should work.

    var db = require('./database'), user = require('./user'), async = require('async'); db.getSortedSetRange('users:joindate', 0, -1, function(err, uids) { async.eachLimit(uids, 50, updateUserImage, function(err) { console.log('done'); }); }); function updateUserImage(uid, next) { user.getUserFields(uid, ['image', 'gravatarpicture', 'uploadedpicture'], function(err, userData) { // do your update here, can check current data from userData user.setUserField(uid, 'gravatarpicture', 'some_new_url', next); }); }
  • nodebb API support?

    NodeBB Development
    2
    0 Votes
    2 Posts
    2k Views

    @julianlam is already working on this, see this topic.