[nodebb-plugin-calendar] Fully featured calendar plugin for NodeBB - Testers needed

  • GNU/Linux

    ignore .............. my suggestion doesn't work, there was a way before I can't remember

    cd node_modules
    git clone -b 0.2.x https://github.com/pitaj/nodebb-plugin-calendar

    ^ works

  • Gamers

    @Codejet said:

    ignore .............. my suggestion doesn't work, there was a way before I can't remember

    cd node_modules
    git clone -b 0.2.x https://github.com/pitaj/nodebb-plugin-calendar

    ^ works

    Now work , is installed but don't work plugin.
    This is ERROR.

    3/5 13:47 [3132] - error: Error: Cannot find module 'node-schedule'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at /home/antonio/nodebb/node_modules/nodebb-plugin-calendar/library.js:37:16
    at Object.<anonymous> (/home/antonio/nodebb/node_modules/nodebb-plugin-calen dar/library.js:863:3)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)

  • Global Moderator Plugin & Theme Dev

    Added Italian translations

    Installation instructions:

    1. Open a command window in the NodeBB directory
    2. Navigate to the node_modules directory (cd node_modules) and run npm remove nodebb-plugin-calendar
    3. Delete the nodebb-plugin-calendar directory with del nodebb-plugin-calendar or rm -r nodebb-plugin-calendar
    4. Clone the master branch of the git repository git clone https://github.com/pitaj/nodebb-plugin-calendar
    5. Navigate to the nodebb-plugin-calendar directory with cd nodebb-plugin-calendar
    6. Install npm dependencies with the command npm install

    Those commands should install it correctly. It should then be visible in the ACP (maybe after a restart) to be activated.

    My console log in Windows:

    D:\NodeBB\node_modules>npm remove nodebb-plugin-calendar
    unbuild [email protected]
    D:\NodeBB\node_modules>del nodebb-plugin-calendar
    Could Not Find D:\NodeBB\node_modules\nodebb-plugin-calendar
    D:\NodeBB\node_modules>git clone -b 0.2.x https://github.com/pitaj/nodebb-plugin-calendar
    Cloning into 'nodebb-plugin-calendar'...
    remote: Counting objects: 615, done.
    remote: Total 615 (delta 0), reused 0 (delta 0), pack-reused 615
    Receiving objects: 100% (615/615), 490.11 KiB | 0 bytes/s, done.
    Resolving deltas: 100% (212/212), done.
    Checking connectivity... done.
    D:\NodeBB\node_modules>cd nodebb-plugin-calendar
    D:\NodeBB\node_modules\nodebb-plugin-calendar>npm install

    Follow those instructions and you should be good.

  • Global Moderator Plugin & Theme Dev

    @Master-Antonio @Codejet @markkus

    How is the plugin so far? Have you encountered any bugs?

    BTW, @markkus, there are translatable strings. Look here

    I've also moved the 0.2.x code into the master branch.

    I'm probably going to release an npm package within the next week for anyone who doesn't want to use git.

  • GNU/Linux

    @pitaj said:

    How is the plugin so far? Have you encountered any bugs?

    BTW, @markkus, there are translatable strings. Look here

    I haven't tried it yet. I'll give it a shot once you've released the npm package. 😉

    And thanks for the heads up, I'll probably produce Estonian translation once I get my hands on it.

  • Community Rep

    Doesn't seem to work in NodeBB master. (Intentional maybe?)

    The admin page works, but the calendar page appears, then quickly disappears. Didn't see any errors on the server or client console.

  • Global Moderator Plugin & Theme Dev

    @yariplus Requesting some information about the bug, because I haven't had that problem:

    What browser?
    What commit of NodeBB?

  • Community Rep


    NodeBB: 9ca7243124a3de29b16de0dd280b56ea14bf6c14
    FireFox: 37.0.2
    Chrome: 42.0.2311.135 m

    Nothing is on the server log.

    This is the whole client log:

    "Successfully loaded initial data" cal.js:827:8
    "Calendar templates loaded" cal.js:850:8
    "Calendar translation loaded" cal.js:852:10
    "Initializing Calendar" cal.js:192:10
    "Initializing Events" cal.js:200:10

    I just checked the DOM and the content row is display:none

    <div id="content" class="container">
        <div class="row">...</div>   <~ This has display:none

    I changed it to block and the calendar is partially there but doesn't work. I'm guessing it didn't finish loading.

    Theme was latest lavender, same thing with latest persona.

  • Global Moderator Plugin & Theme Dev


    Okay, so it appears that you're using a language besides it, en_US, or en_GB. That's why the translation strings are all showing up.
    The row had display:none because of a badly-targeted css rule to hide the bottom widgets. I don't know why that NaN is showing up, that's weird.

    I think I fixed these issues in the latest commit. Try and see if a git pull fixes the problems.

    EDIT: Actually, now it should work.

  • Community Rep

    @pitaj Okay, removed and reinstalled your latest from git.

    It loads now and translates, but the day is still NaN and events don't appear on the calendar.

    I am getting an error now:

    TypeError: calendar.days[y] is undefined cal.js:339:12

    Also, events do appear on the forum in the correct category, but they're not parsed correctly.

  • Global Moderator Plugin & Theme Dev


    Alright, is this hosted publicly somewhere? I need to figure out what is actually going on. I know about the parsing thing with the posts.

    I can't figure out why you're getting NaN. The only thing I can think of is that the appropriate data isn't being sent to the template.

  • Community Rep

    @pitaj It's just my personal site. yaricraft.com

    I can make you a ftp/ssh account if you want.

    AHH, I figured it out. It has something to do with widgets. I removed all my widgets and suddenly everything works now.

    Any widget I use, even just plain text, breaks it. Widgets must mess up the template somehow.

  • Community Rep

    Okay, only side widgets cause the error.

    Here's the finished dom with header/footer widgets: (the cal works and the widgets disappear.)

    <div id="content" class="container-fluid">
        <div class="row">
            <div class="col-xs-12" widget-area="header"></div>
        <div class="nodebb-plugin-calendar"></div>

    and with side widgets: (The widgets appear and the cal doesn't work.)

    <div id="content" class="container-fluid">
        <div class="row">
            <div class="col-lg-9 col-xs-12">
                <div class="nodebb-plugin-calendar"></div>
            <div class="col-lg-3 col-xs-12" widget-area="sidebar"></div>
  • Global Moderator Plugin & Theme Dev


    Alright. I think it's fixed. Try it now.

  • Community Rep

    @pitaj Almost 😉

    It works on cold load, but not on ajaxing.

    Looks like it's because the widget areas are not loaded yet at the time you do the detach/append:

          console.log('Widget Area Exists: ' + !!$('[widget-area="sidebar"]').length);
          var cal = $("#nodebb-plugin-calendar").detach();
    "Successfully loaded initial data" nodebb.min.js:979:8
    "Widget Area Exists: false" nodebb.min.js:1009:0
    "Calendar templates loaded" nodebb.min.js:1002:8
  • Global Moderator Plugin & Theme Dev

    @yariplus that must be because the document ready event is allready done when ajaxify does stuff.


  • Mine gets cut off for some reason.
    Also, is it supposed to auto post to Announcements?


  • Global Moderator Plugin & Theme Dev

    @rhistina you're supposed to configure the correct category in the settings page in the ACP

  • @pitaj Thanks! Also do you have any screenshots of what it should look like when it auto posts to the category you want? Mine looks like below. Also note that I'm a total noob to NodeBB and I have no idea what I'm doing :D! So I apologize in advanced for asking questions that may seem otherwise obvious.


  • Global Moderator Plugin & Theme Dev

    @rhistina yeah, right now it just looks like that. I'm working on getting that to work.

    Do you have this on a publicly available server?

    Also, about that cut off thing. Can you tell me what theme you're using and the output of typing the following command in the JavaScript console:



Suggested Topics

| |