[nodebb-plugin-calendar] Fully featured calendar plugin for NodeBB - Testers needed
-
@Master-Antonio said:
How install a version 0.2.0 ?
Write comands please.
So , i have translated plugin in Italian , link in post of before.Umm... I guess you can install a specific version with this command.
npm i [email protected]
-
@markkus said:
@Master-Antonio said:
How install a version 0.2.0 ?
Write comands please.
So , i have translated plugin in Italian , link in post of before.Umm... I guess you can install a specific version with this command.
npm i [email protected]
I tried different commands, including this.
But still the same error.
Don't found version 0.2.0 .npm ERR! Linux 3.13.0-43-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "[email protected]"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! version not found: [email protected]
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /home/antonio/nodebb/npm-debug.log -
@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) -
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 [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.
-
@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