Fórum

Redirection to a user profile page.

Vaneet Sharma, modificado 15 Anos atrás.

Redirection to a user profile page.

Regular Member Postagens: 195 Data de Entrada: 25/07/08 Postagens Recentes
Hi,

How can we redirect to a user profile page whenver a user link is clicked on a Message Board / Blog .

Currently it is redirected to the user My Community public page .

Thanks
thumbnail
Jerry Niu, modificado 15 Anos atrás.

RE: Redirection to a user profile page.

Expert Postagens: 451 Data de Entrada: 21/06/06 Postagens Recentes
I think the two pages you refer to is the same.

But, if they not, you need to modify the link to goto where you want.

if you want a programmatic way, look into the "defaultlandingpage" in the Portal Admin guide.
Vaneet Sharma, modificado 15 Anos atrás.

RE: Redirection to a user profile page.

Regular Member Postagens: 195 Data de Entrada: 25/07/08 Postagens Recentes
For changing the URL i need to edit the param (user) of <iferay-ui:user-display> tag.

But can anbody tell me how can i get the profile page URL for every user
Vaneet Sharma, modificado 15 Anos atrás.

RE: Redirection to a user profile page.

Regular Member Postagens: 195 Data de Entrada: 25/07/08 Postagens Recentes
Any help !
thumbnail
The Meurwinn Concept, modificado 15 Anos atrás.

RE: Redirection to a user profile page.

Expert Postagens: 261 Data de Entrada: 10/04/06 Postagens Recentes
Jerry Niu:
I think the two pages you refer to is the same.

But, if they not, you need to modify the link to goto where you want.

if you want a programmatic way, look into the "defaultlandingpage" in the Portal Admin guide.


Yes, you can implement your redirection with the "user id"
Vaneet Sharma, modificado 15 Anos atrás.

RE: Redirection to a user profile page.

Regular Member Postagens: 195 Data de Entrada: 25/07/08 Postagens Recentes
Any example or code snippet for this.
thumbnail
The Meurwinn Concept, modificado 15 Anos atrás.

RE: Redirection to a user profile page.

Expert Postagens: 261 Data de Entrada: 10/04/06 Postagens Recentes
All you need is in "http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Customizing+the+default+page+after+login"
Vaneet Sharma, modificado 15 Anos atrás.

RE: Redirection to a user profile page.

Regular Member Postagens: 195 Data de Entrada: 25/07/08 Postagens Recentes
The Meurwinn Concept:
All you need is in "http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Customizing+the+default+page+after+login"



Guys , let me reiterate my question :

While viewing a message thread or a blog , if the user name (just beneath the photo) is clicked , then it should open the profile page of the user.

For achieving this where should i make the changes ?
thumbnail
Gnaniyar Zubair, modificado 15 Anos atrás.

RE: Redirection to a user profile page.

Liferay Master Postagens: 722 Data de Entrada: 19/12/07 Postagens Recentes
Hi Vaneeth,

you can call this method:


themeDisplay.getURLMyAccount();


( Note: import proper class and object for ThemeDisplay)

HTH


-Gnaniyar Zubair
Vaneet Sharma, modificado 15 Anos atrás.

RE: Redirection to a user profile page.

Regular Member Postagens: 195 Data de Entrada: 25/07/08 Postagens Recentes
Thanks Zubair !

I made the changes in Start.jsp and it worked .
Now i have to make the opened My Account page of other users non editable .
Any thoughts on that
Vaneet Sharma, modificado 15 Anos atrás.

RE: Redirection to a user profile page.

Regular Member Postagens: 195 Data de Entrada: 25/07/08 Postagens Recentes
Hi Zubair,

I am able to trap the logged in user MyAccount details using the themeDisplay.getURLMyAccount() .

But can we trap the My Account details of all the users who have posted in a blog ./ message thread.

Thanks
thumbnail
Sandro Rizzuto, modificado 11 Anos atrás.

RE: Redirection to a user profile page.

New Member Postagens: 2 Data de Entrada: 13/11/12 Postagens Recentes
Solved!

In view_entry_content.jsp add:

User userDisplay = UserLocalServiceUtil.getUserById(entry.getUserId()); (at line 25)

<a href="<%= userDisplay.getDisplayURL(themeDisplay) %>"><%= HtmlUtil.escape(PortalUtil.getUserName(entry.getUserId(), entry.getUserName())) %></a> (at line 192)

I hope it will be helpful!
Ashok BS, modificado 10 Anos atrás.

RE: Redirection to a user profile page.

Junior Member Postagens: 30 Data de Entrada: 26/08/13 Postagens Recentes
Hi,

Can anyone guide or help me with this? My scenario is , iam populating list of users in Employee search portlet (i.e. custom portlet) and displaying those records in the same portlet with fields such as: Employee ID, First Name, Last Name & location using liferay provided Search-container.

Now i want to give a hyperlink on Employee ID where, it has to navigate to the particular users "Manage Account URL" . I know we can use themeDisplay.getURLMyAccount() which will navigate to the logged in user's account. But i need to navigate to search listed users respective account URL when i click on the employee id? Please this is very much urgent. Please help.
thumbnail
The Meurwinn Concept, modificado 15 Anos atrás.

RE: Redirection to a user profile page.

Expert Postagens: 261 Data de Entrada: 10/04/06 Postagens Recentes
Sorry, it was not for this thread...
The Meurwinn Concept:
All you need is in "http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Customizing+the+default+page+after+login"