diff --git a/root/portal.php b/root/portal.php index 1ccd4cba..199d10a4 100644 --- a/root/portal.php +++ b/root/portal.php @@ -122,21 +122,19 @@ if ( $load_center === TRUE ) // show login box and user menu - // only registered user see user menu - if ($user->data['is_registered']) - { - include($phpbb_root_path . 'portal/block/user_menu.'.$phpEx); - } - else - { - include($phpbb_root_path . 'portal/block/login_box.'.$phpEx); - } +// only registered user see user menu +if ($user->data['is_registered']) +{ + include($phpbb_root_path . 'portal/block/user_menu.'.$phpEx); +} +else +{ + include($phpbb_root_path . 'portal/block/login_box.'.$phpEx); +} if ($portal_config['portal_main_menu']) { - $template->assign_vars(array( - 'S_DISPLAY_MAINMENU' => true, - )); + include($phpbb_root_path . 'portal/block/main_menu.'.$phpEx); } if ($portal_config['portal_user_menu']) diff --git a/root/portal/block/main_menu.php b/root/portal/block/main_menu.php index 62120f8e..0ad73d95 100644 --- a/root/portal/block/main_menu.php +++ b/root/portal/block/main_menu.php @@ -19,5 +19,12 @@ if (!defined('IN_PORTAL')) { exit; } -//we main delete this aswell? Oo + +$template->assign_vars(array( + 'S_DISPLAY_MAINMENU' => true, + 'U_M_BBCODE' => append_sid("{$phpbb_root_path}faq.$phpEx", 'mode=bbcode'), + 'U_M_TERMS' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=terms'), + 'U_M_PRV' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=privacy'), +)); + ?> \ No newline at end of file diff --git a/root/styles/prosilver/template/portal/block/main_menu.html b/root/styles/prosilver/template/portal/block/main_menu.html index 21dc0438..04203d57 100644 --- a/root/styles/prosilver/template/portal/block/main_menu.html +++ b/root/styles/prosilver/template/portal/block/main_menu.html @@ -27,9 +27,9 @@ {L_M_HELP} diff --git a/templates/subsilver2/template/portal/block/main_menu.html b/templates/subsilver2/template/portal/block/main_menu.html index e142f70b..8d3e5a25 100644 --- a/templates/subsilver2/template/portal/block/main_menu.html +++ b/templates/subsilver2/template/portal/block/main_menu.html @@ -59,19 +59,19 @@ {L_FAQ} - + - {L_M_BBCODE} + {L_M_BBCODE} - {L_M_TERMS} + {L_M_TERMS} - {L_M_PRV} + {L_M_PRV}