============================================================================================================================
Modification Title: Signature In Member Control Panel

Version: 1.0

Author: John Briggs

Description:
This modification will display a signature preview in the member control panel.

Copyright:  2010 John Briggs. All Rights Reserved.

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. 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: memcp.php
=================
==========
Find Code:
==========

loadtemplates(

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

loadtemplates(
'memcp_home_sig',

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

    if ($member['mood'] != '') {
        $member['mood'] = censor($member['mood']);
        $member['mood'] = postify($member['mood'], 'no', 'no', 'yes', 'no', 'yes', 'no', true, 'yes');
    } else {
        $member['mood'] = '';
    }

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

    // Signature In Member Control Panel Mod begin
    $sigblock = '';
    if ($member['sig'] != '') {
        $member['sig'] = censor($member['sig']);
        $member['sig'] = postify($member['sig'], 'no', 'no', 'yes', 'no', 'yes', 'yes', false, 'no', 'no');
        eval('$sigblock = "'.template('memcp_home_sig').'";');
    }
    // Signature In Member Control Panel Mod End

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

<tr class="tablerow">
<td bgcolor="$altbg1" valign="top">$lang[textcusstatus]</td>
<td bgcolor="$altbg2" valign="top">$member[customstatus]</td>
<td bgcolor="$altbg1" valign="top">&nbsp;</td>
<td bgcolor="$altbg2" valign="top">&nbsp;</td>
<td bgcolor="$altbg1" valign="top">&nbsp;</td>
<td bgcolor="$altbg2" valign="top">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<br />
</td>
</tr>
</table></td>
</tr>
</table>

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

$sigblock

============================================================================================================================
=======
Step 3:
=======
===============================
Go To Administration Panel --> Templates
===============================
==============================
Create New Template: memcp_home_sig
==============================
========================
Add Code and Submit Changes:
========================

<br />
<table cellspacing="0" cellpadding="0" border="0" width="$tablewidth" align="center">
<tr>
<td bgcolor="$bordercolor">
<table border="0" cellspacing="$borderwidth" cellpadding="$tablespace" width="100%">
<tr class="category">
<td colspan="2"><font color="$cattext"><strong>$lang[textsig]</strong></font></td>
</tr>
<tr class="tablerow">
<td bgcolor="$altbg2">$member[sig]</td>
</tr>
</table>
</td>
</tr>
</table>

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