@pitaj Prior to running ./nodebb upgrade I always do apt-get-update apt-get-upgrade so the server is already fully updated.
If there is something else that NodeBB requires then it should be part of the nodebb upgrade command.
@alex-galax the best way to override templates is probably to create a new plugin with a templates directory and a plugin.json set to {}
. You can override the templates that way if you copy the calendar templates over.
@alex-galax right, your custom theme is lowest priority.
@alex-galax Hmm, yeah I guess not. What exactly do you want to change? Maybe it can be accomplished with CSS?
@pitaj want to change the panel layout. shure, could be done in css but its not neat
best thing for my layout would be the event as a seperate post component. and for that I need to change the plugin anyways. but i still have no idea, why the fork won't install correctly
@alex-galax Using CSS would be a lot better from a maintainability standpoint. What do you mean by a separate post component?
@alex-galax having it display as a post is going to be more difficult than you might think. It will require changing now things that just the calendar plugin I think.
I used a JS template because I was using some pretty complex logic and using a normal template would have been pretty verbose. With benchpress now, though, I'll look into switching back.
@pitaj said in [nodebb-plugin-calendar] Fully featured calendar plugin for NodeBB - Testers needed:
@alex-galax the best way to override templates is probably to create a new plugin with a templates directory and a plugin.json set to
{}
. You can override the templates that way if you copy the calendar templates over.
I created the plugin with the following structure.
nodebb-plugin-ns-theme/
├── templates/
│ └── calendar.tpl
├── package.json
└── plugin.json
plugin.json
is an empty object and calendar.tpl
has only some text for testing. I activated the plugin, set its position below calendar in the apc sorting settings and build everything. But its still the old calendar
it's working now. did it with a regular plugin setup.
Hi @pitaj is it working on 1.7.4 ? Cause it doesn't on my forum I upgraded from 1.5.0 to 1.5.3 then to 1.6.0 then to 1.7.4. Then the calendar wasn't installed at all after the upgrade, I had to install it again, and now when we click on it nothing happen. It just keep waiting.... Please advise.
@azeus it's working here for me on v1.7.5, is the calendar plugin included in the dependencies list in package.json
? Are there any errors client or server side? Have you tried ./nodebb build
?
@pitaj Thanks, I'm running 1.7.5 as well. It was saying something about package.json missing when I run npm i but I just ignored it before upgrading nodebb, maybe a big mistake?
I tried ./nodebb build now the calendar is back but still have problem with emojies not showing, any idea?
$ npm i
npm WARN saveError ENOENT: no such file or directory, open '/var/www/regards/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/var/www/regards/package.json'
npm WARN regards No description
npm WARN regards No repository field.
npm WARN regards No README data
npm WARN regards No license field.
@azeus it looks like either you aren't running npm i
inside the nodebb directory, or you are running it before running ./nodebb upgrade
. What problems are you having with emojis not showing?
@kev-m calendar events have permissions according to the category they're posted in. So, you can create a category for the marketing events, and a category for the comms events, and set the permissions accordingly. The color of the events on the calendar will match that of the categories.
New version. Please try out [email protected]
Note: this version requires NodeBB v1.10.0
npm i [email protected]
Changelog: