============================================================================================================================
Modification Title: U2U Full Page

Version: 1.0

Author: Huhnteufel

Updated and Revised for 1.9.5 by : Ahmad

Description: This modification will make the U2U Interface a standard page, rather than a pop-up.

Compatability: XMB 1.9.5 SP1

Install Note: Before adding this modification to your forum, you should back up all files related to this modification.

License Note: This modification is released under the GPL License v3. A copy is provided with this software package.

Author Note:
You downloaded this modification from XMBGarage.com, the #1 source for XMB related downloads.
Please visit http://www.xmbgarage.com/ for support.
============================================================================================================================
=======
Step 1:
=======
================
Edit File: header.php
================
==========
Find Code:
==========

    $u2ulink = "<a href=\"#\" onclick=\"Popup('u2u.php', 'Window', 700, 450);\">$lang[banu2u]</a> - ";

================
Replace Code With:
================

    $u2ulink = "<a href=\"u2u.php\">$lang[banu2u]</a> - ";

==========
Find Code:
==========

        $newu2umsg = "<a href=\"#\" onclick=\"Popup('u2u.php', 'Window', 700, 450);\">$lang[newu2u1] $newu2unum $lang[newu2u2]</a>";

================
Replace Code With:
================

        $newu2umsg = "<a href=\"u2u.php\">$lang[newu2u1] $newu2unum $lang[newu2u2]</a>";

============================================================================================================================
=======
Step 2:
=======
=================
Edit File: memcp.php
=================
==========
Find Code:
==========

    echo "<td bgcolor=\"$altbg2\" width=\"20%\" class=\"ctrtablerow\"><a href=\"#\" onclick=\"Popup('u2u.php', 'Window', 700, 450);\">" .$lang['textu2umessenger']. "</a></td>";

================
Replace Code With:
================

    echo "<td bgcolor=\"$altbg2\" width=\"20%\" class=\"ctrtablerow\"><a href=\"u2u.php\">" .$lang['textu2umessenger']. "</a></td>";


============================================================================================================================
=======
Step 3:
=======
==============
Edit File: u2u.php
==============
==========
Find Code:
==========

$sendmode = (isset($action) && $action == 'send') ? "true" : "false";

eval('$u2uheader = "'.template('u2u_header').'";');
eval('$u2ufooter = "'.template('u2u_footer').'";');

================
Replace Code With:
================

// Set Navigation
nav($lang['banu2u']);
$sendmode = (isset($action) && $action == 'send') ? "true" : "false";
    eval('$header = "'.template('header').'";');
    eval('$header2 = "'.template('u2u_header').'";');
$u2uheader = stripslashes($header . $header2);
    eval('$u2ufooter = "'.template('footer').'";');

============================================================================================================================
=======
Step 4:
=======
==============================================
Edit File: u2uadmin.php (if using 1.9.5 SP1 you can skip this step)
==============================================
==========
Find Code:
==========
   
eval("\$u2uheader = \"".template('u2u_header_admin')."\";");
eval("\$u2ufooter = \"".template('u2u_footer')."\";");

================
Replace Code With:
================

nav($lang['banu2u']);
eval('$u2uheader = "'.template('header').'";');
eval('$u2ufooter = "'.template('footer').'";');

============================================================================================================================
=======
Step 5:
=======
=======================
Edit File: lang/English.lang.php 
=======================
=================
Find Code (2 Times):
=================

<a href=\"#\" onclick=\"Popup('u2u.php', 'Window', 550, 450);\">

================
Replace Code With:
================

<a href=\"u2u.php\">

============================================================================================================================
=======
Step 6:
=======
===============================
Go To Administration Panel --> Templates
===============================
=================
Edit Template: header
=================
=======
Find Code :
=======

<script language="JavaScript" type="text/javascript" src="./include/header.js"></script>

===============
Add Code Below:
===============

<script language="JavaScript" type="text/javascript" src="./include/u2uheader.js"></script>

============================================================================================================================
=======
Step 7:
=======
===============================
Go To Administration Panel --> Templates
===============================
=============================
Edit Template: index_welcome_member
=============================
=======
Find Code :
=======

<a href="#" onclick="Popup('u2u.php','Window', 700, 450);"><strong>$lang[textu2umessenger]</strong></a>

================
Replace Code With:
================

<a href="u2u.php"><strong>$lang[textu2umessenger]</strong></a>

============================================================================================================================
=======
Step 8:
=======
===============================
Go To Administration Panel --> Templates
===============================
======================
Edit Template: memcp_home
======================
==========
Find Code:
==========

<a href="#" onclick ="Popup('u2u.php','Window', 700, 450);">[$lang[viewcompleteinbox]]</a>

================
Replace Code With:
================

<a href="u2u.php">[$lang[viewcompleteinbox]]</a>

============================================================================================================================
=======
Step 9:
=======
==============================
Go To Administration Panel --> Templates
==============================
=======================
Edit Template: member_profile
=======================
==========
Find Code:
==========

(<a href="#" onclick="Popup('u2u.php?action=send&amp;username=$encodeuser', 'Window', 700, 450);">$lang[textu2u]</a>)

================
Replace Code With:
================

(<a href="u2u.php?action=send&amp;username=$encodeuser">$lang[textu2u]</a>)

============================================================================================================================
========
Step 10:
========
===============================
Go To Administration Panel --> Templates
===============================
=====================
Edit Template: u2u_header
=====================
==========
Find Code:
==========

     <body text="$text">

===============
Add Code Below:
===============

<table border="0" cellspacing="0" cellpadding="0" width="$tablewidth" align="center">
<tr><td bgcolor="$bordercolor"><table border="0" cellspacing="$borderwidth" cellpadding="4" width="100%">
<tr align="center" class="tablerow">
<td bgcolor="$altbg2" width="15%" class="ctrtablerow"><a href="memcp.php">$lang[textmyhome]</a></td>
<td bgcolor="$altbg2" width="15%" class="ctrtablerow"><a href="memcp.php?action=profile">$lang[texteditpro]</a></td>
<td bgcolor="$altbg2" width="15%" class="ctrtablerow"><a href="memcp.php?action=subscriptions">$lang[textsubscriptions]</a></td>
<td bgcolor="$altbg2" width="15%" class="ctrtablerow"><a href="memcp.php?action=favorites">$lang[textfavorites]</a></td>
<td bgcolor="$altbg1" width="20%" class="ctrtablerow">$lang[textu2umessenger]</td>
<td bgcolor="$altbg2" width="15%" class="ctrtablerow"><a href="#" onclick="Popup('buddy.php?', 'Window', 450, 400);">$lang[textbuddylist]</a></td>
<td bgcolor="$altbg2" width="10%" class="ctrtablerow"><a href="faq.php">$lang[helpbar]</a></td>
</tr>
</table></td></tr></table><br />

============================================================================================================================
========
Step 11:
========
===============================
Go To Administration Panel --> Templates
===============================
===========================
Edit Template: viewthread_post_u2u
===========================
==================
Replace Contents With:
==================

<a href="u2u.php?action=send&amp;username=$encodename"><img src="$imgdir/u2u.gif" border="0" alt="$lang[altu2umember]" /></a>

============================================================================================================================
Enjoy!