Пример #1
0
    $fHand = new bXForumHandler();
    $forums = $fHand->getForums(0, $xoopsModuleConfig['show_inactive'] ? -1 : 1, true);
    $posters = array();
    $tpl->assign('forums', forums_data($forums));
}
$user = bXFunctions::getLastUser();
if ($user) {
    $tpl->assign('user', array('id' => $user->uid(), 'uname' => $user->uname()));
}
unset($user);
// Usuarios Conectados
$tpl->assign('register_num', bXFunctions::getOnlineCount(1));
$tpl->assign('anonymous_num', bXFunctions::getOnlineCount(0));
$tpl->assign('total_users', bXFunctions::totalUsers());
$tpl->assign('total_topics', bXFunctions::totalTopics());
$tpl->assign('total_posts', bXFunctions::totalPosts());
$tpl->assign('lang_forum', __('Forum', 'bxpress'));
$tpl->assign('lang_topics', __('Topics', 'bxpress'));
$tpl->assign('lang_posts', __('Posts', 'bxpress'));
$tpl->assign('lang_lastpost', __('Last Post', 'bxpress'));
$tpl->assign('lang_lastuser', __('Last registered user:'******'bxpress'));
$tpl->assign('lang_regnum', __('Registered users conected:', 'bxpress'));
$tpl->assign('lang_annum', __('Anonymous users conected:', 'bxpress'));
$tpl->assign('lang_totalusers', __('Registered users:', 'bxpress'));
$tpl->assign('lang_totaltopics', __('Total topics:', 'bxpress'));
$tpl->assign('lang_totalposts', __('Total posts:', 'bxpress'));
$tpl->assign('lang_ourforums', __('Our Forums', 'bxpress'));
$tpl->assign('lang_foot', __('%s posts in %s topics. %s. Last post by %s %s', 'bxpress'));
$tpl->assign('xoops_pagetitle', $xoopsModuleConfig['forum_title']);
bXFunctions::makeHeader();
bXFunctions::loadAnnouncements(0);