nodebb-plugin-extended-markdown not V3 comaptible

Plugin Requests

Suggested Topics


  • 0 Votes
    17 Posts
    829 Views

    @oplik0 said in Modify nodebb-plugin-ws-dice:

    @DownPW v2.4.0 inlines the text now, making it work fine with multiple lines:

    Wooooo Very very good job @oplik0 😉👏

    awesome

    @oplik0 said in Modify nodebb-plugin-ws-dice:

    Unfortunately I'm not sure how to go about putting the icon in the middle of the event, so it's just aligned to the first line instead.

    I tried some css without success.
    Maybe @phenomlab knows how to do this ?

    It's a detail because it's already great and much better as a result!!

  • 0 Votes
    3 Posts
    299 Views

    I have now. 🙂

  • Donation Plugin

    Plugin Requests
    1 Votes
    3 Posts
    1k Views

    @michael-pfaff I could yes, but ideally, I would like it to auto-create topics etc...

    Can you get widgets to do that?

  • 0 Votes
    6 Posts
    3k Views

    @lombisi Added text shadow to the PR.

  • iterate on nodebb posts

    Plugin Requests
    0 Votes
    15 Posts
    3k Views

    @bentael I write this run_me.js file and run it with node run_me.js command, that iterate over all nodebb posts and run a JavaScript function on content filed and update it.

    how to efficient it using db.collection('objects').updateMany() ?

    content of run_me.js file:

    var MongoClient = require('mongodb').MongoClient; var assert = require('assert'); var ObjectId = require('mongodb').ObjectID; //'mongodb://<dbuser>:<dbpassword>@<mongodb host>:<mongodb port>/<dbName>' var url = ''; var converter = require("bbcode-to-markdown"); var convert = function(str){ // alter it and put your desire JavaScript cods. if ( typeof str == 'string' ){ str = str.toString().toLowerCase(); return converter(str); } else return str; } var updatePosts = function(db, callback){ var cursor =db.collection('objects').find( { _key:{ $regex: /post:/i } } ); cursor.each(function(err, doc) { assert.equal(err, null); if (doc != null ) { var newcontent = convert( doc.content ); db.collection('objects').updateOne({ _key: doc._key }, { $set: { "content": newcontent } }); console.log("after update --"+doc._key); } else { callback(); } }); } MongoClient.connect(url, function(err, db) { assert.equal(null, err); updatePosts(db, function() { db.close(); }); });