################################################################################
## MOD Title:		easyUCP extension - New Site
## MOD Author:		Sorren < ebbse_h@web.de > (Eberhard Heber) http://www.ebbi.de.tc
## 
## MOD Description:	Add a New Site to the easyUCP.
## MOD Version:		0.0.1 
## 
## Installation Level:	Easy
## Installation Time:	5 Minutes 
##
## Files To Edit:  	3
##
##                      include/usercp_viewprofile.php
##				templates/subSilver/easyucp_body.tpl
##				templates/subSilver/easyucp_second_body.tpl
##
## Included Files:	1
##
##				templates/subSilver/easyucp_third_body.tpl
##
################################################################################
## The following sites also contain the latest version of this MOD: 
## 
## http://www.AmigaLink.de
##
## http://www.ebbi.de.tc
##  
################################################################################
## Mod Notes:
##
##	This MOD in an extension for the easyUCP and easyUCP extension - Second Profilpage
##    and Registercard-System.
##	You must install the easyUCP, easyUCP extension - Second Profilpage first and
##    Registercard-System!
##
################################################################################
## MOD History: 
## 
##   2007-04-02 - Version 1.0
##	- First Version
## 
################################################################################
##
##  This hack is released under the GPL License. 
##  This hack can be freely used, but not distributed, without permission.
##  Intellectual Property Rights are retained by the hack author(s) 
##  listed above.
##
################################################################################
##
##  BEFORE ADDING THIS HACK TO YOUR FORUM, please be sure to backup ALL
##  affected files.
##
################################################################################ 
#
#----------[ COPY FILES ]-------------------------------
#
#  Copy / upload the following files to your phpBB root directory.
#  The phpBB root directory is the directory on your server containing index.php
#

copy templates/subSilver/easyucp_third_body.tpl

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

include/usercp_viewprofile.php

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

// <!-- BEGIN easyUCP -->
//	'body' => 'profile_view_body.tpl')
if ( $page )
{
	$second_profile_link .= '<a href="';
	$second_profile_link .= append_sid("profile.$phpEx?mode=viewprofile&u=" . $profiledata['user_id']);
	        $second_profile_link .= '">' . $lang['Profile'] . '</a>';

	$template->set_filenames(array(
		'body' => 'easyucp_second_body.tpl')
	);
} else {
	if ( $second_page_allowed )
	{
		$second_profile_link .= '<a href="';
		$second_profile_link .= append_sid("profile.$phpEx?mode=viewprofile&u=" . $profiledata['user_id'] . "&page=2");
		$second_profile_link .= '">' . $lang['Second_profilepage'] . '</a>';
	}

	$template->set_filenames(array(
		'body' => 'easyucp_body.tpl')
	);
}
// <!-- END easyUCP -->

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

// <!-- BEGIN easyUCP -->
// links generieren:
	$profile_link .= '<a href="';
	$profile_link .= append_sid("profile.$phpEx?mode=viewprofile&u=" . $profiledata['user_id']);
	$profile_link .= '">' . $lang['Profile'] . '</a>';

	$pics_profile_link .= '<a href="';
	$pics_profile_link .= append_sid("profile.$phpEx?mode=viewprofile&u=" . $profiledata['user_id'] . "&page=3");
	$pics_profile_link .= '">' . 'Bilder' . '</a>';
	
	if ( $second_page_allowed )
	{
		$second_profile_link .= '<a href="';
		$second_profile_link .= append_sid("profile.$phpEx?mode=viewprofile&u=" . $profiledata['user_id'] . "&page=2");
		$second_profile_link .= '">' . $lang['Second_profilepage'] . '</a>';
	}
	
//	'body' => 'profile_view_body.tpl')
if ( $page == 2 )
{
	$template->set_filenames(array(
		'body' => 'easyucp_second_body.tpl')
	);
} else if ( $page == 3) {
	$template->set_filenames(array(
		'body' => 'easyucp_third_body.tpl')
	);
} else {
	$template->set_filenames(array(
		'body' => 'easyucp_body.tpl')
	);
}
// <!-- END easyUCP -->

#
#----------[ FIND ]-------------------------------------
#
	'L_SECOND_PROFILEPAGE' => $lang['Second_profilepage'],
#
#----------[ AFTER, ADD ]-------------------------------
#
	'L_PIC_PROFILE_LINK' => 'Bilder',
	'L_APROFILE' => $lang['Profile'],
#
#----------[ FIND ]-------------------------------------
#
	'U_PROFILE_ADMIN' => append_sid("admin/admin_users.$phpEx?mode=edit&amp;u=" . $profiledata['user_id'] . '&amp;sid='.$userdata['session_id']),
#
#----------[ AFTER, ADD ]-------------------------------
#
	'U_PROFILE_LINK' => $profile_link,
	'U_SECOND_PROFILE_LINK' => $second_profile_link,
	'U_PIC_PROFILE_LINK' => $pics_profile_link,

#
#----------[ OPEN ]-------------------------------------
# do this changes on all templates!!!
#

templates/subSilver/easyucp_body.tpl

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

<table class="forumline" cellspacing="0" cellpadding="0" border="0" align="left" height="100%">
					<tr>
					<td class="catLeft" width="40%" height="28" align="left">
					<table border="0" id="table1" cellspacing="0" cellpadding="0" height="100%">
						<tr>
							<td background="templates/creaxive/images/profile-bgactivele.gif" width="4"></td>
							<td background="templates/creaxive/images/profile-bgactive.gif"><span class="gen"><b>{L_APROFILE}</b></span></td>
							<td background="templates/creaxive/images/profile-bgactiveri.gif" width="4"></td>
							<td width="10">&nbsp;</td>
							<td><span class="gen">{U_SECOND_PROFILE_LINK}</span></td>
						</tr>
					</table>

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

<table class="forumline" cellspacing="0" cellpadding="0" border="0" align="left" height="100%">
					<tr>
					<td class="catLeft" width="40%" height="28" align="left">
					<table border="0" id="table1" cellspacing="0" cellpadding="0" height="100%">
						<tr>
							<td background="templates/creaxive/images/profile-bgactivele.gif" width="4"></td>
							<td background="templates/creaxive/images/profile-bgactive.gif"><span class="gen"><b>{L_APROFILE}</b></span></td>
							<td background="templates/creaxive/images/profile-bgactiveri.gif" width="4"></td>
							<td width="10">&nbsp;</td>
							<td><span class="gen"><b>{U_SECOND_PROFILE_LINK}<b></span></td>
							<td width="10">&nbsp;</td>
							<td><span class="gen"><b>{U_PIC_PROFILE_LINK}</b></span></td>
							<td width="4"></td>
					</table>

#
#----------[ OPEN ]-------------------------------------
# do this changes on all templates!!!
#

templates/subSilver/easyucp_second_body.tpl

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

							<td><span class="gen">&nbsp; {U_SECOND_PROFILE_LINK}</span></td>
							<td width="10">&nbsp;</td>
							<td background="templates/creaxive/images/profile-bgactivele.gif" width="4"></td>
							<td background="templates/creaxive/images/profile-bgactive.gif"><span class="gen"><b>{L_SECOND_PROFILEPAGE}</b></span></td>
							<td background="templates/creaxive/images/profile-bgactiveri.gif" width="4"></td>

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

							<td><span class="gen">&nbsp; {U_PROFILE_LINK}</span></td>
							<td width="10">&nbsp;</td>
							<td background="templates/creaxive/images/profile-bgactivele.gif" width="4"></td>
							<td background="templates/creaxive/images/profile-bgactive.gif"><span class="gen"><b>{L_SECOND_PROFILEPAGE}</b></span></td>
							<td background="templates/creaxive/images/profile-bgactiveri.gif" width="4"></td>
							<td width="10">&nbsp;</td>
							<td><span class="gen">&nbsp; {U_PIC_PROFILE_LINK}</span></td>
							<td width="4"></td>
#
#----------[ SAVE AND CLOSE ALL FILES ]-----------------
#
# EoM