Report#90: Forum List on the Portal - like on the index, could be switched on and off in the ACP, default is off

This commit is contained in:
Kevin
2008-04-18 14:17:33 +00:00
parent b7c15cd0c6
commit 8fd9604c8b
8 changed files with 58 additions and 2 deletions

View File

@@ -58,6 +58,23 @@ if ( is_dir( $phpbb_root_path . 'install_portal/' ) === TRUE )
if ( $load_center === TRUE )
{
if ($portal_config['portal_forum_index'])
{
display_forums('');
$template->assign_vars(array(
'FORUM_IMG' => $user->img('forum_read', 'NO_NEW_POSTS'),
'FORUM_NEW_IMG' => $user->img('forum_unread', 'NEW_POSTS'),
'FORUM_LOCKED_IMG' => $user->img('forum_read_locked', 'NO_NEW_POSTS_LOCKED'),
'FORUM_NEW_LOCKED_IMG' => $user->img('forum_unread_locked', 'NO_NEW_POSTS_LOCKED'),
'S_DISPLAY_PORTAL_FORUM_INDEX' => true,
'U_MARK_FORUMS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'mark=forums') : '',
'U_MCP' => ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&mode=front', true, $user->session_id) : '')
);
}
if ($portal_config['portal_recent'])
{
include($phpbb_root_path . 'portal/block/recent.'.$phpEx);