[問題]定義cache_tree(未)

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

頭像
ilove1291
星球公民
星球公民
文章: 171
註冊時間: 2003-04-19 22:44

[問題]定義cache_tree(未)

文章 ilove1291 »

我想要裝
cat_hierarchy mod<<<還是你們知道更好的子分區MOD
在裝這個mod之前要裝 cache mod<<<下載下來的說明說的
按照以下方法安抓以後

代碼: 選擇全部

############################################################## 
## MOD Title:		Cache
## MOD Author:		Ptirhiik < ptirhiik@clanmckeen.com > (Pierre) http://rpgnet.clanmckeen.com
## MOD Description:
##			This mod will cache some tables. Used in Categories hierarchy and Profile Control Panel
## MOD Version:		0.0.2
## 
## Installation Level:	Easy
## Installation Time:	20 Minutes
## Files To Edit:
##			viewtopic.php (not necessary with PCP)
##
##			admin/admin_forumauth.php
##			admin/admin_ranks.php
##			admin/admin_smilies.php
##			admin/admin_styles.php (need to be cleaned up from categories hierarchy)
##			admin/admin_ug_auth.php (need to be cleaned up from categories hierarchy)
##			admin/admin_words.php (need to be cleaned up from categories hierarchy)
##
##			includes/bbcode.php
##			includes/functions.php (clean some functions with categories hierarchy)
##			includes/functions_admin.php (need to be cleaned up from categories hierarchy)
##			includes/functions_post.php (need to be cleaned up from categories hierarchy)
##			includes/usercp_register.php
##
## Included Files:
##			includes/def_birthday.php
##			includes/def_ranks.php
##			includes/def_smilies.php
##			includes/def_themes.php
##			includes/def_tree.php
##			includes/def_words.php
##
##			includes/functions_cache.php
##
##			includes/cache_tpls/def_birthday_def.tpl
##			includes/cache_tpls/def_ranks_def.tpl
##			includes/cache_tpls/def_smilies_def.tpl
##			includes/cache_tpls/def_themes_def.tpl
##			includes/cache_tpls/def_tree_def.tpl
##			includes/cache_tpls/def_words_def.tpl
##
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
##
##	Files to CHMOD 666 :
##			includes/def_birthday.php
##			includes/def_ranks.php
##			includes/def_smilies.php
##			includes/def_themes.php
##			includes/def_tree.php
##			includes/def_words.php
##
## Reminder : clean index.php with categories hierarchy installed on the board stats
## Required categories hierarchy 2.0.5 and +
##
############################################################## 
## MOD History: 
## 
##   2003-12-21 - Version 0.0.2
##      - first stand-alone publication
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
#
#-----[ COPY ]------------------------------------------------
#
#		copy includes/*.* to includes/*.*
#
copy includes/def_birthday.php to includes/def_birthday.php
copy includes/def_ranks.php to includes/def_ranks.php
copy includes/def_smilies.php to includes/def_smilies.php
copy includes/def_themes.php to includes/def_themes.php
copy includes/def_tree.php to includes/def_tree.php
copy includes/def_words.php to includes/def_words.php
#
#-----[ COPY ]------------------------------------------------
#
copy includes/functions_cache.php to includes/functions_cache.php
#
#-----[ COPY ]------------------------------------------------
#
#		copy includes/cache_tpls/*.* to includes/cache_tpls/*.*
#
copy includes/cache_tpls/def_birthday_def.tpl to includes/cache_tpls/def_birthday_def.tpl
copy includes/cache_tpls/def_ranks_def.tpl to includes/cache_tpls/def_ranks_def.tpl
copy includes/cache_tpls/def_smilies_def.tpl to includes/cache_tpls/def_smilies_def.tpl
copy includes/cache_tpls/def_themes_def.tpl to includes/cache_tpls/def_themes_def.tpl
copy includes/cache_tpls/def_tree_def.tpl to includes/cache_tpls/def_tree_def.tpl
copy includes/cache_tpls/def_words_def.tpl to includes/cache_tpls/def_words_def.tpl
#
#-----[ OPEN ]------------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
$sql = "SELECT *
	FROM " . RANKS_TABLE . "
	ORDER BY rank_special, rank_min";
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
$ranks = array();
$ranksrow = array();
if ( defined('CACHE_RANKS') )
{
	@include( $phpbb_root_path . './includes/def_ranks.' . $phpEx );
	if ( empty($ranks) )
	{
		cache_ranks();
		include( $phpbb_root_path . './includes/def_ranks.' . $phpEx );
	}
	@reset($ranks);
	while ( list($rank_id, $rank_data) = @each($ranks) )
	{
		$ranksrow[] = $rank_data;
	}
}
if ( empty($ranks) && !defined('CACHE_RANKS') )
{
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	$ranksrow[] = $row;
}
$db->sql_freeresult($result);
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
}
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_forumauth.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
	$message = $lang['Forum_auth_updated']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
	cache_tree(true);
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_ranks.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
		$message .= "<br /><br />" . sprintf($lang['Click_return_rankadmin']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
		cache_ranks();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
			$message = $lang['Rank_removed']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
			cache_ranks();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_smilies.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
		$message = $lang['smiley_import_success']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
		cache_smilies();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
			$message = $lang['smiley_del_success']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
			cache_smilies();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
			$message = $lang['smiley_edit_success']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
			cache_smilies();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
			$message = $lang['smiley_add_success']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
			cache_smilies();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_styles.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer\r
#
			$message = $lang['Theme_installed']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
			cache_themes();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
				$message = $lang['Theme_updated']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
				cache_themes();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
				$message = $lang['Theme_created']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
				cache_themes();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
			$message = $lang['Theme_info_saved']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
			cache_themes();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
			$message = $lang['Style_removed']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
			cache_themes();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_ug_auth.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
		$message = $lang['Auth_updated']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
		cache_tree(true);
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
		if ( $unset_mod != '' )
		{
			$sql = "UPDATE " . USERS_TABLE . " 
				SET user_level = " . USER . " 
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
		cache_tree(true);
//-- fin mod : cache -------------------------------------------------------------------------------

#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_words.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
		$message .= "<br /><br />" . sprintf($lang['Click_return_wordadmin']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
		cache_words();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
			$message = $lang['Word_removed']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
			cache_words();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	if (!isset($orig))
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
	global $phpEx, $phpbb_root_path, $smilies, $board_config;

	if ( defined('CACHE_SMILIES') )
	{
		@include( $phpbb_root_path . './includes/def_smilies.' . $phpEx );
		if ( empty($smilies) )
		{
			cache_smilies();
			include( $phpbb_root_path . './includes/def_smilies.' . $phpEx );
		}
	}
	else
	{
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
		$smilies = $db->sql_fetchrowset($result);
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
		}
	}
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	}

	if (count($orig))
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- delete
//	}
//-- fin mod : cache -------------------------------------------------------------------------------

	if (count($orig))
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *
 ***************************************************************************/
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
include_once( $phpbb_root_path . './includes/functions_cache.' . $phpEx);
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
function get_db_stat($mode)
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
	global $board_config;

	// first inits
	if ( !isset($board_config['max_users']) || !isset($board_config['record_last_user_id']) || !isset($board_config['record_last_username']) )
	{
		users_stats();
		cache_birthday();
	}
	if ( !isset($board_config['max_posts']) || !isset($board_config['max_topics']) )
	{
		board_stats();
	}
	switch ( $mode )
	{
		case 'usercount':
			return intval($board_config['max_users']);
			break;
		case 'newestuser':
			$row = array( 'user_id' => intval($board_config['record_last_user_id']), 'username' => $board_config['record_last_username']);
			return $row;
			break;
		case 'postcount':
			return intval($board_config['max_posts']);
			break;
		case 'topiccount':
			return intval($board_config['max_topics']);
			break;
	}
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	$sql = "SELECT *
		FROM " . THEMES_TABLE . "
		WHERE themes_id = $style";
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
	global $phpEx, $themes_style;

	if ( defined('CACHE_THEMES') )
	{
		@include( $phpbb_root_path . './includes/def_themes.' . $phpEx );
		if ( empty($themes_style) )
		{
			cache_themes();
			include( $phpbb_root_path . './includes/def_themes.' . $phpEx );
		}
	}
	if ( !empty($themes_style[$style]) )
	{
		$row = $themes_style[$style];
	}
	else
	{
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
		message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]");
	}
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
	}
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
function obtain_word_list(&$orig_word, &$replacement_word)
{
	global $db;
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
	global $phpbb_root_path, $phpEx;

	// not processed yet
	if ( empty($orig_word) )
	{
		// take them from the cache
		if ( defined('CACHE_WORDS') )
		{
			@include($phpbb_root_path . './includes/def_words.' . $phpEx);
			if ( !isset($censored_words) )
			{
				$censored_words = array();
				cache_words();
				include($phpbb_root_path . './includes/def_words.' . $phpEx);
			}

			// convert
			$orig_word = array();
			$replacement_word = array();
			@reset($censored_words);
			while ( list($word_id, $row) = @each($censored_words) )
			{
				$orig_word[] = '#\b(' . str_replace('\*', '\w*?', phpbb_preg_quote($row['word'], '#')) . ')\b#i';
				$replacement_word[] = $row['replacement'];
			}
		}
		else
		{
			// get them from the database
			$sql = "SELECT * FROM  " . WORDS_TABLE;
			if ( !$result = $db->sql_query($sql) )
			{
				message_die(GENERAL_ERROR, 'Could not get censored words from database', '', __LINE__, __FILE__, $sql);
			}
			// get the data
			$censored_words = array();
			while ( $row = $db->sql_fetchrow($result) )
			{
				$orig_word[] = '#\b(' . str_replace('\*', '\w*?', phpbb_preg_quote($row['word'], '#')) . ')\b#i';
				$replacement_word[] = $row['replacement'];
			}
		}
	}

	// end the function
	return true;
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_admin.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	return true;
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
	global $board_config;
	board_stats();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
	$message = $lang['Stored']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
	board_stats();
	cache_tree(true);
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	return;
}

//
// Delete a post/poll
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
	board_stats();
	cache_tree(true);
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	return;
}

//
// Handle user notification on new post
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
	board_stats();
	cache_tree(true);
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	$sql = "SELECT emoticon, code, smile_url   
		FROM " . SMILIES_TABLE . " 
		ORDER BY smilies_id";
	if ($result = $db->sql_query($sql))
	{
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
	if ( defined('CACHE_SMILIES') )
	{
		@include( $phpbb_root_path . './includes/def_smilies.' . $phpEx );
		if ( empty($smilies) )
		{
			cache_smilies();
			include( $phpbb_root_path . './includes/def_smilies.' . $phpEx );
		}
	}
	if ( empty($smilies) && !defined('CACHE_SMILIES') )
	{
		$smilies = array();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
			while ( $row = $db->sql_fetchrow($result) )
			{
				$smilies[] = $row;
			}
		}
	}
	if ( !empty($smilies) )
	{
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
		$num_smilies = 0;
		$rowset = array();
		while ($row = $db->sql_fetchrow($result))
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
		$num_smilies = 0;
		$rowset = array();
//-- mod : cache -----------------------------------------------------------------------------------
//-- delete
//		while ($row = $db->sql_fetchrow($result))
//-- add
		@reset($smilies);
		while ( list($row_id, $row) = @each($smilies) )
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
			$message = $message . '<br /><br />' . sprintf($lang['Click_return_index']
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : cache -----------------------------------------------------------------------------------
//-- add
			users_stats();
			cache_birthday();
//-- fin mod : cache -------------------------------------------------------------------------------
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
進入首頁出現這錯誤
Fatal error: Call to undefined function: init_userprefs() in c:\appserv\www\bs\index.php on line 34
連續試了3次都依樣\r
index.php 34行是這樣的

init_userprefs($userdata);


---------------------------------------------------------------

And here comes the Categories hierarchy v 2.0.5, still on Release Candidate stage :).
  • Changelog:
  • fix moderators not displaied in forums view
  • split the cache module to a separate installation to use with other mods
  • analyse and removal of sql requests usage
  • reoganize distribution pack
:arrow: zip pack

Some numbers : installed on a vanilia phpBB : (second is when the phpbb_sessions is refreshed, first on standard navigation)
- index.php : 5/8 requests,
- viewforum.php : 7/10 requests,
- viewtopic.php : 8/11 requests

Without the mod :
- index.php : 13/16 requests,
- viewforum.php : 13/16 requests,
- viewtopic.php : 13/16 requests

This cache allows to compensate almost all the extra power required by Categories hierarchy :).
最後由 ilove1291 於 2003-12-31 18:32 編輯,總共編輯了 3 次。
頭像
ilove1291
星球公民
星球公民
文章: 171
註冊時間: 2003-04-19 22:44

文章 ilove1291 »

其實我也不知道這到底是不是子論壇的功能\r
是在竹貓收尋到的來裝裝看的
我真的很需要子論壇的mod 拜託拜託
依夢兒
竹貓忠實會員
竹貓忠實會員
文章: 2013
註冊時間: 2002-11-20 00:07

文章 依夢兒 »

Categories hierarchy 就是子分區沒錯....
有任何關於 phpBB 或是架站的問題,請在論壇上公開發表出來,大家一起討論。
請不要丟私人訊息問我,因為私訊是用來聊私事的。
這樣作對於解決您的問題一點幫助也沒有,也很沒有效率,小弟我一概謝絕。



搜尋是一種美德,在發問之前,請多加利用頂端的文章搜尋功能,搜尋可能的關鍵字。
確定您想問的問題找不到答案後,再發問。
頭像
ilove1291
星球公民
星球公民
文章: 171
註冊時間: 2003-04-19 22:44

文章 ilove1291 »

我po完整一點的 index.php看看有沒有解\r
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
頭像
ilove1291
星球公民
星球公民
文章: 171
註冊時間: 2003-04-19 22:44

文章 ilove1291 »

我又連試了3次還是一樣只好硬著頭皮繼續裝

全部打完以後(重裝了2次)
測試出現以下錯誤
Fatal error: Call to undefined function: cache_tree() in c:\appserv\www\bs2\includes\functions_categories_hierarchy.php on line 155

我把functions_categories_hierarchy.php
// try the cache
$use_cache_file = false;
if ( defined('CACHE_TREE') )
{
$cache_file = $phpbb_root_path . 'includes/def_tree.' . $phpEx;
@include($cache_file);
if ( empty($tree) || $force)
{
cache_tree(true);
@include($cache_file);
}
if ( !empty($tree) )
{
$use_cache_file = true;
}
}
else
{
cache_tree();
}

拿掉的話 我的版面就都不見了

拜託拜託 我還需要提供哪些資料能夠方便大家幫我找出問題?我一定會乖乖照辦的
頭像
ilove1291
星球公民
星球公民
文章: 171
註冊時間: 2003-04-19 22:44

文章 ilove1291 »

經過2天的折磨 我想我還是問一問有沒有別家作的子分區MOD可以下載好了(淚)
頭像
ilove1291
星球公民
星球公民
文章: 171
註冊時間: 2003-04-19 22:44

文章 ilove1291 »

經過長夜漫漫的收尋
子分區果然只有這個 Categories hierarchy Mod <<好難裝阿~
另外就是PHPBB2.2<<<<這有得嗎??
依夢兒
竹貓忠實會員
竹貓忠實會員
文章: 2013
註冊時間: 2002-11-20 00:07

文章 依夢兒 »

ilove1291 寫:經過長夜漫漫的收尋
子分區果然只有這個 Categories hierarchy Mod <<好難裝阿~
還有另一支,相關討論如下,但是大大們都說沒有 Categories hierarchy Mod 好用,所以你自己看著辦吧!
http://phpbb-tw.net/phpbb/viewtopic.php?t=7396
http://phpbb-tw.net/phpbb/viewtopic.php?t=9804

2.2 好像有 CVS 版,不過我忘了是在哪裡下載的,去官網找一找吧。
有任何關於 phpBB 或是架站的問題,請在論壇上公開發表出來,大家一起討論。
請不要丟私人訊息問我,因為私訊是用來聊私事的。
這樣作對於解決您的問題一點幫助也沒有,也很沒有效率,小弟我一概謝絕。



搜尋是一種美德,在發問之前,請多加利用頂端的文章搜尋功能,搜尋可能的關鍵字。
確定您想問的問題找不到答案後,再發問。
NOFX
星球公民
星球公民
文章: 61
註冊時間: 2003-07-18 12:53
來自: MARS

文章 NOFX »

ilove1291 寫: PHPBB2.2<<<<這有得抓嗎??



phpBB CVS Snapshots

後台管理很棒,裝起來就要53個資料庫template是用html寫的
目前有bug建議別碰,
頭像
ilove1291
星球公民
星球公民
文章: 171
註冊時間: 2003-04-19 22:44

文章 ilove1291 »

OH~YA! 我果然是個嫩B
馬上試試個位大大的推薦\r
試了再向諸位報告戰果 over
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

文章 天霜 »

記得有大大說過Hierarchies有Bug在\r

不過誰說Categories hierarchy Mod一定要裝2.0.5版才行啊  :mrgreen:
2.0.4版就符你的要求了 外掛不見得越新越好\r

如果你還是裝不起來
官方還有提供改好的檔案供人下載~

http://rpgnet.clanmckeen.com/demo/viewtopic.php?t=264
不回答來自 私人訊息, 電子郵件, 及時通 的相關 phpBB 問題
除非是個人疏失所造成的問題

這世界還有拼命守護的價值嗎...
頭像
ilove1291
星球公民
星球公民
文章: 171
註冊時間: 2003-04-19 22:44

文章 ilove1291 »

天霜 寫:記得有大大說過Hierarchies有Bug在\r

:-o 這句話到我了*.* 是怎麼樣的BUG?? :-o
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

文章 天霜 »

(jump box 居然無法根據權限顯示,也就是訪客可以看到所以版面的清單)
不回答來自 私人訊息, 電子郵件, 及時通 的相關 phpBB 問題
除非是個人疏失所造成的問題

這世界還有拼命守護的價值嗎...
頭像
ilove1291
星球公民
星球公民
文章: 171
註冊時間: 2003-04-19 22:44

文章 ilove1291 »

阿~~~~~ *.* 這個BUG衝擊很大呢那我試試2.0.4看看 看起來好像比2.0.5 少一點點檔案 :evil:

## - About compliancy issue with original phpBB data structure while using real sub-forums feature :
##
## Versions 2.0.x of phpBB accept only a forum to be attached to a category. The mod can allow
## if you wish to attach a forum to another forum, or to the index. Such an attachment won't be recognized
## original phpBB progs, and so the forum won't be displayed at all, or will be seen attached to a category,
## having the same id that the parent forum : this is only a display issue, and won't impact posts nor
## authorisations, nothing will be lost :). If you plan to remove the mod, just re-attach the sub-forums
## to a category, and all will be ok.


## o to use real sub-forums feature :
## just run the SQL statement on forums table, pointed as optional.
## SQL statements on categories table are NOT optional.


#-----[ SQL ]-------------------------------------------------
#
# the next request is optional. Run it only if you plan to use the real sub-forums feature
#
ALTER TABLE phpbb_forums ADD main_type CHAR(1);



請問 :?: real sub-forums :?: <<<這是蝦咪 真.附討論版??
難道有偽裝的嗎??
如果我本來就有很多版的話裝起來會不會找不到版版??
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

文章 天霜 »

這不必擔心啦~ 不然你可以架個測試站 放上他們改好的檔案
試用看看
不回答來自 私人訊息, 電子郵件, 及時通 的相關 phpBB 問題
除非是個人疏失所造成的問題

這世界還有拼命守護的價值嗎...
主題已鎖定

回到「外掛問題討論」