1 sayfadan 1. sayfa

Navigation Link Fix - 1.0.0

İletiTarih: 29.10.2006, 16:20
sabri ünal
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

Cvp: Navigation Link Fix - 1.0.0

İletiTarih: 29.10.2006, 18:06
EFE03
bu mod ne ise yarıyor

İletiTarih: 30.10.2006, 15:08
sabri ünal
mozilla kullanmıyorum, fakat mozillla için bir fix diyor...

İletiTarih: 04.01.2007, 14:40
sabri ünal
evet, bu mesajdan önceki mesajımı lanetliyorum arkadaşlar... hakkaten böyle bir şey olabilir mi? mozilla kullanılmaz mı? yapmayın etmeyin... işte işin doğrusu, mozilla kullanmayan açık kaynak kodcu da değildir phpBB ci de değildir...

işin esprisi bir yana modu az önce bir daha inceledim ve ne işe yaradığına karar verdim...

önceden kodlar

Kod: Tümünü seç
if ( !$board_config['override_user_style'] )
{
kodlar
}

etiketi içinde kalmış ve üye teması üzerine yazınca hataya neden oluyormuş, tabii bu kısım da sadece mozilla için bir kod olduğundan sadece mozilla da hatalı görünüyormuş...

bunu önemli bir fix olarak kabul edin ve uygulayın...

İletiTarih: 05.01.2007, 20:16
EFE03
ne ise yarıyor bu mod

İletiTarih: 07.01.2007, 01:08
kenan hûdabi
EFE03 yazdı:ne ise yarıyor bu mod


el-cevap :
sabri ünal yazdı:fakat mozillla için bir fix diyor...

Cvp: Navigation Link Fix - 1.0.0

İletiTarih: 10.04.2007, 19:29
EFE03
neyin fixi