ajaxify.variables.get deprecated

NodeBB Development

Suggested Topics


  • 0 Votes
    3 Posts
    322 Views

    Hey all-

    I am a moron.

    I forgot the /api/v3 in the API url.

    fml

  • 2 Votes
    3 Posts
    4k Views

    Due to changes introduced to loading javascript assets in 1.7.0, using jquery in widgets requires waiting for the page load event.

    Sample widget for 1.7.0+

    if (window.jQuery) { doStuffThatUsesJquery(); } else { window.addEventListener('load', doStuffThatUsesJquery); }
  • 0 Votes
    2 Posts
    910 Views

    Why would you do this? You should never be storing the password in more than one database.

    I think you seriously need to re-think the design of your app.

    If you want to retrieve the hashed password. You need to call the database directly.

    db.getObjectField('user:' + confirmObj.uid, 'password', function (err, password) { // Now you have the hashed password. })
  • 3 Votes
    10 Posts
    8k Views

    0_1457071644710_nbb1.0.0.PNG

    No announcement thread in the announcements section?

    Congratulations, guys! NodeBB has come a long way.

  • 1 Votes
    7 Posts
    3k Views

    I solved it, so for those get stuck here , we have to add Custom routes for ajaxifying and also mention which template to use.

    to solve that add custom mapping to the file

    /src/views/config.json

    like this

    "^route/.*": "Template to use without .tpl at the end", "^route/.*/add": "template"