掲示板

How to get user id......

11年前 に Ekansh Khandelwal によって更新されました。

How to get user id......

New Member 投稿: 15 参加年月日: 13/03/07 最新の投稿
Hello!!!!
how can i want to know the user id of a particular blog, means i want to know the user id who created that blog or commented on a blog....
thumbnail
11年前 に Rahul Pande によって更新されました。

RE: How to get user id......

Expert 投稿: 310 参加年月日: 10/07/07 最新の投稿
Hi Ekansh,

1. Get user id of user who created the blog.

blogsEntry.getUserId()

where blogsEntry is the object of type BlogsEntry.

2. Get user id of user who commented on a blog.

Blog comments are stored in MBMessage table. You can use following method to get the user id who commented on a blog

mbMessages.getUserId();

Hope that helps


Thanks
Rahul
11年前 に Ekansh Khandelwal によって更新されました。

RE: How to get user id......

New Member 投稿: 15 参加年月日: 13/03/07 最新の投稿
Rahul Pande:
Hi Ekansh,

1. Get user id of user who created the blog.

blogsEntry.getUserId()

where blogsEntry is the object of type BlogsEntry.

2. Get user id of user who commented on a blog.

Blog comments are stored in MBMessage table. You can use following method to get the user id who commented on a blog

mbMessages.getUserId();

Hope that helps


Thanks
Rahul


Thanks Rahul for giving me the solution but it gives all the users , but i want to know only the user id of a particular blog...