This is from photo_cumulus, member.php I guess, this file supplies image to the swf file. It works fine in older versions of elgg, not 1.7? What is missing hrere?
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
global $CONFIG;
$size = get_input('iconsize',null);
if(is_null($size)){
$size = get_plugin_setting('iconsize','photo_cumulus');
if(!$size)
$size = PHOTO_CUMULUS_ICONSIZE;
}
//Get number of user to show
$usernumber= get_input('usernumber',null);
if(is_null($usernumber)){
$usernumber = get_plugin_setting('usernumber','photo_cumulus');
if(!$usernumber)
$usernumber = PHOTO_CUMULUS_USERNUMBER;
}
$newest_members = get_entities_from_metadata('icontime', '', 'user', '', 0, $usernumber);
if($newest_members){
foreach($newest_members as $member){
$images .= "<image href=\"" . $member->getURL() . "\" >" . $member->getIcon($size) . "</image>";
}
if($images){
$images = "<images>$images</images>";
elgg_set_viewtype('xml');
page_draw('',trim(str_replace('&', '&', $images)));
}
}
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.