@Zinca-Bruce No problem! Let me know if you any additional help. 🙂
Access Logged In user Information on Server side.
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 for reply,
Can you please tell me How can I capture hook at client side?
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.gethook 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 the
v0.6.xbranch. I don't see the
uidpassed in the
Hey!!! Thanks for the reply.... We have completed our task.