- Kod: Tümünü seç
##############################################################
## MOD Title: Navigation Link Fix
## MOD Author: Thoul < thoul@phpbbsmith.com > ( Jeremy Rogers ) http://www.phpbbsmith.com
## MOD Description: Fixes broken Browser Navigation Links.
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 3 Minutes
## Files To Edit:
## includes/functions.php
## Included Files: N/A
## License: contrib/license.txt GNU General Public License v2
##############################################################
## Author Notes:
##
## This mod fixes a bug introduced in phpBB 2.0.5 that is present up through
## phpBB 2.0.21. Certain browsers (mainly Mozilla and Opera) support navigation
## links that can be used to easily access certain areas of a site with icons in
## the browsers's toolbars. phpBB's generation of these links was broken for
## logged in users in phpBB 2.0.5.
##
##############################################################
## BEFORE FOLLOWING THESE INSTRUCTIONS, YOU SHOULD BACK UP ALL RELATED FILES.
##############################################################
#
#-----[ OPEN ]--------------------------------------
#
includes/functions.php
#
#-----[ FIND ]--------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]--------------------------------------
#
// This file modified for Navigation Link Fix
#
#-----[ FIND ]--------------------------------------
#
//
// Set up style
//
#
#-----[ BEFORE, ADD ]--------------------------------------
#
//
// Mozilla navigation bar
// Default items that should be valid on all pages.
// Defined here to correctly assign the Language Variables
// and be able to change the variables within code.
//
$nav_links['top'] = array (
'url' => append_sid($phpbb_root_path . 'index.' . $phpEx),
'title' => sprintf($lang['Forum_Index'], $board_config['sitename'])
);
$nav_links['search'] = array (
'url' => append_sid($phpbb_root_path . 'search.' . $phpEx),
'title' => $lang['Search']
);
$nav_links['help'] = array (
'url' => append_sid($phpbb_root_path . 'faq.' . $phpEx),
'title' => $lang['FAQ']
);
$nav_links['author'] = array (
'url' => append_sid($phpbb_root_path . 'memberlist.' . $phpEx),
'title' => $lang['Memberlist']
);
#
#-----[ FIND ]--------------------------------------
#
# This should be a little more than 10 lines below the previous FIND step.
#
//
// Mozilla navigation bar
// Default items that should be valid on all pages.
// Defined here to correctly assign the Language Variables
// and be able to change the variables within code.
//
$nav_links['top'] = array (
'url' => append_sid($phpbb_root_path . 'index.' . $phpEx),
'title' => sprintf($lang['Forum_Index'], $board_config['sitename'])
);
$nav_links['search'] = array (
'url' => append_sid($phpbb_root_path . 'search.' . $phpEx),
'title' => $lang['Search']
);
$nav_links['help'] = array (
'url' => append_sid($phpbb_root_path . 'faq.' . $phpEx),
'title' => $lang['FAQ']
);
$nav_links['author'] = array (
'url' => append_sid($phpbb_root_path . 'memberlist.' . $phpEx),
'title' => $lang['Memberlist']
);
#
#-----[ REPLACE WITH ]--------------------------------------
#
// Mozilla navigation bar moved above for Navigation Link Fix
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM