Fórumok

How to get user id......

Ekansh Khandelwal, módosítva 11 év-val korábban

How to get user id......

New Member Bejegyzések: 15 Csatlakozás dátuma: 2013.03.07. Legújabb bejegyzések
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
Rahul Pande, módosítva 11 év-val korábban

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

Expert Bejegyzések: 310 Csatlakozás dátuma: 2010.07.07. Legújabb bejegyzések
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
Ekansh Khandelwal, módosítva 11 év-val korábban

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

New Member Bejegyzések: 15 Csatlakozás dátuma: 2013.03.07. Legújabb bejegyzések
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...