Title: U2U Full Page Display v1.0

Author: Huhnteufel

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

Compatability: XMB 1.9.8 SP3

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. 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 With:
===============

    // U2U Full Page Display Mod Begin
    $u2ulink = "<a href=\"u2u.php\">$lang[banu2u]</a> - ";
    // U2U Full Page Display Mod End

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

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

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

        // U2U Full Page Display Mod Begin
        $newu2umsg = "<a href=\"u2u.php\">$lang[newu2u1] $newu2unum $lang[newu2u2]</a>";
        // U2U Full Page Display Mod End

=======================================================================================================================================
=======
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 With:
============

    // U2U Full Page Display Mod Begin
    echo "<td bgcolor=\"$altbg2\" width=\"20%\" class=\"ctrtablerow\"><a href=\"u2u.php\">" .$lang['textu2umessenger']. "</a></td>";
    // U2U Full Page Display Mod End

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

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

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

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

// U2U Full Page Display Mod Begin
// 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').'";');
// U2U Full Page Display Mod End

=======================================================================================================================================
=======
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 With:
===============

// U2U Full Page Display Mod Begin
nav($lang['banu2u']);
eval("\$u2uheader = \"".template('header')."\";");
eval("\$u2ufooter = \"".template('footer')."\";");
// U2U Full Page Display Mod End

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

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

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

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

=======================================================================================================================================

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

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

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

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

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

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

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

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

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

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

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

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

=======================================================================================================================================
=======
Step 9:
=======
==========================
Go To Admin 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 With:
============

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

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

<body text="$text">

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

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

=======================================================================================================================================
=======
Step 11:
=======
==========================
Go To Admin Panel --> Templates
==========================
===========================
Edit Template: viewthread_post_u2u
===========================
====================
Replace All Content With:
====================

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

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