• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.4.3 Latest
Buy Hosting
Michael Joseph AubryM

Michael Joseph Aubry

@Michael Joseph Aubry
About
Posts
29
Topics
9
Groups
0
Followers
0
Following
0

Topics

  • Michael Joseph AubryM

    Can't figure out why ajaxify is not loading for profile link?

    Scheduled Pinned Locked Moved NodeBB Development
    2
    0 Votes
    2 Posts
    1k Views
    barisB

    Switch to persona and see if it's rendering, if it is working fine there you might have a syntax error in your template that is causing templates.js to lock up.

  • Michael Joseph AubryM

    Nodebb Docker commands?

    Scheduled Pinned Locked Moved NodeBB Development
    4
    0 Votes
    4 Posts
    3k Views
    Michael Joseph AubryM

    @qgp9 said:

    vertheless, I don't discourage you to use docker!!, I encourage it
    I'm just giving a most important tip here. "Don't use docker for production before you know how to deal with a concept of a temporary container" but GOOD FOR TEST AND LEARN.

    Thanks for the positive answer, it was fun playing around with docker. I ended up realizing the most simple solution was just to share one redis db, duh right. It was good to play around with docker though I did learn a bit.

  • Michael Joseph AubryM

    Custom api router?

    Scheduled Pinned Locked Moved Technical Support
    6
    0 Votes
    6 Posts
    2k Views
    julianJ

    Also, you'll want to add new routes to params.router, which is a special router just for plugins, and doesn't interfere with existing routes 😄

  • Michael Joseph AubryM

    Error: Cannot find module './Categories' linux?

    Scheduled Pinned Locked Moved Technical Support
    4
    1 Votes
    4 Posts
    2k Views
    Michael Joseph AubryM

    @baris Holy shit it actually worked but I dont see it in the console.log?

  • Michael Joseph AubryM

    Passing custom data into a template?

    Scheduled Pinned Locked Moved Technical Support
    19
    0 Votes
    19 Posts
    3k Views
    S

    @baris thanks. altho the typical plugin doesn't do it, the settings apis are promisified. you don't wait, u get junk..

    adding .then() in the non async using functions solves the problem

  • Michael Joseph AubryM

    Filtering posts based on a few paramaters?

    Scheduled Pinned Locked Moved NodeBB Plugins
    7
    0 Votes
    7 Posts
    2k Views
    Michael Joseph AubryM

    @yariplus lol yeah would be more simpler, I know about that method, but I went with the longer approach because my first few tries I had issues so I made assumptions that it was data type or something. Thanks though, that method definitely makes the code look cleaner.

  • Michael Joseph AubryM

    Accessing data inside header.tpl?

    Scheduled Pinned Locked Moved Unsolved Technical Support
    13
    0 Votes
    13 Posts
    3k Views
    Michael Joseph AubryM

    Here is what I have done, I finally figured out how to get a list of categories, I kind of like this method but I hate having to pass an array, but it is what it is.

    var theme = {}; var catLength = [1,2,3,4,5,6,7]; var Categories = module.parent.require("./Categories"); theme.init = function(params, callback) { Categories.getCategoriesData(catLength, function(err, data) { data.forEach(function(something, index) { if(something) { console.log(data[index].name); } }); }); callback(); }; module.exports = theme;

    Cool now I have all the categories and the next step is to create a dynamic header based on the categories, the problem is I am so confused on how to do that, I think I am missing something very obvious!

    I am inside a theme and I want to pass this into the precompiled template! 🙂

  • Michael Joseph AubryM

    Is there a way to separate a question block from all answers block?

    Scheduled Pinned Locked Moved Technical Support topic.tpl questions answers
    2
    0 Votes
    2 Posts
    1k Views
    Michael Joseph AubryM

    I found the answer https://docs.nodebb.org/en/latest/themes/templates.html

    <!-- BEGIN posts -->
    <!-- IF @first -->
    <h1>Main Author: {posts.username}</h1>
    <!-- ENDIF @first -->
    {posts.content}
    <!-- IF @last -->
    End of posts. Click here to scroll to the top.
    <!-- ENDIF @last -->
    <!-- END posts -->

  • Michael Joseph AubryM

    How do I override nodebb-plugin-composer-default?

    Scheduled Pinned Locked Moved Technical Support
    5
    1 Votes
    5 Posts
    2k Views
    Michael Joseph AubryM

    Good answer!!!! I am doing that!

  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
  • Login

  • Don't have an account? Register

  • Login or register to search.