[外掛] 子分區 2.0.4

MODs Released by Other phpbb Sites
非官方認證通過之 MOD ,或許有安全性之疑慮,所有問題由原發表者回覆!

版主: 版主管理群

主題已鎖定
天~~
星球公民
星球公民
文章: 103
註冊時間: 2003-07-09 14:51
聯繫:

[外掛] 子分區 2.0.4

文章 天~~ »

這東西超難裝
剪剪貼貼超容易出錯的
所以要裝的人必定要先備份\r

http://www.phpbb.com/files/mods/mod-cat ... hy-204.zip

A

代碼: 選擇全部

############################################################## 
## MOD Title:		Categories hierarchy - part 1 (common to all setup)
## MOD Author:		Ptirhiik < ptirhiik@clanmckeen.com > (Pierre) http://rpgnet.clanmckeen.com
## MOD Description:
##			This mod allows to attach a categorie to a higher level categorie,
##			keeping all the forum visible on the index page (vBulletin-like view),
##			or have a sub-forum view.
##
##			o Part 1 is the main installation,
##			o Part 2 is the facultative modifications of the standard phpBB admin forums prog,
##			and is not required if you want to use the new admin forums tool.
##
## MOD Version:		2.0.4
## 
## Installation Level:	Moderate
## Installation Time:	60 Minutes
## Files To Edit:
##			index.php
##			modcp.php
##			posting.php
##			search.php
##			viewforum.php
##			viewonline.php
##			viewtopic.php
##
##			admin/admin_forum_prune.php
##			admin/admin_forumauth.php
##			admin/admin_styles.php
##			admin/admin_ug_auth.php
##			admin/admin_words.php
##
##			includes/auth.php
##			includes/functions.php
##			includes/functions_admin.php
##			includes/functions_post.php
##			includes/page_header.php
##			includes/topic_review.php
##
##			templates/subSilver/index_body.tpl
##			templates/subSilver/modcp_body.tpl
##			templates/subSilver/modcp_move.tpl
##			templates/subSilver/modcp_split.tpl
##			templates/subSilver/posting_body.tpl
##			templates/subSilver/search_body.tpl
##			templates/subSilver/subSilver.cfg
##			templates/subSilver/viewforum_body.tpl
##			templates/subSilver/viewtopic_body.tpl
##
##			templates/subSilver/admin/auth_ug_body.tpl
##
## Included Files:
##			admin/admin_forums_extend.php
##
##			includes/def_auth.php
##			includes/def_themes.php
##			includes/def_tree.php
##			includes/def_words.php
##			includes/functions_categories_hierarchy.php
##
##			includes/mods_settings/mod_categories_hierarchy.php
##
##			includes/cache_tpls/def_themes_def.tpl
##			includes/cache_tpls/def_tree_def.tpl
##			includes/cache_tpls/def_words_def.tpl
##
##			language/lang_english/lang_extend_categories_hierarchy.php
##
##			templates/subSilver/index_box.tpl
##
##			templates/subSilver/admin/forum_extend_body.tpl
##			templates/subSilver/admin/forum_extend_edit_body.tpl
##
##			--- images ---
##			graph.gif/cat_folder_big.gif
##			graph.gif/cat_folder_new_big.gif
##			graph.gif/cat_folder_locked_big.gif
##			graph.gif/icon_up_arrow.gif
##			graph.gif/icon_down_arrow.gif
##			graph.gif/icon_minicat.gif
##			graph.gif/icon_minicat_new.gif
##			graph.gif/icon_minicat_lock.gif
##			graph.gif/icon_minilink.gif
##			graph.gif/icon_minipost_lock.gif
##			graph.gif/link_folder.gif
##
##			--- mods_settings ---
##			mod-mods_settings/admin_board_extend.php
##			mod-mods_settings/functions_mods_settings.php
##			mod-mods_settings/lang_extend_mods_settings.php
##			mod-mods_settings/board_config_extend_body.tpl
##
##			--- lang_settings ---
##			mod-lang_settings/lang_extend_mac.php
##
############################################################## 
## 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: 
##
##	v 2 features :
##		o attachment
##			- attach a category to another category
##			- attach a category to a forum
##			- optional : attach a forum to a forum, or to the index (note this one will
##				break slightly the data compliancy with a non-modded phpBB)
##
##		o forum type link management :
##			this allows you to set a link displayed as a forum, and suiting the users
##			view authorisations. You can choose in the acp whether you want to count
##			the number of hits or not.
##
##		o multi-language support in forums and cats name and description :
##			allow to use $lang[] key entry in the categories or forums name and
##			description in order to fit the language choosen by the user.
##
##		o order cats and forums as you want
##			You can now choose the order of appearance of the categories on the index page,
##			and mix categories and forums order.
##
##		o 3 choices of packing index
##			- No pack, giving the full incremental tree of cats and forums,
##			- Medium pack : the precs version sub-forum views : 2 levels displayed
##			- Full pack : Only one level is displayed.
##
##		o optional display of board statistics
##			The board statistics box can be removed from the root index, or from all,
##			reducing more the size of the index pages.
##
##		o split of the categories on the root index page
##			For a better seen of the board section.
##
##		o quick links under description (based on tidjojo and Gilgraf one)
##			You can display the name and links to the direct sub-level, and also
##			have the new message icon present in front of this name.
##
##		o show the last topic title on index (based on e-sven's one)
##			You can display on the index the title of the topics last created
##			or replied to in the "Last Post" column.
##
##		o an icon can be set in front of each forum or category, and can suit your template choices
##
##		o admin interface for setting the display options
##			Part of the mod settings mod, included in this mod
##
##		o users can choose their prefered setup (required full mods settings mod to be installed).
##			Admin can also choose to override the users choice for each setup parameter.
##
##		o optional admin tool to edit your language in the ACP (see lang_settings note)
##
##
##	- 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.
##
##------------------------------------------------------------
##
##	Part 1 of this mod will include the new admin forums tool to your board
##	Part 2 of this mod will modify the old admin forums phpBB progs, and is facultative
##
##------------------------------------------------------------
## 
##	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.
##
##
##	o To be able to edit your languages installed on the board, please install the administration
##	language management tool included in the mod-lang_settings directory : 
##	mod-lang_settings/MOD-lang_settins.txt (if you haven't Profile Control Panel v1.0.4 and +)
##
##	o Admin can also choose to override the users choice for each setup parameter.
##
##	o Users can choose their prefered setup : require full mods settings mod to be installed : 
##	mod-mods_settings/MOD-mods_settings-users_choices.txt (if you haven't Profile Control Panel v1.0.4 and +)
## 
##------------------------------------------------------------
## 
##	o This version includes a new forum administration option that will cover the forum management
##	and the forum permissions. You can still use the standards options, but if you prefer to use the
##	new tool, you will avoid to modify the admin_forums.php (part 2 of the mod), so the mod will be 
##	easier to install.
## 
##	NB.: Take care while cleaning the auth constants definition to get back any added field
##	into includes/def_auth.php.
##
##------------------------------------------------------------
##
##	o You have to CHMOD 666 those files if you want to use the cache system :
##
##		includes/def_themes.php
##		includes/def_tree.php
##		includes/def_words.php
##
##
##	o If you don't want to use the cache system, just comment or remove at top 
##	of functions_categories_hierarchy.php the following lines :
##
##		define('CACHE_TREE', true);
##		define('CACHE_WORDS', true);
##		define('CACHE_THEMES', true);
##
##	o if you are using the management + (admin/admin_forums_extend.php), the modification of 
##	admin/admin_forums.php is facultative.
## 
##------------------------------------------------------------
## 
##	This mod can be installed using Nutzzy's EasyMOD v 0.0.10a ( http://phpbb.com/phpBB/viewtopic.php?t=125071 ),
##	on a phpBB 2.0.4, 2.0.5 and 2.0.6
## 
############################################################## 
## MOD History: 
## 
##   2003-11-22 - Version 2.0.4
##      - fix topics count and forum link type hit count not displayed when caches used
##	- fix moving cats and forums in forum extend
## 
##   2003-11-13 - Version 2.0.4 - RC 2
##      - add a cache system for tables : categories, forums, themes, and words
##	- fix : standard forums admin : icons not saved
##	- fix : extended forums admin : some forums options were showing in categories if topic display order was installed
##	- fix : extended forums admin : sql generated if no use of real subforums was wrong
## 
##   2003-11-10 - Version 2.0.4-RC
##      - fix topic title viewable in search results
##	- unqualify some path to images in admin context
##	- centralize all admin auth definition in def_auth.php (for further management of presets)
##	- add the forum icon feature
##	- add a more easy-to-use facultative forum administration
##
##   2003-10-21 - Version 2.0.3
##	- upgrade the mods settings tool
##	- add the lang settings tool
##	- add the missing sub-forums links for the forums attached to index
##	- fix the prec/next topic link
##
##   2003-09-24 - Version 2.0.2
##      - fix the missing categories name in admin drop down box,
##	- remove HTML in overviewed forum/cat descriptions,
##	- remove extra line between forum desc, moderators and links on index,
##	- add the $lang['Subforums'] entry to display in front of the mini links on index (default is blank)
## 
##   2003-09-18 - Version 2.0.1
##      - enhance quickness on hughe forums tree
##	- fix spacer issue in admin
##	- clean index_box.tpl from th classes
##	- fix auth_read and auth_view confusion in phpBB
##
##   2003-08-19 - Version 2.0.0
##	- support of multi-language forums and categories name and description
##	- add forum link type feature
##      - add the ability to attach a category to a forum
##	- add the ability (optional) to attach a forum to a forum
##	- add the ability to mix the sort of categories and forums at the same level
##	- add another level of packing the index (full packing)
##	- add the prec extension "last topic title on index" as an option to the base version
##	- add the prec enhancement "links to sub-level on description" as an option to the base version
##	- redesign of the forums and categories reading
##	- add the ability to split categories on index
##	- add the ability to remove within the acp the who's online box at different level
##	- more friendly admin forums and cats administration (ACP)
##	- admin interface for setting the display
##	- users preferences interface with mods settings mod (included in the pack)
##
##   2003-04-09 - Version 1.1.0
##   2003-03-24 - Version 1.0.9
##   2003-03-05 - Version 1.0.8
##   2003-03-01 - Version 1.0.7
##   2003-02-21 - Version 1.0.6
##   2003-02-21 - Version 1.0.5
##   2003-01-15 - Version 1.0.2
##   2003-01-05 - Version 1.0.1
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
#
#-----[ SQL ]-------------------------------------------------
#

B

代碼: 選擇全部

############################################################## 
## MOD Title:		Categories hierarchy - part 2 (std admin forum management)
## MOD Author:		Ptirhiik < ptirhiik@clanmckeen.com > (Pierre) http://rpgnet.clanmckeen.com
## MOD Description:
##			This mod allows to attach a categorie to a higher level categorie,
##			keeping all the forum visible on the index page (vBulletin-like view),
##			or have a sub-forum view.
##
##			o Part 1 is the main installation,
##			o Part 2 is the facultative modifications of the standard phpBB admin forums prog,
##			and is not required if you want to use the new admin forums tool.
##
## MOD Version:		2.0.4
## 
## Installation Level:	Moderate
## Installation Time:	30 Minutes
## Files To Edit:
##			admin/admin_forums.php
##			templates/subSilver/admin/category_edit_body.tpl
##			templates/subSilver/admin/forum_admin_body.tpl
##			templates/subSilver/admin/forum_delete_body.tpl
##			templates/subSilver/admin/forum_edit_body.tpl
##
## Included Files: (n/a)
############################################################## 
## 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: 
##------------------------------------------------------------
##
##	Part 1 of this mod will include the new admin forums tool to your board
##	Part 2 of this mod will modify the old admin forums phpBB progs, and is facultative
##
##------------------------------------------------------------
## 
##	o This version includes a new forum administration option that will cover the forum management
##	and the forum permissions. You can still use the standards options, but if you prefer to use the
##	new tool, you will avoid to modify the admin_forums.php, so the mod will be easier to install.
##
##------------------------------------------------------------
## 
##	This mod can be installed using Nutzzy's EasyMOD v 0.0.10a ( http://phpbb.com/phpBB/viewtopic.php?t=125071 ),
##	on a phpBB 2.0.4, 2.0.5 and 2.0.6
## 
############################################################## 
## MOD History: (see part 1)
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

文章 天霜 »

  • 中文語系:
    lang_extend_categories_hierarchy.php

代碼: 選擇全部

// admin part
if ( $lang_extend_admin )
{
	$lang['Lang_extend_categories_hierarchy']		= '子分區';

	$lang['Category_attachment']					= '附加上';
	$lang['Category_desc']							= '說明';
	$lang['Category_config_error_fixed']			= '在分區設定中有個錯誤被修復了';
	$lang['Attach_forum_wrong']						= '你不能附加這個版面到這個版面';
	$lang['Attach_root_wrong']						= '你不能附加這個版面到討論區首頁';
	$lang['Forum_name_missing']						= '你不能建立一個沒有名稱的版面';
	$lang['Category_name_missing']					= '你不能建立一個沒有名字的分區';
	$lang['Only_forum_for_topics']					= '主題只能在這個版面中找到';
	$lang['Delete_forum_with_attachment_denied']	= '你不能刪除這個有分段的版面';

	$lang['Category_delete']						= '刪除分區';
	$lang['Category_delete_explain']				= '這版面將允許你刪除它包含了的分區和決定你想要把所有的文章移動到其他版面或是類別之內。';

	// forum links type
	$lang['Forum_link_url']							= '版面連結';
	$lang['Forum_link_url_explain']					= '你可以在這裡設定一個對內的短址,或是一個完整的位址到一個到另外一個伺服器';
	$lang['Forum_link_internal']					= 'phpBB 根目錄';
	$lang['Forum_link_internal_explain']			= '選擇是,假使你引用的是在你的phpBB根目錄下的位址';
	$lang['Forum_link_hit_count']					= '點擊次數';
	$lang['Forum_link_hit_count_explain']			= '選擇是,假使你希望為這個連結啟動版面計數器,並顯示點擊的次數。k';
	$lang['Forum_link_with_attachment_deny']		= '你不能設定一個裡面已經有分段的版面作為版面連結';
	$lang['Forum_link_with_topics_deny']			= '你不能設定一個裡面已經有主題的版面作為版面連結';
	$lang['Forum_attached_to_link_denied']			= '你不能附加一個版面或是分區到這個版面連結裡面';

   $lang['Manage_extend']                           = '管理選項 +'; 
   $lang['No_subforums']                            = '沒有子版面'; 
\n   $lang['Forum_type']                              = '選擇你所要的討論區種類'; 
   $lang['Presets']                                 = '預設值'; 
   $lang['Refresh']                                 = '回復原設定'; 
   $lang['Position_after']                          = '將此分區排序在選單內指定的分區之後'; 
   $lang['Link_missing']                            = '這個連結已經遺失'; 
   $lang['Category_with_topics_deny']               = '這些主題仍在這個版面. 你不可以將其改變至一個分區內.'; 
   $lang['Recursive_attachment']                    = 'You can\'t attach a forum to a lowest level of its own branch (recursive attachment)'; 
   $lang['Forum_with_attachment_denied']            = '你不能將一個分區及其子版面附屬至一個版面底下'; 
   $lang['icon']                                    = '圖示'; 
   $lang['icon_explain']                            = '這個圖示將顯示在版面名稱之前. 你可以設定圖示的連結或是一個$image[]變數(請參考 <i>your_template</i>/<i>your_template</i>.cfg).';
}

$lang['Forum_link']					= '連結設定';
$lang['Forum_link_visited']			= '這個頁面已經被拜訪了 %d 次';
$lang['Redirect']					= '改變方向';
$lang['Redirect_to']				= '假使你的瀏覽器不支援階段式的改變連結`,請按下 %s這裡%s 回到原處';

$lang['Use_sub_forum']				= '首頁型態';
$lang['Hierarchy_setting']			= '子分區設定';
$lang['Index_packing_explain']		= '改變首頁的型態';
$lang['Medium']						= '部分';
$lang['Full']						= '完整';
$lang['Split_categories']			= '分隔首頁上的分區';
$lang['Use_last_topic_title']		= '顯示各版面最新發表的主題在首頁上';
$lang['Last_topic_title_length']	= '在首頁上最新發表的主題的長度';
$lang['Sub_level_links']			= '在討論區首頁上的分段連結';
$lang['Sub_level_links_explain']	= '將討論區/分區說明 之次分類做成鏈結';
$lang['With_pics']					= '包含圖示';
$lang['Display_viewonline']			= '在討論區首頁上顯示目前線上人數的資訊';
$lang['Never']						= '從不';
$lang['Root_index_only']			= '只在討論區首頁';
$lang['Always']						= '總是';
$lang['Subforums']					= '子版面';
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

文章 天霜 »

  • 原文章資料出處:
    MOD-upgrade_from_204_to_205.txt
  • 解決需更新文章數才會更新註冊人數及最後註冊會員名稱的問題
#
#-----[ OPEN 打開 ]------------------------------------------------
#

代碼: 選擇全部

index.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#

代碼: 選擇全部

//-- mod : categories hierarchy --------------------------------------------------------------------
//-- delete
// $total_posts = get_db_stat('postcount');
// $total_users = get_db_stat('usercount');
//-- add
include_once($phpbb_root_path . 'includes/mods_settings/mod_categories_hierarchy.' . $phpEx);
if ( ($board_config['display_viewonline'] == 2) || ( ($viewcat < 0) && ($board_config['display_viewonline'] == 1) ) )
{
	if ( empty($board_config['max_posts']) || empty($board_config['max_users']) )
	{
		board_stats();
	}
	$total_posts = $board_config['max_posts'];
	$total_users = $board_config['max_users'];
//-- fin mod : categories hierarchy ----------------------------------------------------------------
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#

代碼: 選擇全部

$total_posts = get_db_stat('postcount');
$total_users = get_db_stat('usercount');
#
#-----[ FIND 尋找 ]------------------------------------------------
#

代碼: 選擇全部

}
//-- mod : categories hierarchy --------------------------------------------------------------------
//-- add
}
//-- fin mod : categories hierarchy ----------------------------------------------------------------
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#

代碼: 選擇全部

}
#
#-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
#
# EoM 外掛修正結束
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

文章 天霜 »

  • 原文章資料出處:
    MOD-upgrade_from_204_to_205.txt
  • 解決viewforum頁面 就算該區有版面管理員 但還是會顯示"版面管理員: 沒有"的問題
#
#-----[ OPEN 打開 ]------------------------------------------------
#

代碼: 選擇全部

viewforum.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#

代碼: 選擇全部

for ( $i = 0; $i < count($data['user_id']); $i++ )
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#

代碼: 選擇全部

for ( $i = 0; $i < count($tree['mods'][$idx]['user_id']); $i++ )
#
#-----[ FIND 尋找 ]------------------------------------------------
#

代碼: 選擇全部

for ( $i = 0; $i < count($data['group_id']); $i++ )
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#

代碼: 選擇全部

for ( $i = 0; $i < count($tree['mods'][$idx]['group_id']); $i++ )
#
#-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
#
# EoM 外掛修正結束
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

文章 天霜 »

Root
|--Level 1
| |--Level 1.1
| | |--Level 1.1.1
| | | |--Level 1.1.1
| |--Level 1.2
| | |--Level 1.2.1
| | |--Level 1.2.2
改為\r
Root
|
|--Level 1
|--Level 1.1
| |--Level 1.1.1
| |--Level 1.1.1
|
|--Level 1.2
|--Level 1.2.1
|--Level 1.2.2
#
#-----[ OPEN 打開 ]------------------------------------------------
#

代碼: 選擇全部

includes/functions_categories_hierarchy.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#

代碼: 選擇全部

//-------------------------------------------------------------------------------------------------- 
// 
// get_tree_option() : return a drop down menu list of <option></option> 
// 
//-------------------------------------------------------------------------------------------------- 
function get_tree_option($cur='', $all=false) 
{ 
   global $tree, $lang; 

   $keys = array(); 
   $keys = get_auth_keys('Root', $all); 
   $res = ''; 
   for ($i=0; $i < count($keys['id']); $i++) 
   { 
      // only get object that are not forum links type 
      if ( ($tree['type'][ $keys['idx'][$i] ] != POST_FORUM_URL) || empty($tree['data'][ $keys['idx'][$i] ]['forum_link']) || $all) 
      { 
         $selected = ($cur == $keys['id'][$i]) ? ' selected="selected"' : ''; 
         $res .= '<option value="' . $keys['id'][$i] . '"' .  $selected . '>'; 

         // name 
         $name = get_object_lang($keys['id'][$i], 'name', $all); 

         // increment 
         $inc = ''; 
         for ($k=1; $k <= $keys['real_level'][$i]; $k++) 
         { 
            $inc .= '|   '; 
         } 
         if ($keys['level'][$i] >=0) $inc .= '|--'; 
         $name = $inc . $name; 

         $res .= $name . '</option>'; 
      } 
   } 
   return $res; 
} 
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#

代碼: 選擇全部

//-------------------------------------------------------------------------------------------------- 
// 
// get_tree_option() : return a drop down menu list of <option></option> 
// 
//-------------------------------------------------------------------------------------------------- 
function get_tree_option($cur='', $all=false) 
{ 
   global $tree, $lang; 

   $keys = array(); 
   $keys = get_auth_keys('Root', $all); 
   $last_level = -1; 

   for ($i=0; $i < count($keys['id']); $i++) 
   { 
      // only get object that are not forum links type 
      if ( ($tree['type'][ $keys['idx'][$i] ] != POST_FORUM_URL) || empty($tree['data'][ $keys['idx'][$i] ]['forum_link']) ) 
      { 
         $level = $keys['real_level'][$i]; 

         $inc = ''; 
         for ($k = 0; $k < $level; $k++) 
         { 
            $inc .= "[*$k*]   "; 
         } 

         if ($level < $last_level) 
         { 
         //insert spacer if level goes down 
            $res .='<option value="-1">' . $inc . '|   </option>'; 
         // make valid lines solid 
            $res = str_replace("[*$level*]", "|", $res); 

         // erase all unnessecary lines 
            for ($k = $level + 1; $k < $last_level; $k++) 
            { 
               $res = str_replace("[*$k*]", " ", $res); 
            } 
             
         } elseif ($level == 0 && $last_level == -1) $res .='<option value="-1">|</option>'; 

         $last_level = $level; 

         $selected = ($cur == $keys['id'][$i]) ? ' selected="selected"' : ''; 
         $res .= '<option value="' . $keys['id'][$i] . '"' .  $selected . '>'; 

         // name 
         $name = get_object_lang($keys['id'][$i], 'name', $all); 

         if ($keys['level'][$i] >=0) $res .= $inc . '|--'; 

         $res .= $name . '</option>'; 
      } 
   } 

   // erase all unnessecary lines 
   for ($k = 0; $k < $last_level; $k++) 
   { 
      $res = str_replace("[*$k*]", " ", $res); 
   } 

   return $res; 
} 
#
#-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
#
# EoM 外掛修正結束
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

文章 天霜 »

#
#-----[ OPEN 打開 ]------------------------------------------------
#

代碼: 選擇全部

admin\admin_forums_extend.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#

代碼: 選擇全部

            if( $db->sql_numrows($result) > 0 ) 
            { 
               $sql = "UPDATE " . PRUNE_TABLE . " 
                        SET prune_days = " . intval($item['prune_days']) . ", 
                           prune_freq = " . intval($item['prune_freq']) . " 
                        WHERE forum_id = " . intval($item['id']); 
            } 
            else 
            { 
               $sql = "INSERT INTO " . PRUNE_TABLE . " 
                        ( 
                           forum_id, 
                           prune_days, 
                           prune_freq 
                        ) 
                        VALUES( 
                           " . intval($item['id']) . ", 
                           " . intval($item['prune_days']) . ", 
                           " . intval($item['prune_freq']) . " 
                        )"; 
            }
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#

代碼: 選擇全部

            if( $db->sql_numrows($result) > 0 ) 
            { 
               $sql = "UPDATE " . PRUNE_TABLE . " 
                        SET prune_days = " . intval($HTTP_POST_VARS['prune_days']) . ", 
                           prune_freq = " . intval($HTTP_POST_VARS['prune_freq']) . " 
                        WHERE forum_id = " . intval($item['id']); 
            } 
            else 
            { 
               $sql = "INSERT INTO " . PRUNE_TABLE . " 
                        ( 
                           forum_id, 
                           prune_days, 
                           prune_freq 
                        ) 
                        VALUES( 
                           " . intval($item['id']) . ", 
                           " . intval($HTTP_POST_VARS['prune_days']) . ", 
                           " . intval($HTTP_POST_VARS['prune_freq']) . " 
                        )"; 
            }
#
#-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
#
# EoM 外掛修正結束
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

文章 天霜 »

#
#-----[ OPEN 打開 ]------------------------------------------------
#

代碼: 選擇全部

admin/admin_forums_extend.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#

代碼: 選擇全部

$folder = $images['category_lock'];
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#

代碼: 選擇全部

$folder = $images['category_locked'];
#
#-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
#
# EoM 外掛修正結束
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

文章 天霜 »

原文章網址:
http://rpgnet.clanmckeen.com/demo/viewt ... 4925#14925

Bug : Sub-forums indentation is wrong in full display mode

Report : cifroes

Fix : easythomas

#
#-----[ OPEN ]------------------------------------------------
#

代碼: 選擇全部

includes/functions_categories_hierarchy.php 
#
#-----[ FIND ]------------------------------------------------
#

代碼: 選擇全部

function get_auth_keys($cur='Root', $all=false, $level=-1, $max=-1, $auth_key='auth_view') 
#
#-----[ IN-LINE FIND ]----------------------------------------
#

代碼: 選擇全部

, $auth_key='auth_view' 
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#

代碼: 選擇全部

, $align_level = 0 
\r
#
#-----[ FIND ]------------------------------------------------
#

代碼: 選擇全部

            if (($level > 0) && ((substr($cur, 0, 1) == POST_FORUM_URL) || (intval($board_config['sub_forum']) > 0)) && (substr($tree['main'][$tree['keys'][$cur]], 0, 1) == POST_CAT_URL)) $level = $level-1; 
#
#-----[ REPLACE WITH ]----------------------------------------
#

代碼: 選擇全部

            if (($level > 0) && ((substr($cur, 0, 1) == POST_FORUM_URL) || (intval($board_config['sub_forum']) > 0)) && (substr($tree['main'][$tree['keys'][$cur]], 0, 1) == POST_CAT_URL)) 
            { 
               $align_level++;    
            } 
            $level = $level-$align_level;

#
#-----[ FIND ]------------------------------------------------
#

代碼: 選擇全部

            $tkeys = get_auth_keys($tree['sub'][$cur][$i], $all, $orig_level+1, $max, $auth_key);

#
#-----[ REPLACE WITH ]----------------------------------------
#

代碼: 選擇全部

            $tkeys = get_auth_keys($tree['sub'][$cur][$i], $all, $orig_level+1, $max, $auth_key, $align_level);
天霜
竹貓忠實會員
竹貓忠實會員
文章: 882
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

文章 天霜 »

原文章網址:
http://rpgnet.clanmckeen.com/demo/viewt ... 4935#14935

Bug : Display private forum messages in search when an user can't see any forum

Report : Waagenbauer

Fix : easythomas
#
#-----[ OPEN ]------------------------------------------------
#

代碼: 選擇全部

search.php 
#
#-----[ FIND ]------------------------------------------------
#

代碼: 選擇全部

      if ($s_flist != '') 
      { 
         $auth_sql .= (( $auth_sql != '' ) ? " AND" : '') . " f.forum_id IN ($s_flist) "; 
      } 
#
#-----[ AFTER, ADD ]------------------------------------------
#

代碼: 選擇全部

      else 
      { 
            message_die(GENERAL_MESSAGE, $lang['No_searchable_forums']); 
      }
主題已鎖定

回到「非官方認證外掛」