function getRecentHistory($userId) { $html = '<div class="sidebox" id="rcwidget_profile">'; $html .= RCWidget::getProfileWidget(); $html .= "</div>"; $html .= "<script type='text/javascript'>rcUser = {$userId}</script>"; return $html; }