@pitaj I think your code is not yet a RELEASE. Right?
Into my code : plugins.fireHook('filter:topic.get', topicData, callback);
This line is present into Topics.getTopicWithPosts function.
akumbhare
Posts
-
Access Logged In user Information on Server side. -
Access Logged In user Information on Server side.You are telling me uid of "Post creater" . In the above filter is gives me uid of that post.
I need CURRENTLY LOGIN uid into my hook "filter:controllers.topic.get" .
If anyone knows that, how to get CURRENTLY LOGIN uid at SERVER side then please let me know.
-
Access Logged In user Information on Server side.Hi,
Thanks for reply,
Can you please tell me How can I capture hook at client side?Thanks!!
-
Access Logged In user Information on Server side.Hi,
How can I get 'Current Logged In user' information such as 'uid', 'username' into my plugins hook. For Eg. I need currently logged in user information into "filter:controllers.topic.get" hook.
If it is not available then how I can initiate communication from 'SERVER' side to 'CLIENT' side,
So that I can get logged in user information to 'SERVER' side.Thanks!!
-
Use Custom Template to send EmailHi,
I am using 'Nodemailer' in my plugin.
I need to use Custom Email template file for Sending Notification Email.
Can I use 'Custom Email Template' in my plugin.
Or there is any dependency available in Node.js.
Please provide me guideline.Thanks!!
-
How to Get Domain Name.Hi,
Can you please tell me , How can I get 'Current Domain Name' in NodeBB.
I need to create TOPIC/POST link, So that I can send in Email.Thanks!!
-
Implement 'COMMENTS' feature in NodeBBHi,
As we know, in NodeBB there is concept like "One Topic" has multiple "Reply" (Posts).
I wanted to implement functionality which provides facility for the user to make
"Comments" on each reply. So the hierarchy will be :
--> Topic
--> Reply
--> Comment 1
--> Comment 2
Most important is I wanted to do this using PLUGIN approach.So Is there any similar plug-in available which can help me?
If I want to implement this then how should I start this? Any guidelines.Thanks!!
-
Optimistic concurrency locking in REDIS databaseHi,
Have NodeBB used "optimistic concurrency locking"?
I think in NodeBB there is 'UPVOTE' concept,
While upvoting there has to be 'Optimistic concurrency locking',
So it can handle multiple database insert operation at a time while upvoting single post by multiple users.Please let me know where do I find the code for 'Optimistic Concurrency locking',
and guide me how to handle multiple insert operation at a time in redis database.Thanks!!
-
Need information about release branches.Hi Julian,
Thanks for the reply,
It means in future ,for PRODUCTION we should not use 'stable' or any other taged branches(except v0.x.x). We should always go for v0.x.x taged branches for PRODUCTION.
Is it right?
How we can identify that which tag we can use for PRODUCTION? Is there any way to do that?Thanks!!
-
User MODERATOR role functionalityHi,
I need to implement below functionality in my NodeBB:
-Admin can assign user role as MODERATOR to any user, and Only User who have moderator role can approve Topic Creation and Comments/Reply.
-Any new Topic created by registered/guest user should not be visible on the website till MODERATOR User approved it.
-MODERATOR User will be able to see all the unapproved topics, reply/comments and approves it.Is this functionality present in NodeBB new releases or Is there any plug-in available ?
If such functionality is not present then Can you please tell me which guidelines shall I follow?
Thanks!!
-
Need information about release branches.Hi,
Thanks for the reply
So Can you please tell me why they have releases a 'Stable' tag branch?Thanks!!
-
Need information about release branches.Hi,
Can I use 'Stable' tag branch for production ?NodeBB product release uses v0.5.7, v0.6.0, v0.6.1, stable.
Other product uses 'Major', 'Minor' version release.
Eg. jQuery uses 1.9.1, 1.9.2 and 1.11.1, 1.11.2
I don't understand why you have used this type of version scheme?
As per your last comment "The stable tag is for internal use (though you can follow that too if you'd like)"
Why you release this 'Stable' branch instead of that you can release new version of that?
How I identify your internal release branch and How many times do you release 'Stable' tag branch?
If 'Stable' tag branch is only for internal use then why did you release 'Stable' tag branch into main releases?
Which branch should I use on production?Thanks!!
-
Support on IE8 BrowserHi,
When I open nodeBB website on IE8 it gives me "Expected identifier, string or number",
"'require' is undefined", "'JSON' is undefined" such types of error.
Is NodeBB has support for IE8 browser? If not then
Is there any way to provide support for IE8?
Please refer below Screen shot:
http://screencast.com/t/B8ekmlrouMThanks!!
-
Need information about release branches.Hi,
For the production which branch should I refer from the Git-hub?
Can you please give some idea about your version structure?Following URL:
https://github.com/NodeBB/NodeBB/releases
Can you please guide me which version should I use for production?
Also let me know about the "Stable" release branch.Thanks!!
-
Access database values through plugin.I am writing like plug-in, which provides an like functionality for anonymous as well as registered user.
1. Anonymous User should be able to like on any comment/reply and I have to restrict anonymous user via IP address.
Yet, I can store IP values to redis database, I need to find out, The given IP value is present in "like:pid" hash set.
I need to write query structure which finds out the given anonymous users IP address is not present in database for that particular post.Thanks!!
-
Need API to get "Post object by passing only post id"Thanks for reply,
I have updated version 0.6.1 but that API is not working.
Error:
{
"path": "/api/post/492",
"error": "not-found"
}So can you please tell me which version your are using? If possible please provide me URL for source code.
Thanks!!
-
Access database values through plugin.Hi,
In my plugin, I have used following piece of code to create entry into existing nodebb database and value gets stores into database.
var pid=4,
likecount = 1;
var data = {
pid:4,
ip:"0.0.0.0",
uid:0
}
db.setObject('like:'+pid+':'+likecount, data, callback);
It creates structure in database as "like
-> 4
-> like:4:1
pid:4
ip:"0.0.0.0
uid:0 "Can you please tell me, how to iterate each value from above structure using where clause.
For eg. Is that "like:4" contains specific ip address, It should iterate all the rows inside the "like:4" i.e 'like:4:1', 'like:4:2', 'like:4:3'.Any help would be greatly appreciated.
Thanks!!! -
Need API to get "Post object by passing only post id"Hi,
Thanks for the reply,
But We need to call this API from wordpress plugin.
Please tell us 'REST' API which we can call from wordpress plugin.Thanks!!
-
Need API to get "Post object by passing only post id"Hi,
We need API to get "Post object by passing only post id".
We have search around source code but we have not found any API which fullfil our requirement.Please let us know about this api.
And also how we can find/use existing api into our plugin.Any help would be greatly appreciated.
Thanks!!! -
How to provide Name and Email field for Guset User?Hi,
Can you point me to that location, where I can find and extend the USER model, to include the USER EMAIL ADDRESS ?
The expectation is that the EMAIL ADDRESS should be persisted in the DB and be available across USER login sessions.