##############################################################
## MOD Title: Switch Show Portal Link
## MOD Author: SeVeN <
admin@net4seven.de >
## MOD Description: 1.0
## MOD Version: Toggles between the Portal-Link and the Index-Link to
## avoid senseless overall links, dependent on the actual page.
## Installation Level: easy
## Installation Time: 2 minutes
## Files To Edit: 3
## includes/page_header.php
## portal.php
## templates/subSilver/overall_header.tpl
##
##############################################################
## For security purposes, please check: http://www.net4seven.de/
## for the latest version of this MOD. Downloading this MOD from other
## sites could cause malicious code to enter into your forums.
##############################################################
## Before adding, you should back up all files related to this MOD.
##############################################################
#
#-----[ OPEN ]--------------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]--------------------------------------------------
#
define('HEADER_INC', TRUE);
#
#-----[ AFTER, ADD ]-----------------------------------------
#
if (!defined('ON_PORTAL'))
{
$template->assign_block_vars('switch_show_portal', array());
}
else
{
$template->assign_block_vars('switch_show_index', array());
}
#
#-----[ OPEN ]--------------------------------------------------
#
portal.php
#
#-----[ FIND ]--------------------------------------------------
#
define('IN_PHPBB', true);
#
#-----[ AFTER, ADD ]-----------------------------------------
#
define('ON_PORTAL', TRUE);
#
#-----[ OPEN ]--------------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]--------------------------------------------------
# note: full line is longer
#
<a href="{U_PORTAL}"
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<!-- BEGIN switch_show_portal -->
#
#-----[ AFTER, ADD ]-----------------------------------------
#
<!-- END switch_show_portal -->
#
#-----[ FIND ]--------------------------------------------------
# note: full line is longer
#
<a href="{U_INDEX}"
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
<!-- BEGIN switch_show_index -->
#
#-----[ AFTER, ADD ]-----------------------------------------
#
<!-- END switch_show_index -->
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM