See this file https://github.com/NodeBB/NodeBB/blob/master/src/socket.io/plugins.js
Once you add your socket function server side, you can call it from the client side with socket.emit('myPlugin.myMethod', {hello: 'world'}, callback);
See this file https://github.com/NodeBB/NodeBB/blob/master/src/socket.io/plugins.js
Once you add your socket function server side, you can call it from the client side with socket.emit('myPlugin.myMethod', {hello: 'world'}, callback);
Hello, we will get this sorted out, for future support requests please email [email protected]
directly so we can respond faster.
^^ what he said
./nodebb reset plugin="nodebb-plugin-pluginName"
This should be already possible. This is ctrl + v from the snipping tool.
Using an emailer plugin is the suggested way of solving this https://github.com/julianlam/nodebb-plugin-emailer-sendgrid
@psychobunny we display them so we don't have pages with missing topics when you use pagination.
Yes, you can pass a timestamp in the future to the topics.post
method.
Check the ACP page for the plugin. You should be able to enable group mentions there.
@Kowlin Not yet, but it is something I will add before 1.0.0.
Right you would need to add a Topics.updateRecent(tid, timestamp, callback);
call into Topics.create() function so that topics are initialy added to /recent.
Change the following code in Topics.create()
https://github.com/NodeBB/NodeBB/blob/master/src/topics/create.js#L64-L68
to
db.sortedSetsAdd([
'topics:tid',
'topics:recent',
'cid:' + topicData.cid + ':tids',
'cid:' + topicData.cid + ':uid:' + topicData.uid + ':tids'
], timestamp, topicData.tid, next);
@yariplus said in How import utility method in client script:
window.utils = Utils;
Watch out for this, it would overwrite the utils object from nodebb.
XRegExp should be "xregexp": "3.2.0",
Try npm r xregexp
and then npm i [email protected]
Group chat is only available on master not 0.9.3 as @pichalite mentioned. I just commited some fixes to master, you also need latest persona, let me know if you are still seeing issues after updating to those. For production wait for 1.0.0 if you want group chat.
The function is here
$.ajax(config.relative_path + '/logout', {
type: 'POST',
headers: {
'x-csrf-token': config.csrf_token
},
success: function() {
window.location.href = config.relative_path + '/client/pagina-utente-cancellato';
}
});
This should go through https://github.com/NodeBB/nodebb-plugin-write-api
I'm fine with adding a group chat user limit
option. Set it to 2 and we can even hide the input to add more users so we end up with the old 1 to 1 chat. You can already disable chat entirely from the ACP so if you are worried about chat reducing forum activity you can do that as well.
@prog I have noticed this on that thread as well, but only in infinite scroll mode and not 100% reproducable, doesn't happen for me if I use pagination.