Fórumok
Filter users by friends in chat portlet
Emilio José Lamas Fraga, módosítva 12 év-val korábban
Filter users by friends in chat portlet
Junior Member Bejegyzések: 57 Csatlakozás dátuma: 2011.11.29. Legújabb bejegyzések
Hello everyone,
By default, Liferay chat portlet shows all online users. I want to modify it to show only friends connected. (Just like it works in Liferay.com).
I've been able to modify the file view.jsp to show only connected friends, but when the chat reload the users (via /chat-portlet/js/main.js, I guess) it shows again all the users.
Can you access the social services from /chat-portlet/js/main.js to filter the users? Or there is any way of doing this without modifying this file?
Thanks in advance!
By default, Liferay chat portlet shows all online users. I want to modify it to show only friends connected. (Just like it works in Liferay.com).
I've been able to modify the file view.jsp to show only connected friends, but when the chat reload the users (via /chat-portlet/js/main.js, I guess) it shows again all the users.
Can you access the social services from /chat-portlet/js/main.js to filter the users? Or there is any way of doing this without modifying this file?
Thanks in advance!
Hitoshi Ozawa, módosítva 12 év-val korábban
RE: Filter users by friends in chat portlet (Válasz)
Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
In \webapps\chat-portlet\WEB-INF\classes\portlet.properties there are following settings. I think you'll be able to figure it out from here.
include-and-override=portlet-ext.properties
buddy.list.strategy=all
#buddy.list.strategy=communities
#buddy.list.strategy=friends
#buddy.list.strategy=communities,friends
include-and-override=portlet-ext.properties
buddy.list.strategy=all
#buddy.list.strategy=communities
#buddy.list.strategy=friends
#buddy.list.strategy=communities,friends
Emilio José Lamas Fraga, módosítva 12 év-val korábban
RE: Filter users by friends in chat portlet
Junior Member Bejegyzések: 57 Csatlakozás dátuma: 2011.11.29. Legújabb bejegyzések
Thank you so much Hitoshi!
Next time i won't forget to have a look at the portlet.properites before getting stucked with the code
Next time i won't forget to have a look at the portlet.properites before getting stucked with the code
Mazhar Alam, módosítva 11 év-val korábban
RE: Filter users by friends in chat portlet
Regular Member Bejegyzések: 191 Csatlakozás dátuma: 2011.11.25. Legújabb bejegyzések
Hi Emilio,
What all changes did you modified in your view.jsp can you point out..where exactly did you made changes.
Thanks
What all changes did you modified in your view.jsp can you point out..where exactly did you made changes.
Thanks
Emilio José Lamas Fraga, módosítva 11 év-val korábban
RE: Filter users by friends in chat portlet
Junior Member Bejegyzések: 57 Csatlakozás dátuma: 2011.11.29. Legújabb bejegyzések
Hi Mazhar,
No need to change anything in the code, just use the property Hitoshi said with the value you want.
Regards.
No need to change anything in the code, just use the property Hitoshi said with the value you want.
Regards.
Mazhar Alam, módosítva 11 év-val korábban
RE: Filter users by friends in chat portlet
Regular Member Bejegyzések: 191 Csatlakozás dátuma: 2011.11.25. Legújabb bejegyzések
Hi Emilio,
I tried with the given portlet properties and is working fine to me..
Suppose I have 2 communities say A with (V1,V2 as community members) and B(W1,W2 as community members)..
I applied
buddy.list.strategy=communities
so community member V1 can see V2 and community admin say (Admin1) and vice-verse for community B..
Now my requirement...
what changes should I do in order to restrict community users to see each others..i.e V1 cannot see V2 but can only see the community admin in his chat list..
So how to do this...thanks in advance..
I tried with the given portlet properties and is working fine to me..
Suppose I have 2 communities say A with (V1,V2 as community members) and B(W1,W2 as community members)..
I applied
buddy.list.strategy=communities
so community member V1 can see V2 and community admin say (Admin1) and vice-verse for community B..
Now my requirement...
what changes should I do in order to restrict community users to see each others..i.e V1 cannot see V2 but can only see the community admin in his chat list..
So how to do this...thanks in advance..
devaraj s, módosítva 11 év-val korábban
RE: Filter users by friends in chat portlet
Regular Member Bejegyzések: 228 Csatlakozás dátuma: 2012.05.21. Legújabb bejegyzésekNow my requirement...
what changes should I do in order to restrict community users to see each others..i.e V1 cannot see V2 but can only see the community admin in his chat list..
hi Mazhar Alam
Did u find the solution for this. I have same part of requirement here , plz can u help me.
Mazhar Alam, módosítva 11 év-val korábban
RE: Filter users by friends in chat portlet
Regular Member Bejegyzések: 191 Csatlakozás dátuma: 2011.11.25. Legújabb bejegyzések
HI
Well i had achieved this req...suggest you to use condition and then add the users to the list based on their role.
Thanks
Well i had achieved this req...suggest you to use condition and then add the users to the list based on their role.
Thanks
Kashif Ayyaz Haider, módosítva 9 év-val korábban
RE: Filter users by friends in chat portlet
Junior Member Bejegyzések: 35 Csatlakozás dátuma: 2013.03.16. Legújabb bejegyzések
Could you please give example how to get logged in user list to achieve this
waiting......
waiting......
Eibar Sosa, módosítva 11 év-val korábban
RE: Filter users by friends in chat portlet
New Member Bejegyzések: 4 Csatlakozás dátuma: 2011.02.22. Legújabb bejegyzések
Hi Hitoshi
I applied you recomendation..... but is not working
---------------------------------------------
buddy.list.max.buddies=500
#buddy.list.strategy=all
buddy.list.strategy=communities
#buddy.list.strategy=friends
#buddy.list.strategy=communities,friends
base.path=/opt/liferay/liferay-portal/webapps/chat-portlet/WEB-INF/classes/portlet.properties
----------------------------------------------
I still seeing all members online, I need make another change?
Regards
Eibar
I applied you recomendation..... but is not working
---------------------------------------------
buddy.list.max.buddies=500
#buddy.list.strategy=all
buddy.list.strategy=communities
#buddy.list.strategy=friends
#buddy.list.strategy=communities,friends
base.path=/opt/liferay/liferay-portal/webapps/chat-portlet/WEB-INF/classes/portlet.properties
----------------------------------------------
I still seeing all members online, I need make another change?
Regards
Eibar
Hitoshi Ozawa, módosítva 11 év-val korábban
RE: Filter users by friends in chat portlet
Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések#buddy.list.strategy=all
buddy.list.strategy=communities
#buddy.list.strategy=friends
#buddy.list.strategy=communities,friends
You should comment out communities and uncomment friends.
#buddy.list.strategy=all
#buddy.list.strategy=communities
buddy.list.strategy=friends
#buddy.list.strategy=communities,friends
Eibar Sosa, módosítva 11 év-val korábban
RE: Filter users by friends in chat portlet
New Member Bejegyzések: 4 Csatlakozás dátuma: 2011.02.22. Legújabb bejegyzések
Hi Hitoshi
I want filter users by communities....not by firiends
The problem is that chat portlet is not respecting the rule
#buddy.list.strategy=all
buddy.list.strategy=communities
#buddy.list.strategy=friends
#buddy.list.strategy=communities,friends
I want filter users by communities....not by firiends
The problem is that chat portlet is not respecting the rule
#buddy.list.strategy=all
buddy.list.strategy=communities
#buddy.list.strategy=friends
#buddy.list.strategy=communities,friends
Hitoshi Ozawa, módosítva 11 év-val korábban
RE: Filter users by friends in chat portlet
Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
Eibar, if you have a new question different from those of the subject, please create a new thread. It gets very confusing when the thread goes off the topic of the subject. Please also specify which version of liferay you're using.
fouad fouad, módosítva 9 év-val korábban
RE: Filter users by friends in chat portlet
Junior Member Bejegyzések: 28 Csatlakozás dátuma: 2014.08.08. Legújabb bejegyzésekHitoshi Ozawa:
#buddy.list.strategy=all
buddy.list.strategy=communities
#buddy.list.strategy=friends
#buddy.list.strategy=communities,friends
You should comment out communities and uncomment friends.
#buddy.list.strategy=all
#buddy.list.strategy=communities
buddy.list.strategy=friends
#buddy.list.strategy=communities,friends
hello Hitoshi
im new to liferay, and i want to have a portlet that shows total users of all time , and total user online now .
can u guide me on how to do it
thank you.
Mazhar Alam, módosítva 11 év-val korábban
RE: Filter users by friends in chat portlet
Regular Member Bejegyzések: 191 Csatlakozás dátuma: 2011.11.25. Legújabb bejegyzések
Hi Eibar,
Did you check if your user belongs to the same community?
Did you check if your user belongs to the same community?
Vikash Pareek, módosítva 11 év-val korábban
RE: Filter users by friends in chat portlet
New Member Bejegyzések: 15 Csatlakozás dátuma: 2012.12.11. Legújabb bejegyzések
Hello to all,
I am using liferay 6.1.1 ce.
I have following hierarchy :
1.) default site named "XYZ".
2.) organizations "org_1".
3.) users "user_1" and "user_2".
4.) "user_1" is a member of site "XYZ" and organization "org_1".
5.) "user_2" is member of organization "org_1".
6.) user_1 and user_2 are not friend.
7.) I have checked both user_1 and user_2 are also member of site corresponding to "org_1".
I have add line "buddy.list.strategy=communities" in portlet.properties of chat portlet.
Problem is that both user_1 and user_2 not found each other in online friends.
But if user_1 and user_2 both are the member of default site "XYZ" then both visible online for each other in chat portlet.
Please Suggest what will i have to do for this ?
I am using liferay 6.1.1 ce.
I have following hierarchy :
1.) default site named "XYZ".
2.) organizations "org_1".
3.) users "user_1" and "user_2".
4.) "user_1" is a member of site "XYZ" and organization "org_1".
5.) "user_2" is member of organization "org_1".
6.) user_1 and user_2 are not friend.
7.) I have checked both user_1 and user_2 are also member of site corresponding to "org_1".
I have add line "buddy.list.strategy=communities" in portlet.properties of chat portlet.
Problem is that both user_1 and user_2 not found each other in online friends.
But if user_1 and user_2 both are the member of default site "XYZ" then both visible online for each other in chat portlet.
Please Suggest what will i have to do for this ?
Nithin Nanjundappa, módosítva 8 év-val korábban
RE: Filter users by friends in chat portlet
New Member Bejegyzés: 1 Csatlakozás dátuma: 2015.06.08. Legújabb bejegyzésekVikash Pareek:
Hello to all,
I am using liferay 6.1.1 ce.
I have following hierarchy :
1.) default site named "XYZ".
2.) organizations "org_1".
3.) users "user_1" and "user_2".
4.) "user_1" is a member of site "XYZ" and organization "org_1".
5.) "user_2" is member of organization "org_1".
6.) user_1 and user_2 are not friend.
7.) I have checked both user_1 and user_2 are also member of site corresponding to "org_1".
I have add line "buddy.list.strategy=communities" in portlet.properties of chat portlet.
Problem is that both user_1 and user_2 not found each other in online friends.
But if user_1 and user_2 both are the member of default site "XYZ" then both visible online for each other in chat portlet.
Please Suggest what will i have to do for this ?
Hi Vikash,
I'm trying to solve a same scenario, did you encounter any solution for this?
Regards,
Nithin