############################################################## 
## MOD Title:		Categories hierarchy - upgrade from 2.0.3 to 2.0.4-RC
## MOD Author:		Ptirhiik < ptirhiik@clanmckeen.com > (Pierre) http://rpgnet.clanmckeen.com
## MOD Description:
##			Upgrade categories hierarchy from 2.0.3 to 2.0.4-RC
## MOD Version:		2.0.4-RC
## 
## Installation Level:	Easy
## Installation Time:	20 Minutes
##
## Files To Edit:
##			search.php
##			admin/admin_forumauth.php
##			admin/admin_forum_prune.php
##			admin/admin_ug_auth.php
##			includes/functions_categories_hierarchy.php
##			language/lang_english/lang_extend_categories_hierarchy.php
##			templates/subSilver/index_box.tpl
##			templates/subSilver/subSilver.cfg
##
##			--- facultative : see author notes ---
##			admin/admin_forums.php
##			templates/subSilver/admin/category_edit_body.tpl
##			templates/subSilver/admin/forum_admin_body.tpl
##			templates/subSilver/admin/forum_edit_body.tpl
##
## Included Files:
##			admin_forums_extend.php
##			def_auth.php
##			forum_extend_body.tpl
##			forum_extend_edit_body.tpl
##			graph.gif/icon_up_arrow.gif
##			graph.gif/icon_down_arrow.gif
##
############################################################## 
## 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:
##
##	o Take care while cleaning the auth constants definition to get back any added field
##	into includes/def_auth.php.
##
##	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.
##
############################################################## 
## MOD History: 
## 
##   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
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
#
#-----[ SQL ]-------------------------------------------------
#
ALTER TABLE phpbb_forums ADD icon VARCHAR(255);
ALTER TABLE phpbb_categories ADD icon VARCHAR(255);
#
#-----[ COPY ]------------------------------------------------
#
copy def_auth.php to includes/def_auth.php
#
#-----[ COPY ]------------------------------------------------
#
# this part is optional : do it only if you want to use the new admin forums tool
#
copy admin_forums_extend.php to admin/admin_forums_extend.php
copy forum_extend_body.tpl to templates/subSilver/admin/forum_extend_body.tpl
copy forum_extend_edit_body.tpl to templates/subSilver/admin/forum_extend_edit_body.tpl
#
#-----[ COPY ]------------------------------------------------
#
copy graph.gif/icon_up_arrow.gif to templates/subSilver/images/icon_up_arrow.gif
copy graph.gif/icon_down_arrow.gif to templates/subSilver/images/icon_down_arrow.gif
#
#-----[ OPEN ]------------------------------------------------
#
search.php
#
#-----[ FIND ]------------------------------------------------
#
# fix already published : ref : http://phpbb.com/phpBB/viewtopic.php?p=848575#848575
#
		$keys = get_auth_keys($search_where);
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
		$keys = get_auth_keys($search_where, true, -1, -1, 'auth_read');
#
#-----[ FIND ]------------------------------------------------
#
			if ($tree['type'][ $keys['idx'][$i] ] == POST_FORUM_URL)
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
			if ( ($tree['type'][ $keys['idx'][$i] ] == POST_FORUM_URL) && $tree['auth'][ $keys['id'][$i] ]['auth_read'] )
#
#-----[ OPEN ]------------------------------------------------
#
# not published
#
admin/admin_forumauth.php
#
#-----[ FIND ]------------------------------------------------
#
                View      Read      Post      Reply     Edit     Delete    Sticky   Announce    Vote      Poll
$simple_auth_ary = array(
	0  => array(AUTH_ALL, AUTH_ALL, AUTH_ALL, AUTH_ALL, AUTH_REG, AUTH_REG, AUTH_MOD, AUTH_MOD, AUTH_REG, AUTH_REG),
	1  => array(AUTH_ALL, AUTH_ALL, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_MOD, AUTH_MOD, AUTH_REG, AUTH_REG),
	2  => array(AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_MOD, AUTH_MOD, AUTH_REG, AUTH_REG),
	3  => array(AUTH_ALL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_MOD, AUTH_ACL, AUTH_ACL),
	4  => array(AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_MOD, AUTH_ACL, AUTH_ACL),
	5  => array(AUTH_ALL, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD),
	6  => array(AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD),
);

$simple_auth_types = array($lang['Public'], $lang['Registered'], $lang['Registered'] . ' [' . $lang['Hidden'] . ']', $lang['Private'], $lang['Private'] . ' [' . $lang['Hidden'] . ']', $lang['Moderators'], $lang['Moderators'] . ' [' . $lang['Hidden'] . ']');

$forum_auth_fields = array('auth_view', 'auth_read', 'auth_post', 'auth_reply', 'auth_edit', 'auth_delete', 'auth_sticky', 'auth_announce', 'auth_vote', 'auth_pollcreate');

$field_names = array(
	'auth_view' => $lang['View'],
	'auth_read' => $lang['Read'],
	'auth_post' => $lang['Post'],
	'auth_reply' => $lang['Reply'],
	'auth_edit' => $lang['Edit'],
	'auth_delete' => $lang['Delete'],
	'auth_sticky' => $lang['Sticky'],
	'auth_announce' => $lang['Announce'], 
	'auth_vote' => $lang['Vote'], 
	'auth_pollcreate' => $lang['Pollcreate']);

$forum_auth_levels = array('ALL', 'REG', 'PRIVATE', 'MOD', 'ADMIN');
$forum_auth_const = array(AUTH_ALL, AUTH_REG, AUTH_ACL, AUTH_MOD, AUTH_ADMIN);
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
//-- mod : categories hierarchy --------------------------------------------------------------------
//-- delete
// all the preset and auth fields definition has been moved to includes/def_auth.php
//-- add
// auth list : put in this file all the auth fields description
include( $phpbb_root_path . './includes/def_auth.' . $phpEx );

// build an indexed array on field names
@reset($field_names);
$forum_auth_fields = array();
while ( list($auth_key, $auth_name) = @each($field_names) )
{
	$forum_auth_fields[] = $auth_key;
}
//-- fin mod : categories hierarchy ----------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	$select_list = selectbox(POST_FORUM_URL);
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
	$select_list = selectbox(POST_FORUM_URL, false, '', true);
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_forum_prune.php
#
#-----[ FIND ]------------------------------------------------
#
		$forum_id = $id;
	}
#
#-----[ AFTER, ADD ]------------------------------------------
#
	$fid = $type . $id;
	if ( empty($fid) || ( $fid = POST_CAT_URL . '0' ) )
	{
		$fid = 'Root';
	}
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_ug_auth.php
#
#-----[ FIND ]------------------------------------------------
#
$forum_auth_fields = array('auth_view', 'auth_read', 'auth_post', 'auth_reply', 'auth_edit', 'auth_delete', 'auth_sticky', 'auth_announce', 'auth_vote', 'auth_pollcreate');

$auth_field_match = array(
	'auth_view' => AUTH_VIEW,
	'auth_read' => AUTH_READ,
	'auth_post' => AUTH_POST,
	'auth_reply' => AUTH_REPLY,
	'auth_edit' => AUTH_EDIT,
	'auth_delete' => AUTH_DELETE,
	'auth_sticky' => AUTH_STICKY,
	'auth_announce' => AUTH_ANNOUNCE, 
	'auth_vote' => AUTH_VOTE, 
	'auth_pollcreate' => AUTH_POLLCREATE);

$field_names = array(
	'auth_view' => $lang['View'],
	'auth_read' => $lang['Read'],
	'auth_post' => $lang['Post'],
	'auth_reply' => $lang['Reply'],
	'auth_edit' => $lang['Edit'],
	'auth_delete' => $lang['Delete'],
	'auth_sticky' => $lang['Sticky'],
	'auth_announce' => $lang['Announce'], 
	'auth_vote' => $lang['Vote'], 
	'auth_pollcreate' => $lang['Pollcreate']);
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
//-- mod : categories hierarchy --------------------------------------------------------------------
//-- delete
// all the preset and auth fields definition has been moved to includes/def_auth.php
//-- add
// auth list : put in this file all the auth fields description
include( $phpbb_root_path . './includes/def_auth.' . $phpEx );

// build an indexed array on field names
@reset($field_names);
$forum_auth_fields = array();
while ( list($auth_key, $auth_name) = @each($field_names) )
{
	$forum_auth_fields[] = $auth_key;
}
//-- fin mod : categories hierarchy ----------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_categories_hierarchy.php
#
#-----[ FIND ]------------------------------------------------
#
 *	Version			: 1.0.0 - 21/10/2003
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
 *	Version			: 1.0.1 - 10/11/2003
#
#-----[ FIND ]------------------------------------------------
#
		if ( ($tree['type'][ $keys['idx'][$i] ] != POST_FORUM_URL) || empty($tree['data'][ $keys['idx'][$i] ]['forum_link']) )
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
		if ( ($tree['type'][ $keys['idx'][$i] ] != POST_FORUM_URL) || empty($tree['data'][ $keys['idx'][$i] ]['forum_link']) || $all)
#
#-----[ FIND ]------------------------------------------------
#
					if ($link != '') $links .= (($links != '') ? ', ' : '') . $wlast_post . $link;
				}
			}
#
#-----[ AFTER, ADD ]------------------------------------------
#

			// forum icon
			$icon_img = empty($data['icon']) ? '' : ( isset($images[ $data['icon'] ]) ? $images[ $data['icon'] ] : $data['icon'] );
#
#-----[ FIND ]------------------------------------------------
#
				'FORUM_FOLDER_IMG'		=> $folder_image, 
#
#-----[ AFTER, ADD ]------------------------------------------
#
				'ICON_IMG'				=> $icon_img,
#
#-----[ FIND ]------------------------------------------------
#
				'U_VIEWFORUM'			=> ($type == POST_FORUM_URL) ? append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$id") : append_sid("index.$phpEx?" . POST_CAT_URL . "=$id"),
				
				'INC_SPAN'				=> $max_level- $level+1,
				'INC_CLASS'				=> ( !($level % 2) ) ? 'row1' : 'row2',
				)
			);
#
#-----[ AFTER, ADD ]------------------------------------------
#

			// display icon
			if ( !empty($icon_img) )
			{
				$template->assign_block_vars('catrow.forumrow.forum_icon', array());
			}
#
#-----[ FIND ]------------------------------------------------
#
function selectbox($box_name, $ignore_forum = false, $select_forum = '')
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
function selectbox($box_name, $ignore_forum = false, $select_forum = '', $all=false)
#
#-----[ FIND ]------------------------------------------------
#
	$s_list = get_tree_option($select_forum);
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
	$s_list = get_tree_option($select_forum, $all);
#
#-----[ OPEN ]------------------------------------------------
#
language/lang_english/lang_extend_categories_hierarchy.php
#
#-----[ FIND ]------------------------------------------------
#
 *	version				: 1.0.0 - 28/09/2003
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
 *	version				: 1.0.1 - 10/11/2003
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
	$lang['Forum_attached_to_link_denied']
#
#-----[ AFTER, ADD ]------------------------------------------
#

	$lang['Manage_extend']							= 'Management +';
	$lang['No_subforums']							= 'No sub-forums';
	$lang['Forum_type']								= 'Choose the kind of forum you want';
	$lang['Presets']								= 'Presets';
	$lang['Refresh']								= 'Refresh';
	$lang['Position_after']							= 'Position this forum after';
	$lang['Link_missing']							= 'The link is missing';
	$lang['Category_with_topics_deny']				= 'Topics remains in this forum. You can\'t change it into a category.';
	$lang['Recursive_attachment']					= 'You can\'t attach a forum to a lowest level of its own branch (recursive attachment)';
	$lang['Forum_with_attachment_denied']			= 'You can\'t change a category with forums attached to into a forum';
	$lang['icon']									= 'Icon';
	$lang['icon_explain']							= 'This icon will be displayed in front of the forum title. You can set here a direct URI or a $image[] key entry (see <i>your_template</i>/<i>your_template</i>.cfg).';
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/index_box.tpl
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
		<span class="forumlink"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
		<!-- BEGIN forum_icon -->
		<table cellpadding="2" cellspacing="0" border="0" width="100%" height="47">
		<tr>
			<td width="46" align="center"><a href="{catrow.forumrow.U_VIEWFORUM}"><img src="{catrow.forumrow.ICON_IMG}" border="0" /></a></td>
			<td>
		<!-- END forum_icon -->
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
{catrow.forumrow.L_MODERATOR}{catrow.forumrow.MODERATORS}
#
#-----[ AFTER, ADD ]------------------------------------------
#
		<!-- BEGIN forum_icon -->
			</td>
		</tr>
		</table>
		<!-- END forum_icon -->
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------------
#
$images['icon_minilink'] = "$current_template_images/icon_minilink.gif";
#
#-----[ AFTER, ADD ]------------------------------------------
#

$images['up_arrow'] = "$current_template_images/icon_up_arrow.gif";
$images['down_arrow'] = "$current_template_images/icon_down_arrow.gif";
##################################################################################
#
#
# facultative part : do it only if you don't want to use the new forum admin program
# -----------------
#
##################################################################################
#
#-----[ OPEN ]------------------------------------------------
#
# facultative : do it only if you don't want to use the admin_forums_extend.php
#
admin/admin_forums.php
#
#-----[ FIND ]------------------------------------------------
#
				$forum_link_hit			= intval($row['forum_link_hit']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
				$icon = $row['icon'];
#
#-----[ FIND ]------------------------------------------------
#
				$forum_link_hit			= 0;
#
#-----[ AFTER, ADD ]------------------------------------------
#
				$icon = '';
#
#-----[ FIND ]------------------------------------------------
#
				'L_NO'								=> $lang['No'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
				'L_ICON'							=> $lang['icon'],
				'L_ICON_EXPLAIN'					=> $lang['icon_explain'],
				'ICON'								=> $icon,
				'ICON_IMG'							=> empty($icon) ? '' : '<br /><img src="' . ( isset($images[$icon]) ? $phpbb_root_path . $images[$icon] : $icon ) . '" border="0" alt="' . $icon . '" title="' . $icon . '" />',
#
#-----[ FIND ]------------------------------------------------
#
			$value_sql .= ", $forum_link_hit_count";
#
#-----[ AFTER, ADD ]------------------------------------------
#
			$icon = isset($HTTP_POST_VARS['icon']) ? trim(stripslashes($HTTP_POST_VARS['icon'])) : '';
			$field_sql .= ", icon";
			$value_sql .= ", '$icon'";
#
#-----[ FIND ]------------------------------------------------
#
				$field_value_sql .= ", main_type = '$type'";
			}
#
#-----[ AFTER, ADD ]------------------------------------------
#
			$icon = isset($HTTP_POST_VARS['icon']) ? trim(stripslashes($HTTP_POST_VARS['icon'])) : '';
			$field_value_sql .= ", icon = '$icon'";
#
#-----[ FIND ]------------------------------------------------
#
		case 'createcat':
			// Create a category in the DB
#
#-----[ AFTER, ADD ]------------------------------------------
#
			$icon = isset($HTTP_POST_VARS['icon']) ? trim(stripslashes($HTTP_POST_VARS['icon'])) : '';
#
#-----[ FIND ]------------------------------------------------
#
			$sql = "INSERT INTO " . CATEGORIES_TABLE . " (cat_title, cat_main_type, cat_main, cat_desc, cat_order)
				VALUES ('" . str_replace("\'", "''", $HTTP_POST_VARS['cat_title']) . "', '" . $cat_main_type . "', " . $cat_main . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['cat_desc']) . "', $next_order)";
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
, cat_desc
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
#
, icon
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
, $HTTP_POST_VARS['cat_desc']) . "'
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
#
, '" . str_replace("\'", "''", $HTTP_POST_VARS['icon']) . "'
#
#-----[ FIND ]------------------------------------------------
#
				$cat_desc	= $row['cat_desc'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
				$icon = $row['icon'];
#
#-----[ FIND ]------------------------------------------------
#
				$cat_desc  = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
				$icon = '';
#
#-----[ FIND ]------------------------------------------------
#
				'L_EDIT_CATEGORY'			=> $l_title,
#
#-----[ AFTER, ADD ]------------------------------------------
#
				'L_ICON'					=> $lang['icon'],
				'L_ICON_EXPLAIN'			=> $lang['icon_explain'],
				'ICON'						=> $icon,
				'ICON_IMG'					=> empty($icon) ? '' : '<br /><img src="' . ( isset($images[$icon]) ? $phpbb_root_path . $images[$icon] : $icon ) . '" border="0" alt="' . $icon . '" title="' . $icon . '" />',
#
#-----[ FIND ]------------------------------------------------
#
		case 'modcat':
			// Modify a category in the DB
//-- mod : categories hierarchy --------------------------------------------------------------------
//-- add
#
#-----[ AFTER, ADD ]------------------------------------------
#
			$icon = isset($HTTP_POST_VARS['icon']) ? $HTTP_POST_VARS['icon'] : '';
#
#-----[ FIND ]------------------------------------------------
#
// here we added
//	, cat_main_type='" . $cat_main_type . "', cat_main = " . $cat_main . ", cat_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['cat_desc']) . "' ".
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
// here we added
//	, cat_main_type='" . $cat_main_type . "', cat_main = " . $cat_main . ", cat_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['cat_desc']) . "', icon = '" . str_replace("\'", "''", $icon) . "'
#
#-----[ FIND ]------------------------------------------------
#
			$sql = "UPDATE " . CATEGORIES_TABLE . "
				SET cat_title = '" . str_replace("\'", "''", $HTTP_POST_VARS['cat_title']) . "', cat_main_type='" . $cat_main_type . "', cat_main = " . $cat_main . ", cat_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['cat_desc']) . "'
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
, $HTTP_POST_VARS['cat_desc']) . "'
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, icon = '" . str_replace("\'", "''", $icon) . "'
#
#-----[ FIND ]------------------------------------------------
#
	global $template, $phpEx, $lang, $images;
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
	global $template, $phpbb_root_path, $phpEx, $lang, $images;
#
#-----[ FIND ]------------------------------------------------
#
			if (!empty($cat['cat_desc']))
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
			if ( !empty($cat['cat_desc']) || !empty($cat['icon']) )
#
#-----[ FIND ]------------------------------------------------
#
					'INC_SPAN_ALL'		=> $max_level - $level+7,
#
#-----[ AFTER, ADD ]------------------------------------------
#
					'ICON_IMG'			=> empty($cat['icon']) ? '' : '<img src="' . ( isset($images[ $cat['icon'] ]) ? $phpbb_root_path . $images[ $cat['icon'] ] : $cat['icon'] ) . '" border="0" alt="' . $cat['icon'] . '" title="' . $cat['icon'] . '" />',
#
#-----[ FIND ]------------------------------------------------
#
				$forum_link_img = '<img src="../' . $images['link'] . '" border="0" />';
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
				$forum_link_img = '<img src="' . $phpbb_root_path . $images['link'] . '" border="0" />';
#
#-----[ FIND ]------------------------------------------------
#
				$forum_link_img = '<img src="../' . (($sub) ? $images['category'] : $images['forum']) . '" border="0" />';
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
				$forum_link_img = '<img src="' . $phpbb_root_path . (($sub) ? $images['category'] : $images['forum']) . '" border="0" />';
#
#-----[ FIND ]------------------------------------------------
#
					$forum_link_img = '<img src="../' . (($sub) ? $images['category_locked'] : $images['forum_locked']) . '" border="0" />';
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
					$forum_link_img = '<img src="' . $phpbb_root_path . (($sub) ? $images['category_locked'] : $images['forum_locked']) . '" border="0" />';
#
#-----[ FIND ]------------------------------------------------
#
				'LINK_IMG'			=> $forum_link_img,
#
#-----[ AFTER, ADD ]------------------------------------------
#
				'ICON_IMG'			=> empty($forum['icon']) ? '' : '<img src="' . ( isset($images[ $forum['icon'] ]) ? $phpbb_root_path . $images[ $forum['icon'] ] : $forum['icon'] ) . '" border="0" alt="' . $forum['icon'] . '" title="' . $forum['icon'] . '" />',
#
#-----[ FIND ]------------------------------------------------
#
	'SPACER'			=> './../' . $images['spacer'],
#
#-----[ REPLACE WITH ]---------------------------------------- 
#
	'SPACER'			=> $phpbb_root_path . $images['spacer'],
#
#-----[ OPEN ]------------------------------------------------
#
# facultative : do it only if you don't want to use the admin_forums_extend.php
#
templates/subSilver/admin/category_edit_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
{CAT_DESCRIPTION}
#
#-----[ AFTER, ADD ]------------------------------------------
#
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_ICON}</span><span class="gensmall"><br />{L_ICON_EXPLAIN}</span></td>
		<td class="row2"><span class="gen"><input name="icon" value="{ICON}" type="text" class="post" size="60" />{ICON_IMG}</span></td>
#
#-----[ OPEN ]------------------------------------------------
#
# facultative : do it only if you don't want to use the admin_forums_extend.php
#
templates/subSilver/admin/forum_admin_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
{catrow.cattitle.CAT_DESCRIPTION}
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
{catrow.cattitle.CAT_DESCRIPTION}
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
{catrow.cattitle.ICON_IMG}
#
#-----[ FIND ]------------------------------------------------
#
{catrow.forumrow.FORUM_DESC}
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
{catrow.forumrow.FORUM_DESC}
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
{catrow.forumrow.ICON_IMG}
#
#-----[ OPEN ]------------------------------------------------
#
# facultative : do it only if you don't want to use the admin_forums_extend.php
#
templates/subSilver/admin/forum_edit_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
{DESCRIPTION}
#
#-----[ AFTER, ADD ]------------------------------------------
#
	</tr>
	<tr>
		<td class="row1"><span class="gen">{L_ICON}</span><span class="gensmall"><br />{L_ICON_EXPLAIN}</span></td>
		<td class="row2"><span class="gen"><input name="icon" value="{ICON}" type="text" class="post" size="60" />{ICON_IMG}</span></td>
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM