I'm using this in a custom PHP block in Simple Portal...
function show_aeva_media_block()
{
global $sourcedir;
// Load the language file
loadLanguage('Aeva');
// Grab the file.
if (file_exists($sourcedir . '/Aeva-Subs.php'))
require_once($sourcedir . '/Aeva-Subs.php');
// If it doesn't exist, tell them this and stop running.
else
{
echo '<b>You don\'t have Aeva installed! Unable to continue!</b>';
return;
}
// Use aeva functions to show the media.
echo aeva_listItems(aeva_getMediaItems(0, 6, 'RAND()'), false, '', 1);
}
// Run the function.;
show_aeva_media_block();
The 6 returns 6 images. I forget what the 0 and the 1 do.