Fórum
Register users to be able to search for users
Ketan Patel, modificado 11 Anos atrás.
Register users to be able to search for users
Junior Member Postagens: 72 Data de Entrada: 04/05/12 Postagens Recentes
Hi,
I want register users to be able to search for users and then click friends request. How can I achieve this?
Please reply me ASAP.
Thanks in advance.
I want register users to be able to search for users and then click friends request. How can I achieve this?
Please reply me ASAP.
Thanks in advance.
Brian Kim, modificado 11 Anos atrás.
RE: Register users to be able to search for users
Expert Postagens: 311 Data de Entrada: 17/08/04 Postagens Recentes
Hi Ketan,
This question is _really_ broad. There are a million different ways that this could be accomplished, but 99% of them might not meet your needs. For instance, one answer could be:
Create a portlet that queries the database using our service methods, output a list using a JSP, and then stick a button on the page that makes a friend request to the other person, who then needs to accept.
But then, that's probably not THE answer you were looking for.
This question is _really_ broad. There are a million different ways that this could be accomplished, but 99% of them might not meet your needs. For instance, one answer could be:
Create a portlet that queries the database using our service methods, output a list using a JSP, and then stick a button on the page that makes a friend request to the other person, who then needs to accept.
But then, that's probably not THE answer you were looking for.
Ketan Patel, modificado 11 Anos atrás.
RE: Register users to be able to search for users
Junior Member Postagens: 72 Data de Entrada: 04/05/12 Postagens Recentes
Hi Brian,
Yes, you are true. I thought the same for full-fill my current requirements.
Thanks,
Ketan Patel
Yes, you are true. I thought the same for full-fill my current requirements.
Thanks,
Ketan Patel
Hitoshi Ozawa, modificado 11 Anos atrás.
RE: Register users to be able to search for users
Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
So that was it? You're not having any problem getting a list of users in the same group or on using the search container? :-)
Ketan Patel, modificado 11 Anos atrás.
RE: Register users to be able to search for users
Junior Member Postagens: 72 Data de Entrada: 04/05/12 Postagens Recentes
Hi Hitoshi,
I wants in my search criteria only registered user, than users are from whatever groups it's fine.
I wants in my search criteria only registered user, than users are from whatever groups it's fine.
Hitoshi Ozawa, modificado 11 Anos atrás.
RE: Register users to be able to search for users
Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Then it's just a matter of calling dynamic query in UserLocalServiceUtil. Shouldn't take too much time to develop.
Hitoshi Ozawa, modificado 11 Anos atrás.
RE: Register users to be able to search for users
Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens RecentesI want register users to be able to search for users and then click friends request. How can I achieve this?
The easiest way is to post your request to the Marketplace to have someone develop it for you and then you can just purchase the portlet to deploy it on your server.
Sreeraj AV, modificado 11 Anos atrás.
RE: Register users to be able to search for users
Regular Member Postagens: 239 Data de Entrada: 27/04/10 Postagens RecentesKetan Patel:
Hi,
I want register users to be able to search for users and then click friends request. How can I achieve this?
Please reply me ASAP.
Thanks in advance.
You can customize Directory portlet for this..
Add a new JSP page under the same hook and implement Add Friend functionality inside JSP.
Now modify directory portlets user\search_columns.jspf by adding a new column for sending friendship request which has a javascript method call.
In the javascript method implementation, you have to use AUI.io.request class, which has a method that can call our new JSP file without reloading the page or calling the ProcessAction method .. see the example..
use var url=''/html/portlet/directory/user/newJSPFile.jsp instead of var url = '<%= ajaxCallResourceURL.toString() %>';