Modification Name: Adjust Signature Spacing v1.0

Modification Author: Scan, GuldantheWarlock

Modification Description:
This modifications will add some spacing between a user's post and their signature.

Supported Version: XMB 1.9.11

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

=======================================================================================================
=======
Step 1:
=======
==================================
Go to Administration Panel -> Insert Raw SQL:
==================================
=============================
Paste the following code and hit submit:
=============================

ALTER TABLE $table_settings ADD `sigspacing` VARCHAR(6) NOT NULL default '50px';

=======================================================================================================
=======
Step 2:
=======
==============================================
Go To Admin Panel -> Translations & Download Language File:
==============================================
===============
Edit Language File:
===============
==========================
Add Code At Very Bottom Of File:
==========================

// Adjust Signature Spacing Mod Begin
$lang['sigspacing'] = "Amount of Signature Spacing:";
// Adjust Signature Spacing Mod End

============================================
Go To Admin Panel -> Translations & Upload Language File:
============================================
=======================================================================================================
=======
Step 3:
=======
===========
Edit cp.php:
===========

        printsetting1($lang['sightml'], 'sightmlnew', $sightmlon, $sightmloff);
        
===========
Add Below:
===========

        // Adjust Signature Spacing Mod Begin
        printsetting2($lang['sigspacing'], 'sigspacingnew', ((int)$SETTINGS['sigspacing']), 5);
        // Adjust Signature Spacing Mod End

======
Find:
======

        $remoteimages = formOnOff('remoteimages');
        
===========
Add Below:
===========

        // Adjust Signature Spacing Mod Begin
        $sigspacingnew = (strpos($sigspacing, 'px') !== false) ? $sigspacingnew : $sigspacingnew.'px';
        // Adjust Signature Spacing Mod End

======
Find:
======

        $sql = "UPDATE ".X_PREFIX."settings SET

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

        $sql = "UPDATE ".X_PREFIX."settings SET
            sigspacing='$sigspacing',

=======================================================================================================
=======
Step 4:
=======
==============================
Go to Administration Panel -> Templates:
==============================
===============
Edit Template css:
===============
======
Find:
======

.sig {
     border-top: 1px dashed $bordercolor;
     padding: 13px 0 0 3px;
     font-family: $font;
     font-size: $fontsize;
}

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

div.sig {
     border-top: 1px dashed $bordercolor;
     padding: 13px 0 0 3px;
     font-family: $font;
     font-size: $fontsize;
     margin: 9em 0 0 0;
     padding: $sigspacing 1em;
}

div.postview  {
    min-height: 100%;
}

=======================================================================================================
=======
Step 5:
=======
==============================
Go to Administration Panel -> Templates:
==============================
========================
Edit Template: viewthread_post:
========================
=====
Find:
=====

<td class="tablerow" valign="top" style="height: 80px; width: 82%" >
<font class="subject">
<strong>$post[subject]</strong>
</font>
<br />
<br />
<font class="mediumtxt">$post[message]</td>

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

<td class="tablerow" valign="top" style="height: 80px; width: 82%" >
<div class="postview">
<font class="subject">
<strong>$post[subject]</strong>
</font>
<br />
<br />
<font class="mediumtxt">$post[message]</td>

=======================================================================================================
=======
Step 6:
=======
==============================
Go to Administration Panel -> Templates:
==============================
===========================
Edit Template: viewthread_post_sig:
===========================
======
Find:
======

</font>
<br />
<br />
<br />
<br />
<div class="sig">$post[sig]</div>

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

</font>
<div class="sig">$post[sig]</div>
</div>

=======================================================================================================
=======
Step 7:
=======
==============================
Go to Administration Panel -> Templates:
==============================
============================
Edit Template: viewthread_post_nosig:
============================

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

</font>
</div>

=======================================================================================================
Enjoy