How to get user's (has logged in) uid or email?

General Discussion

Suggested Topics


  • 0 Votes
    2 Posts
    2k Views

    Will offer my way of fixing.. probably something went wrong in the themes, aside from css, probably version mismatches with the core nodebb version your using. The below will revert to working vanilla and lavender theme versions that match w/ your core nodebb install version. (probably need to stick with whatever theme versions it reinstalls, because I've always had problems w/ updating themes, I don't upgrade them anymore) Stick with what came with the nodebb install originally. This will revert back to originals:

    ./nodebb stop (close nodebb) npm uninstall nodebb-theme-lavender npm uninstall nodebb-theme-vanilla npm install nodebb-theme-vanilla npm install nodebb-theme-lavender

    ./nodebb start. try avoid editing too much .less and .tpl in the theme files and stick as much as possible in the Custom css area in your ACP

  • 0 Votes
    6 Posts
    3k Views

    You never stop to amaze me on how fast you respond to issues. Thank you! 😄

  • 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); }); }
  • 0 Votes
    4 Posts
    2k Views

    @bentael best way to secure a ticket now would be to win the plugin contest 😉

  • 0 Votes
    2 Posts
    1k Views

    Got the solution.

    The option is available under Manage > Categories > Options > Access Control > Search User > Privileges.

    modeoption.png