[nodebb-plugin-calendar] Fully featured calendar plugin for NodeBB - Testers needed
-
Added Italian translations
Installation instructions:
- Open a command window in the NodeBB directory
- Navigate to the
node_modules
directory (cd node_modules
) and runnpm remove nodebb-plugin-calendar
- Delete the
nodebb-plugin-calendar
directory withdel nodebb-plugin-calendar
orrm -r nodebb-plugin-calendar
- Clone the master branch of the git repository
git clone https://github.com/pitaj/nodebb-plugin-calendar
- Navigate to the
nodebb-plugin-calendar
directory withcd nodebb-plugin-calendar
- 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 nodebb-plugin-calendar@0.2.0 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.
-
@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.
-
@pitaj said:
How is the plugin so far? Have you encountered any bugs?
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.
-
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.
-
@yariplus Requesting some information about the bug, because I haven't had that problem:
What browser?
What commit of NodeBB? -
NodeBB: 9ca7243124a3de29b16de0dd280b56ea14bf6c14
FireFox: 37.0.2
Chrome: 42.0.2311.135 mNothing 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 </div>
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.
-
Okay, so it appears that you're using a language besides
it
,en_US
, oren_GB
. That's why the translation strings are all showing up.
The row haddisplay:none
because of a badly-targeted css rule to hide the bottom widgets. I don't know why thatNaN
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.
-
@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.
-
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. -
@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.
-
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> <noscript></noscript> <div class="nodebb-plugin-calendar"></div> </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"> <noscript></noscript> <div class="nodebb-plugin-calendar"></div> </div> <div class="col-lg-3 col-xs-12" widget-area="sidebar"></div> </div> </div>
-
Alright. I think it's fixed. Try it now.
-
@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(); $("#content").empty().append(cal);
"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
-
@yariplus that must be because the document ready event is allready done when ajaxify does stuff.
Hmmmm...
-
@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.
-
@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:
$("#content").children()
Thanks
-
Can you explain how the privledges work, it seems a bit confusing to me, can anyone create an event or only the group you assign in the admin panel? I can't create an event even though i've assigned the moderator group access.. I just get "no privledge" error in nodebb dev
Maybe i have done something wrong... looks good though
-
@chas the global privileges are set up in the plugin settings page in the ACP. I tried to make that setup the category permissions automatically, but it may not work perfectly. Check the permissions for the category, and make sure the use has permissions to post in it.