Title: Signature In Member Control Panel v1.0

Author: John Briggs

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

Copyright:  2006 John Briggs. All rights reserved.

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

loadtemplates(

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

loadtemplates(
'member_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 Begn
    $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 Admin Panel -> Templates
==========================
======================
Edit Template: memcp_home
======================
==========
Find Code:
==========

<table width="$tablewidth" align="center">

===============
Add Code Above:
===============

$sigblock

=======================================================================================================================================
=======
Step 3:
=======

==========================
Go To Admin Panel -> Templates
==========================
===============================
Create New Template: memcp_home_sig
===============================
===========================
Add Code & Click Submit Changes:
===========================

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

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