掲示板
Portrait Url without Theme Display
7年前 に Asad Saeed Awan によって更新されました。
Portrait Url without Theme Display
Regular Member 投稿: 126 参加年月日: 15/01/16 最新の投稿
Hello,
How do I get portrait URL without theme display?
How do I get portrait URL without theme display?
7年前 に Andrew Jardine によって更新されました。
RE: Portrait Url without Theme Display
Liferay Legend 投稿: 2416 参加年月日: 10/12/22 最新の投稿
Hi Asad,
I am curious -- where are you trying to access the portrait URL from that you don't have a theme display?
Apart from my question, the method that uses the theme display only seems to require the image path. Perhaps you can calculate it separately. My search of the source revealed it as calculated like so --
Once you have it, and the user details of course, then you can just use the logic from that method (that uses the ThemeDisplay parameter). The UserConstants class is in the portal-service.jar so it is available across the server.
Let me know if that helps -- and where you are trying to access the portrait URL from.
I am curious -- where are you trying to access the portrait URL from that you don't have a theme display?
Apart from my question, the method that uses the theme display only seems to require the image path. Perhaps you can calculate it separately. My search of the source revealed it as calculated like so --
setPathThemeImages(
cdnBaseURL + themeStaticResourcePath + theme.getImagesPath());
Once you have it, and the user details of course, then you can just use the logic from that method (that uses the ThemeDisplay parameter). The UserConstants class is in the portal-service.jar so it is available across the server.
return UserConstants.getPortraitURL(
themeDisplay.getPathImage(), isMale(), getPortraitId(),
getUserUuid());
Let me know if that helps -- and where you are trying to access the portrait URL from.
7年前 に Fil Giu によって更新されました。
RE: Portrait Url without Theme Display
Junior Member 投稿: 48 参加年月日: 13/11/20 最新の投稿
I have the same problem.
I would access the user's avatar image by public API, in order to show the img in an other tools.
Is it possible ?
I would access the user's avatar image by public API, in order to show the img in an other tools.
Is it possible ?