Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Vaneet Sharma
Redirection to a user profile page.
December 9, 2008 2:29 AM
Answer

Vaneet Sharma

Rank: Regular Member

Posts: 195

Join Date: July 25, 2008

Recent Posts

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
Jerry Niu
RE: Redirection to a user profile page.
December 9, 2008 2:51 PM
Answer

Jerry Niu

LIFERAY STAFF

Rank: Expert

Posts: 451

Join Date: June 21, 2006

Recent Posts

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
RE: Redirection to a user profile page.
December 12, 2008 3:54 AM
Answer

Vaneet Sharma

Rank: Regular Member

Posts: 195

Join Date: July 25, 2008

Recent Posts

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
RE: Redirection to a user profile page.
December 26, 2008 7:47 AM
Answer

Vaneet Sharma

Rank: Regular Member

Posts: 195

Join Date: July 25, 2008

Recent Posts

Any help !
The Meurwinn Concept Concept
RE: Redirection to a user profile page.
December 29, 2008 5:02 AM
Answer

The Meurwinn Concept Concept

Rank: Expert

Posts: 262

Join Date: April 9, 2006

Recent Posts

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
RE: Redirection to a user profile page.
December 29, 2008 10:48 PM
Answer

Vaneet Sharma

Rank: Regular Member

Posts: 195

Join Date: July 25, 2008

Recent Posts

Any example or code snippet for this.
The Meurwinn Concept Concept
RE: Redirection to a user profile page.
December 30, 2008 12:58 AM
Answer

The Meurwinn Concept Concept

Rank: Expert

Posts: 262

Join Date: April 9, 2006

Recent Posts

All you need is in "http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Customizing+the+default+page+after+login"
Vaneet Sharma
RE: Redirection to a user profile page.
December 30, 2008 4:57 AM
Answer

Vaneet Sharma

Rank: Regular Member

Posts: 195

Join Date: July 25, 2008

Recent Posts

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 ?
Kowbathullah Gnaniyar
RE: Redirection to a user profile page.
December 30, 2008 5:04 AM
Answer

Kowbathullah Gnaniyar

Rank: Liferay Master

Posts: 608

Join Date: December 19, 2007

Recent Posts

Hi Vaneeth,

you can call this method:


themeDisplay.getURLMyAccount();


( Note: import proper class and object for ThemeDisplay)

HTH


-Gnaniyar Zubair
Vaneet Sharma
RE: Redirection to a user profile page.
December 30, 2008 6:00 AM
Answer

Vaneet Sharma

Rank: Regular Member

Posts: 195

Join Date: July 25, 2008

Recent Posts

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
The Meurwinn Concept Concept
RE: Redirection to a user profile page.
December 30, 2008 7:39 AM
Answer

The Meurwinn Concept Concept

Rank: Expert

Posts: 262

Join Date: April 9, 2006

Recent Posts

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"
Vaneet Sharma
RE: Redirection to a user profile page.
January 2, 2009 4:10 AM
Answer

Vaneet Sharma

Rank: Regular Member

Posts: 195

Join Date: July 25, 2008

Recent Posts

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
Sandro Rizzuto
RE: Redirection to a user profile page.
March 14, 2013 9:07 AM
Answer

Sandro Rizzuto

Rank: New Member

Posts: 2

Join Date: November 13, 2012

Recent Posts

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
RE: Redirection to a user profile page.
September 18, 2013 6:12 AM
Answer

Ashok BS

Rank: Junior Member

Posts: 30

Join Date: August 26, 2013

Recent Posts

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.