############################################################## 
## MOD Title:		Extension : new window on forum link
## MOD Author:		Ptirhiik < ptirhiik@clanmckeen.com > (Pierre) http://rpgnet.clanmckeen.com
## MOD Description:
##			Forum link which are not mentioned as a phpBB prog will be opened in a new window
##
## MOD Version:		1.0.1
## 
## Installation Level:	Easy
## Installation Time:	~3 Minutes
## Files To Edit:
##			includes/functions_categories_hierarchy.php
##			templates/subSilver/index_box.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: 
## 
############################################################## 
## MOD History: 
## 
##   2004-07-21 - Version 1.0.1
##      - compliance PHP v5.x.x
## 
##   2003-11-13 - Version 1.0.0
##      - in respond of an often asked feature
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_categories_hierarchy.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : new window on forum link ----------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
				'U_VIEWFORUM'			=> ($type == POST_FORUM_URL) ? append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$id") : append_sid("index.$phpEx?" . POST_CAT_URL . "=$id"),
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : new window on forum link ----------------------------------------------------------------
//-- add
				'U_TARGET'				=> ( ($tree['type'][$this_key] == POST_FORUM_URL) && !empty($tree['data'][$this_key]['forum_link']) && !$tree['data'][$this_key]['forum_link_internal']) ? 'target="_blank"' : '',
//-- fin mod : new window on forum link ------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/index_box.tpl
#
#-----[ FIND ]------------------------------------------------
#
<!-- BEGIN catrow -->
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<!-- mod : new window on forum link -->

#
#-----[ FIND ]------------------------------------------------
#
			<td width="46" align="center"><a href="{catrow.forumrow.U_VIEWFORUM}"><img src="{catrow.forumrow.ICON_IMG}" border="0" /></a></td>
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
href="{catrow.forumrow.U_VIEWFORUM}"
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
#
 {catrow.forumrow.U_TARGET}
#
#-----[ FIND ]------------------------------------------------
#
		<span class="forumlink"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br /></span>
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
href="{catrow.forumrow.U_VIEWFORUM}"
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
#
 {catrow.forumrow.U_TARGET}
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM