access_id)) { echo elgg_echo("messageboard:failure"); } } else { echo elgg_echo('messageboard:somethingwentwrong'); } //step two - grab the latest messageboard contents, this will include the message above, unless an issue //has occurred. $contents = $user->getAnnotations('messageboard', $numToDisplay, 0, 'desc'); //step three - display the latest results if ($contents) { foreach ($contents as $content) { echo elgg_view("messageboard/messageboard_content", array('annotation' => $content)); } }