Updated to 1.1.0
Fixes a crash with newer node versions. Added the query protocol to the game dropdown.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!!
-
-
Hi,
Thanks for reply,
Can you please tell me How can I capture hook at client side?Thanks!!
-
I'm not sure if you can get the hook on the client side. You could listen for ajaxify events maybe, detect if a post is being loaded, and modify that maybe.
-
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.
-
@akumbhare the uid field of the object passed into the callback of the server side
filter:topic.get
hook is the uid of the user requesting the page, not the uid of the person who wrote the post. -
@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 the linked code is in
master
. You're certainly using thev0.6.x
branch. I don't see theuid
passed in thev0.6.x
branch. -
Hey!!! Thanks for the reply.... We have completed our task.