############################################################## 
## MOD Title:		Ranks summarize
## MOD Author:		Ptirhiik < admin@rpgnet-fr.com > (Pierre) http://www.rpgnet-fr.com 
## MOD Description:
##			This mod displays all the ranks available on your board
## MOD Version:		1.0.4
## 
## Installation Level:	easy
## Installation Time:	5 Minutes 
## Files To Edit: 
##			includes/functions.php
##			includes/page_header.php
##			templates/subSilver/overall_header.tpl
##			templates/subSilver/subSilver.cfg
## Included Files: 
##			ranks.php
##			lang_extend_ranks.php
##			ranks_body.tpl
##			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: 
## 
############################################################## 
## MOD History: 
##
##   2003-10-28 - Version 1.0.1
##      - add the lang setttings tool
##
##   2003-07-25 - Version 1.0.3
##      - fix for NULL values in selection
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
#
#-----[ COPY ]------------------------------------------------
#
copy ranks.php to ranks.php
copy lang_extend_ranks.php to language/lang_english/lang_extend_ranks.php
copy ranks_body.tpl to templates/subSilver/ranks_body.tpl
#
#-----[ COPY ]------------------------------------------------
#
# mod-lang_settings
#
copy mod-lang_settings/lang_extend_mac.php to includes/lang_extend_mac.php
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
# This part can already be existing : if so, just skip it
#
//-- mod : language settings -----------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	//
	// Set up style
	//
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
# This part can already be existing : if so, just skip it
#
//-- mod : language settings -----------------------------------------------------------------------
//-- add
	include($phpbb_root_path . './includes/lang_extend_mac.' . $phpEx);
//-- fin mod : language settings -------------------------------------------------------------------

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

		if ( empty($template) )
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
# This part can already be existing : if so, just skip it
#
//-- mod : language settings -----------------------------------------------------------------------
//-- add
			include($phpbb_root_path . './includes/lang_extend_mac.' . $phpEx);
//-- fin mod : language settings -------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : ranks -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
$template->pparse('overall_header');
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : ranks -----------------------------------------------------------------------------------
//-- add
$check_access = true;
include( $phpbb_root_path . 'ranks.' . $phpEx );
if ( !$auth_rank_only_logged || $userdata['session_logged_in'] )
{
	$template->assign_vars(array(
		'I_RANKS' => '<img src="' . $images['Ranks'] . '" width="12" height="13" border="0" alt="' . $lang['Ranks'] . '" hspace="3" />',
		'U_RANKS' => append_sid("ranks.$phpEx"),
		'L_RANKS' => $lang['Ranks'],
		)
	);
}
//-- fin mod : ranks -------------------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------------
#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<!-- mod : ranks -->
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
{L_USERGROUPS}</a>&nbsp;
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
{L_USERGROUPS}</a>&nbsp;
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
#
<a href="{U_RANKS}" class="mainmenu">{I_RANKS}{L_RANKS}</a>&nbsp;
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : ranks -----------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : ranks -----------------------------------------------------------------------------------
//-- add
$images['Ranks'] = "$current_template_images/icon_mini_profile.gif";
//-- fin mod : ranks -------------------------------------------------------------------------------
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM