I want to figure out how could this message to be triggered, and want to make our own event handler.
Thanks in advance.
Use https://github.com/NodeBB/nodebb-plugin-category-optin but beware if you have thousands of categories and millions of users this plugin will create a lot of entries in the database.
Those userrs are stored in groups with special names, here are the names assuming the category id is 1.
You can get the user ids from these groups by.
Groups.getMembers('cid:1:privileges:find', 0, -1, callback); This will give you all the user ids that have the find permission for category 1.
If you want to get their basic info like username picture slug so you can show user icons you can just use Groups.getMemberUsers('cid:1:privileges:find', 0, -1, calllback);
Finally it worked. Thank you very much. Just two points:
a. Ajaxing ends up with this URL:
I mean the internal details are visible to the user. An ideal solution is to reset the URL to something like this: localhost:4567/map
b. Suppose I cold load with an invalid URL:
it still renders the map page. Ideally, it should display the "Page Not found message"
Any solution to these two? Or, shall I consider them as "OK let it behave so!"?
I am right because I manually copied the images directory under the build/public directory and the icon image was there on the map.
But how to tell the build process about the same? Pl. guide.
If there is no proper answer to this problem, we should avoid minifying the leaflet's stylesheet. And it should be kept separate. In this scenario, how shall the plugin.json look like?
I got it now 👍 , thank you guys 🙂