Gabriel Leon Leyva 12 Years Ago Thanks James for sharing :=), saludos desde Mèxico. Please sign in to reply. Reply as... Cancel
Gregory Amerson 12 Years Ago Very nice! thanks for taking time to write this up. Please sign in to reply. Reply as... Cancel Marcellus Tavares Gregory Amerson 12 Years Ago Great article, thanks James! Please sign in to reply. Reply as... Cancel
Marcellus Tavares Gregory Amerson 12 Years Ago Great article, thanks James! Please sign in to reply. Reply as... Cancel
vijay pandey 12 Years Ago Can any one guide to me how we can done clustering in liferay using jboss with full of configurations ? Please sign in to reply. Reply as... Cancel
Natasa Bulatovic 12 Years Ago By following the installation instructions in the last chapter, all i get for users data is indeed what comes as a default from the US Headquarters address.User has set-up Address (street, city, zip and country), but the data show always that changes appeared in US.Any further hints?PS. Tries also with the custom attribute named "country" Please sign in to reply. Reply as... Cancel Dieter Metzler Natasa Bulatovic 12 Years Ago I have got the same Problem. The infobox doesn´t show the correct location and the Userportrait isn´t displayed. Please give me some hints. I really like this feature when it works. Please sign in to reply. Reply as... Cancel
Dieter Metzler Natasa Bulatovic 12 Years Ago I have got the same Problem. The infobox doesn´t show the correct location and the Userportrait isn´t displayed. Please give me some hints. I really like this feature when it works. Please sign in to reply. Reply as... Cancel
James Falkner 12 Years Ago @Natasa @Dieter What version of Liferay are you using? The above source code is written for 6.0 SP2 (this is the version we are currently running on liferay.com). The "country" custom attribute on liferay.com is of type "group of text values", which means the value returned by $user.getExpandoBridge().getAttribute("country") returns an array of strings, which is why you see this in the source code: $stringUtil.merge($country) (it turns the array into a single string).If you give me the version of liferay you are using I'll test it on that and see if any changes are required. Please sign in to reply. Reply as... Cancel Natasa Bulatovic James Falkner 12 Years Ago Hi James, thanks for writing this back. This problem was appearing with 6.0.6 CE Liferay version. I think it somehow worked only with the custom attribute named "country" of type text.Somehow i was expecting it would also work from the Address provided as a primary address of the user (or if this would be empty, from the user#s organization address).Thanks, once again Please sign in to reply. Reply as... Cancel Dieter Metzler Natasa Bulatovic 12 Years Ago Hi James, thank you for your answer. I´m also using Liferay CE 6.0.6. I tried it with the custom attribute "country" of type text and it shows the right location now. What can I do that ist shows the location from the User Address? I have got still the problem that the User Portrait is´t displayed. Have you got any idee.Thank you very much. Greetings from Austria. Please sign in to reply. Reply as... Cancel Dieter Metzler Dieter Metzler 12 Years Ago One more issue. When I´m logged in it shows the location from the custom field "country", but when I´m logged out it shows the L.A. headquater. Why it makes a difference if I´m logged in or out?Thanks, once again Please sign in to reply. Reply as... Cancel James Falkner Dieter Metzler 12 Years Ago @Dieter - it shouldn't matter if you're logged in or not. I'm working on making this work in Liferay 6.0.6 now. Stay tuned. Please sign in to reply. Reply as... Cancel James Falkner James Falkner 12 Years Ago Ok guys I figured it out - check out http://www.liferay.com/community/forums/-/message_boards/message/11789742@Dieter make sure you set the permissions on the custom attribute so that the guest user can "view" the attribute (see the message board post above for details) Please sign in to reply. Reply as... Cancel Matteo S James Falkner 12 Years Ago Hi James.I'm trying to use your template in liferay 6.1b4, without too much success.I've tracked the problem down to the following call, which doesn't return anything. #set ($socialActivityFeedEntry = $socialActivityInterpreterLocalService.interpret($socialActivity, $themeDisplay))Consequently, the check on $socialActivityFeedEntry fails and nothing ends in jsonArray.Am I missing something?Thanks in advance! Please sign in to reply. Reply as... Cancel James Falkner Matteo S 12 Years Ago @Matteo - I tried this on 6.1 - and found a few issues, the biggest of which is a bug in Liferay 6.1 : http://issues.liferay.com/browse/LPS-24172 once this is fixed, things should work right. I'll let you know. Please sign in to reply. Reply as... Cancel James Falkner James Falkner 12 Years Ago @Matteo - with Ray's help we figured out the problem. See http://www.liferay.com/community/forums/-/message_boards/view_message/11789992#_19_message_11806835 Please sign in to reply. Reply as... Cancel
Natasa Bulatovic James Falkner 12 Years Ago Hi James, thanks for writing this back. This problem was appearing with 6.0.6 CE Liferay version. I think it somehow worked only with the custom attribute named "country" of type text.Somehow i was expecting it would also work from the Address provided as a primary address of the user (or if this would be empty, from the user#s organization address).Thanks, once again Please sign in to reply. Reply as... Cancel Dieter Metzler Natasa Bulatovic 12 Years Ago Hi James, thank you for your answer. I´m also using Liferay CE 6.0.6. I tried it with the custom attribute "country" of type text and it shows the right location now. What can I do that ist shows the location from the User Address? I have got still the problem that the User Portrait is´t displayed. Have you got any idee.Thank you very much. Greetings from Austria. Please sign in to reply. Reply as... Cancel Dieter Metzler Dieter Metzler 12 Years Ago One more issue. When I´m logged in it shows the location from the custom field "country", but when I´m logged out it shows the L.A. headquater. Why it makes a difference if I´m logged in or out?Thanks, once again Please sign in to reply. Reply as... Cancel James Falkner Dieter Metzler 12 Years Ago @Dieter - it shouldn't matter if you're logged in or not. I'm working on making this work in Liferay 6.0.6 now. Stay tuned. Please sign in to reply. Reply as... Cancel James Falkner James Falkner 12 Years Ago Ok guys I figured it out - check out http://www.liferay.com/community/forums/-/message_boards/message/11789742@Dieter make sure you set the permissions on the custom attribute so that the guest user can "view" the attribute (see the message board post above for details) Please sign in to reply. Reply as... Cancel Matteo S James Falkner 12 Years Ago Hi James.I'm trying to use your template in liferay 6.1b4, without too much success.I've tracked the problem down to the following call, which doesn't return anything. #set ($socialActivityFeedEntry = $socialActivityInterpreterLocalService.interpret($socialActivity, $themeDisplay))Consequently, the check on $socialActivityFeedEntry fails and nothing ends in jsonArray.Am I missing something?Thanks in advance! Please sign in to reply. Reply as... Cancel James Falkner Matteo S 12 Years Ago @Matteo - I tried this on 6.1 - and found a few issues, the biggest of which is a bug in Liferay 6.1 : http://issues.liferay.com/browse/LPS-24172 once this is fixed, things should work right. I'll let you know. Please sign in to reply. Reply as... Cancel James Falkner James Falkner 12 Years Ago @Matteo - with Ray's help we figured out the problem. See http://www.liferay.com/community/forums/-/message_boards/view_message/11789992#_19_message_11806835 Please sign in to reply. Reply as... Cancel
Dieter Metzler Natasa Bulatovic 12 Years Ago Hi James, thank you for your answer. I´m also using Liferay CE 6.0.6. I tried it with the custom attribute "country" of type text and it shows the right location now. What can I do that ist shows the location from the User Address? I have got still the problem that the User Portrait is´t displayed. Have you got any idee.Thank you very much. Greetings from Austria. Please sign in to reply. Reply as... Cancel Dieter Metzler Dieter Metzler 12 Years Ago One more issue. When I´m logged in it shows the location from the custom field "country", but when I´m logged out it shows the L.A. headquater. Why it makes a difference if I´m logged in or out?Thanks, once again Please sign in to reply. Reply as... Cancel James Falkner Dieter Metzler 12 Years Ago @Dieter - it shouldn't matter if you're logged in or not. I'm working on making this work in Liferay 6.0.6 now. Stay tuned. Please sign in to reply. Reply as... Cancel James Falkner James Falkner 12 Years Ago Ok guys I figured it out - check out http://www.liferay.com/community/forums/-/message_boards/message/11789742@Dieter make sure you set the permissions on the custom attribute so that the guest user can "view" the attribute (see the message board post above for details) Please sign in to reply. Reply as... Cancel Matteo S James Falkner 12 Years Ago Hi James.I'm trying to use your template in liferay 6.1b4, without too much success.I've tracked the problem down to the following call, which doesn't return anything. #set ($socialActivityFeedEntry = $socialActivityInterpreterLocalService.interpret($socialActivity, $themeDisplay))Consequently, the check on $socialActivityFeedEntry fails and nothing ends in jsonArray.Am I missing something?Thanks in advance! Please sign in to reply. Reply as... Cancel James Falkner Matteo S 12 Years Ago @Matteo - I tried this on 6.1 - and found a few issues, the biggest of which is a bug in Liferay 6.1 : http://issues.liferay.com/browse/LPS-24172 once this is fixed, things should work right. I'll let you know. Please sign in to reply. Reply as... Cancel James Falkner James Falkner 12 Years Ago @Matteo - with Ray's help we figured out the problem. See http://www.liferay.com/community/forums/-/message_boards/view_message/11789992#_19_message_11806835 Please sign in to reply. Reply as... Cancel
Dieter Metzler Dieter Metzler 12 Years Ago One more issue. When I´m logged in it shows the location from the custom field "country", but when I´m logged out it shows the L.A. headquater. Why it makes a difference if I´m logged in or out?Thanks, once again Please sign in to reply. Reply as... Cancel James Falkner Dieter Metzler 12 Years Ago @Dieter - it shouldn't matter if you're logged in or not. I'm working on making this work in Liferay 6.0.6 now. Stay tuned. Please sign in to reply. Reply as... Cancel James Falkner James Falkner 12 Years Ago Ok guys I figured it out - check out http://www.liferay.com/community/forums/-/message_boards/message/11789742@Dieter make sure you set the permissions on the custom attribute so that the guest user can "view" the attribute (see the message board post above for details) Please sign in to reply. Reply as... Cancel Matteo S James Falkner 12 Years Ago Hi James.I'm trying to use your template in liferay 6.1b4, without too much success.I've tracked the problem down to the following call, which doesn't return anything. #set ($socialActivityFeedEntry = $socialActivityInterpreterLocalService.interpret($socialActivity, $themeDisplay))Consequently, the check on $socialActivityFeedEntry fails and nothing ends in jsonArray.Am I missing something?Thanks in advance! Please sign in to reply. Reply as... Cancel James Falkner Matteo S 12 Years Ago @Matteo - I tried this on 6.1 - and found a few issues, the biggest of which is a bug in Liferay 6.1 : http://issues.liferay.com/browse/LPS-24172 once this is fixed, things should work right. I'll let you know. Please sign in to reply. Reply as... Cancel James Falkner James Falkner 12 Years Ago @Matteo - with Ray's help we figured out the problem. See http://www.liferay.com/community/forums/-/message_boards/view_message/11789992#_19_message_11806835 Please sign in to reply. Reply as... Cancel
James Falkner Dieter Metzler 12 Years Ago @Dieter - it shouldn't matter if you're logged in or not. I'm working on making this work in Liferay 6.0.6 now. Stay tuned. Please sign in to reply. Reply as... Cancel James Falkner James Falkner 12 Years Ago Ok guys I figured it out - check out http://www.liferay.com/community/forums/-/message_boards/message/11789742@Dieter make sure you set the permissions on the custom attribute so that the guest user can "view" the attribute (see the message board post above for details) Please sign in to reply. Reply as... Cancel Matteo S James Falkner 12 Years Ago Hi James.I'm trying to use your template in liferay 6.1b4, without too much success.I've tracked the problem down to the following call, which doesn't return anything. #set ($socialActivityFeedEntry = $socialActivityInterpreterLocalService.interpret($socialActivity, $themeDisplay))Consequently, the check on $socialActivityFeedEntry fails and nothing ends in jsonArray.Am I missing something?Thanks in advance! Please sign in to reply. Reply as... Cancel James Falkner Matteo S 12 Years Ago @Matteo - I tried this on 6.1 - and found a few issues, the biggest of which is a bug in Liferay 6.1 : http://issues.liferay.com/browse/LPS-24172 once this is fixed, things should work right. I'll let you know. Please sign in to reply. Reply as... Cancel James Falkner James Falkner 12 Years Ago @Matteo - with Ray's help we figured out the problem. See http://www.liferay.com/community/forums/-/message_boards/view_message/11789992#_19_message_11806835 Please sign in to reply. Reply as... Cancel
James Falkner James Falkner 12 Years Ago Ok guys I figured it out - check out http://www.liferay.com/community/forums/-/message_boards/message/11789742@Dieter make sure you set the permissions on the custom attribute so that the guest user can "view" the attribute (see the message board post above for details) Please sign in to reply. Reply as... Cancel Matteo S James Falkner 12 Years Ago Hi James.I'm trying to use your template in liferay 6.1b4, without too much success.I've tracked the problem down to the following call, which doesn't return anything. #set ($socialActivityFeedEntry = $socialActivityInterpreterLocalService.interpret($socialActivity, $themeDisplay))Consequently, the check on $socialActivityFeedEntry fails and nothing ends in jsonArray.Am I missing something?Thanks in advance! Please sign in to reply. Reply as... Cancel James Falkner Matteo S 12 Years Ago @Matteo - I tried this on 6.1 - and found a few issues, the biggest of which is a bug in Liferay 6.1 : http://issues.liferay.com/browse/LPS-24172 once this is fixed, things should work right. I'll let you know. Please sign in to reply. Reply as... Cancel James Falkner James Falkner 12 Years Ago @Matteo - with Ray's help we figured out the problem. See http://www.liferay.com/community/forums/-/message_boards/view_message/11789992#_19_message_11806835 Please sign in to reply. Reply as... Cancel
Matteo S James Falkner 12 Years Ago Hi James.I'm trying to use your template in liferay 6.1b4, without too much success.I've tracked the problem down to the following call, which doesn't return anything. #set ($socialActivityFeedEntry = $socialActivityInterpreterLocalService.interpret($socialActivity, $themeDisplay))Consequently, the check on $socialActivityFeedEntry fails and nothing ends in jsonArray.Am I missing something?Thanks in advance! Please sign in to reply. Reply as... Cancel James Falkner Matteo S 12 Years Ago @Matteo - I tried this on 6.1 - and found a few issues, the biggest of which is a bug in Liferay 6.1 : http://issues.liferay.com/browse/LPS-24172 once this is fixed, things should work right. I'll let you know. Please sign in to reply. Reply as... Cancel James Falkner James Falkner 12 Years Ago @Matteo - with Ray's help we figured out the problem. See http://www.liferay.com/community/forums/-/message_boards/view_message/11789992#_19_message_11806835 Please sign in to reply. Reply as... Cancel
James Falkner Matteo S 12 Years Ago @Matteo - I tried this on 6.1 - and found a few issues, the biggest of which is a bug in Liferay 6.1 : http://issues.liferay.com/browse/LPS-24172 once this is fixed, things should work right. I'll let you know. Please sign in to reply. Reply as... Cancel James Falkner James Falkner 12 Years Ago @Matteo - with Ray's help we figured out the problem. See http://www.liferay.com/community/forums/-/message_boards/view_message/11789992#_19_message_11806835 Please sign in to reply. Reply as... Cancel
James Falkner James Falkner 12 Years Ago @Matteo - with Ray's help we figured out the problem. See http://www.liferay.com/community/forums/-/message_boards/view_message/11789992#_19_message_11806835 Please sign in to reply. Reply as... Cancel
Olaf Kock 12 Years Ago @james could you try to use protocol-relative links to load the code from google? E.g. <link href="//code.google.com/apis/.....">This would work with https to google if the liferay page is accessed through https, http otherwise.This works well e.g. in google's weather api, I assume it would do here as well. Please sign in to reply. Reply as... Cancel
DarshanKumar N Bhatia 12 Years Ago Great Job Mr. James Falkner.....Nicely Explained ,Thanks for sharing........ Please sign in to reply. Reply as... Cancel Cody Rooks DarshanKumar N Bhatia 11 Years Ago Is there any way to scope this thing portal-wide (showing everyone's activities)?Thanks Please sign in to reply. Reply as... Cancel James Falkner Cody Rooks 11 Years Ago instead of using getGroupActivities(), you could use getActivities() which would get you everything. Please sign in to reply. Reply as... Cancel James Falkner James Falkner 11 Years Ago @olafk I changed it to use // - indeed it now works when accessing over https - thanks! Please sign in to reply. Reply as... Cancel
Cody Rooks DarshanKumar N Bhatia 11 Years Ago Is there any way to scope this thing portal-wide (showing everyone's activities)?Thanks Please sign in to reply. Reply as... Cancel James Falkner Cody Rooks 11 Years Ago instead of using getGroupActivities(), you could use getActivities() which would get you everything. Please sign in to reply. Reply as... Cancel James Falkner James Falkner 11 Years Ago @olafk I changed it to use // - indeed it now works when accessing over https - thanks! Please sign in to reply. Reply as... Cancel
James Falkner Cody Rooks 11 Years Ago instead of using getGroupActivities(), you could use getActivities() which would get you everything. Please sign in to reply. Reply as... Cancel James Falkner James Falkner 11 Years Ago @olafk I changed it to use // - indeed it now works when accessing over https - thanks! Please sign in to reply. Reply as... Cancel
James Falkner James Falkner 11 Years Ago @olafk I changed it to use // - indeed it now works when accessing over https - thanks! Please sign in to reply. Reply as... Cancel