@baris: MAXON with his PluginCafé discussion board for Cinema 4D plugins external developers.
Cheers, KK
@baris: MAXON with his PluginCafé discussion board for Cinema 4D plugins external developers.
Cheers, KK
Hi guys, I've an easy question likely related to me being rusty.
In one of my forum I'm seeing the deleted threads appearing in the category listing even though "view deleted posts" is active only for moderators. Is it expected? Shouldn't these threads being removed in the category view even if they were not purged but only marked as deleted?
Thanks, R
Hi community first and foremost thank for your valuable support.
I need to retrieve custom data I've written to mongoDB and I'd like them to be returned as JSON string via a custom WriteAPI-enabled route.
A few notes to give a better context:
I'm currently on Ubuntu 18 / nodebb 1.16.2 / Mongo DB 4.0.22 / npm 6.14.10
I've already read
I've looked at
and, in the end, I've created an API Access token bound to the forum administrator which works nicely to read and write in the forum (e.g. retrieving the topics or creating a new one)
Issues:
Advanced -> Hooks
but:
[plugins/friends] Write API integration enabled, routes added.
as specified here?<url/to/nodebb>/api/v3/friends/:uid
, <url/to/nodebb>/api/friends/:uid
, <url/to/nodebb>/friends/:uid
, <url/to/nodebb>api/v3/plugins/friends/:uid
- worked for me)'use strict';
(function(routes) {
routes.initWriteRoutes = function(data, callback) {
data.router.get('/route1', data.apiMiddleware.requireUser, data.apiMiddleware.requireAdmin, middleware.verifyUserExists, function(req, res) {
console.log("/route1 reached via get");
res.sendStatus(200);
});
data.router.post('/route2', data.apiMiddleware.requireUser, middleware.verifyUserExists, function(req, res) {
console.log("/route2 reached via post");
res.sendStatus(200);
});
data.router.delete('/route3', data.apiMiddleware.requireUser, middleware.verifyUserExists, function(req, res) {
console.log("/route3 reached via delete");
res.sendStatus(200);
});
console.log('[plugins/test] Write API integration enabled, routes added.');
callback(null, data);
};
}(module.exports));
{
"library": "./library.js",
"hooks": [
{ "hook": "filter:plugin.write-api.routes", "method": "initWriteRoutes" }
]
}
info: [api] Adding 0 route(s) to 'api/v3/plugins'
with 0 new routes? Shouldn't it include at least the new routes coming with this plugin?I apologise for the length of this post, but I think this might help you to steer me in the right direction.
Best, Riccardo
Hi community,
is it possible to specify multiple tags in the Tags page or to even define boolean expression with (AND, OR, NOT)?
Best, KK
@julian that's awesome thanks a lot!