How can I get all Group name created?

NodeBB Plugins

Suggested Topics


  • 0 Votes
    5 Posts
    223 Views

    You can set this value from ACP > Settings > EMail ("From Name")

  • 0 Votes
    6 Posts
    420 Views

    Finally, I made it simpler...

    I made a link from /toto/myfiles to public/uploads/myfiles. Then, I wrote this app.get code in my plugin :

    app.get('/uploads/myfiles/:file(*?)', function (req, res) { // Things TODO with req.params.file for permissions (after work on it)... var longfilename = path.resolve('public' + req.url); if (fs.existsSync(longfilename)) { res.status(200); res.sendFile(longfilename); } else { console.log('Fichier non trouvé'); res.status(404); res.render('404', {path: req.path}); } });

    Now, there is no problem with the ajaxify thing... Ouf !

    I'm going to open another topic for another question about the 404 error rendering... 😉

  • 0 Votes
    4 Posts
    4k Views

    Thanks @baris and @PitaJ for the nice info, I will try it out.

  • 2 Votes
    2 Posts
    1k Views

    I'm interested too!

  • 0 Votes
    5 Posts
    3k Views

    @baris said:

    If you don't mind getting your hands dirty you can modify core and change PostTools.parse

    me -> 😨

    I was thinking to extract the topic id from data.url and pass it back to the plugin backend to store, and then limit my plugin to one instance per topic for now. But I think that would be even worst, and when 0.6.0 arrives I would have to fix it anyways.

    I am a bit scared to touch the core stuff, but I may give your suggestion a try since it is less hacky, and better long term solution.