{"action":"created","issue":{"url":"https://api.github.com/repos/JoomJunk/shoutbox/issues/140","labels_url":"https://api.github.com/repos/JoomJunk/shoutbox/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/JoomJunk/shoutbox/issues/140/comments","events_url":"https://api.github.com/repos/JoomJunk/shoutbox/issues/140/events","html_url":"https://github.com/JoomJunk/shoutbox/issues/140","id":56689856,"number":140,"title":"Jomsocial avatar integration","user":{"login":"PLFoxNET","id":2227327,"avatar_url":"https://avatars.githubusercontent.com/u/2227327?v=3","gravatar_id":"","url":"https://api.github.com/users/PLFoxNET","html_url":"https://github.com/PLFoxNET","followers_url":"https://api.github.com/users/PLFoxNET/followers","following_url":"https://api.github.com/users/PLFoxNET/following{/other_user}","gists_url":"https://api.github.com/users/PLFoxNET/gists{/gist_id}","starred_url":"https://api.github.com/users/PLFoxNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PLFoxNET/subscriptions","organizations_url":"https://api.github.com/users/PLFoxNET/orgs","repos_url":"https://api.github.com/users/PLFoxNET/repos","events_url":"https://api.github.com/users/PLFoxNET/events{/privacy}","received_events_url":"https://api.github.com/users/PLFoxNET/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JoomJunk/shoutbox/labels/avatar","name":"avatar","color":"207de5"},{"url":"https://api.github.com/repos/JoomJunk/shoutbox/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-05T16:07:11Z","updated_at":"2015-02-27T15:17:09Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/JoomJunk/shoutbox/issues/comments/76409966","html_url":"https://github.com/JoomJunk/shoutbox/issues/140#issuecomment-76409966","issue_url":"https://api.github.com/repos/JoomJunk/shoutbox/issues/140","id":76409966,"user":{"login":"C-Lodder","id":2019801,"avatar_url":"https://avatars.githubusercontent.com/u/2019801?v=3","gravatar_id":"","url":"https://api.github.com/users/C-Lodder","html_url":"https://github.com/C-Lodder","followers_url":"https://api.github.com/users/C-Lodder/followers","following_url":"https://api.github.com/users/C-Lodder/following{/other_user}","gists_url":"https://api.github.com/users/C-Lodder/gists{/gist_id}","starred_url":"https://api.github.com/users/C-Lodder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/C-Lodder/subscriptions","organizations_url":"https://api.github.com/users/C-Lodder/orgs","repos_url":"https://api.github.com/users/C-Lodder/repos","events_url":"https://api.github.com/users/C-Lodder/events{/privacy}","received_events_url":"https://api.github.com/users/C-Lodder/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T15:17:09Z","updated_at":"2015-02-27T15:17:09Z","body":"Please try with the following code:\r\n\r\n```\r\n$core = JPATH_ROOT.'/components/com_community/libraries/core.php';\r\n\r\nif (file_exists($core))\r\n{\r\n\tinclude_once JPATH_ROOT.'/components/com_community/libraries/core.php';\r\n}\r\n\r\n$cuser \t\t= CFactory::getUser($user->id);\r\n$avatarUrl \t= $cuser->getThumbAvatar();\r\n\r\n$url = '<img src=\"'.$avatarUrl.'\" height=\"30\" width=\"30\">';\r\n```"}}