plugin podio??

NodeBB Plugins

Suggested Topics


  • 1 Votes
    2 Posts
    318 Views

    @Mark-Bevels

    So you want your static Gatsby site to be dynamic. Heh, you are not the only one to have given this some thought... 😜

    But... where's the "win" here?

    Security: Well, the moment you go dynamic you open the door much wider to crackers. Maybe some small win that your static content is "safe" and only comments system exposed.

    Narrow minded to only analyze a single vector though so lets take speed and performance. Well, a static article might load faster since now main potential bottleneck is backend db and script glue.

    On to stability: Maybe a bit more stable to only make comments dynamic?

    Maintenance: I question whether this pans out on the cost/benefit front because the moment you go dynamic you add a LOT to your stack. Admin that stuff takes time so you may as well leverage it for other stuff.

    So ye' needs to be rollin' up yer' sleeves and experiment to find where your sweet spot lies. I think I would be inclined to go with dynamic blog such as ghost (definitely not WP). Ditto on the wiki front.

    NodeBB is awesome sauce for sure but seems overkill for a blog comment system. Disqus sucks privacy & copyright wise but there are other 3rd party offerings w/less egregious terms, e.g. Muut and a couple others I don't recall off top of my head. Personally, I just do w/o comments. No interest/need in becoming an Internet Personality. I just toss some stuff "out there" for whatever it may be worth to whomever. Yeah, maybe missing some back and forth, contribs, etc. but when it comes to bloggin' I would rather spend my time writing than maintaining and sweating the next zero day exploit. Yeah, I am a freak.

    Be all that as it may....

    Perhaps these are the droids yer' looking for:

    Reflections on the Digital Sabbath

    Reflections on the Digital Sabbath

    What is the Digital Sabbath? The premise is simple: To go without digital media for a whole day as a form of rest. The challenge then, is to go without digit...

    favicon

    NodeBB Community (community.nodebb.org)

    Have fun!

  • 0 Votes
    2 Posts
    3k Views

    You define routes in your load hook. So your library.js might look like this:

    var Plugin = module.exports = {}; Plugin.load = function (params, callback) { var router = params.router; var middleware = params.middleware; // Define the function that renders the custom route. function render(req, res, next) { // Get whatever data you want to send to the template here. var data = {whatever: 33}; // This is the path to your template without the .tpl, relative to the templates directory in plugin.json var template = 'templatename' // Send the page to the user. res.render(template, data); } // This actually creates the routes, you need two routes for every page. // The first parameter is the actual path to your page. router.get('/yourpage', middleware.buildHeader, render); router.get('/api/yourpage', render); callback(); };

    And your plugin.json would look something like this:

    { "library": "library.js", "hooks": [ { "hook": "static:app.load", "method": "load" } ], "templates": "./public/templates", "staticDirs": { "public": "public" } }

    and you would have a template here:
    /nodebb-plugin-yourplugin/public/templates/templatename.tpl

    <h2>My Awesome Custom Page</h2> The Magic Number is: {whatever}

    I'm pretty sure I posted about this before, with more details even. Have to start using those canned responses. 🌹

  • 0 Votes
    2 Posts
    2k Views

    Post the blog comments config from ACP please?

  • 6 Votes
    82 Posts
    52k Views

    This plugin is updated to work with 3.2.x and up. It also uses widgets now instead of hardcoded ad areas so it is possible to place an ad wherever there is widget area in the theme.

    @omega I've added /ads.txt support into the plugin.
    25311c03-f012-4298-969d-ef0d7b0edc74-image.png

    This only applies if the forum is hosted on the root domain, if you have another CMS on your root domain you need to handle it there. The adsense verification can be done with the custom head tab in the ACP if nodebb is on the root domain.

  • 3 Votes
    39 Posts
    20k Views

    Updated with package info to be visible in 0.8.x. Sorry about that oversight! 🍺