============================================================================================================================
Modification Name: Adjust Signature Spacing v1.0

Author: GuldantheWarlock (GuldantheWarlock@xmbgarage.com)

Original Code by: Scan

Last Updated: 04-09-10

Updated By: WormHole (fixed syntax error in the SQL insert query)

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

Supported Version: XMB 1.9.5 SP1

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

Please backup your files before installing this modification.
Neither XMB Garage nor the author can be held responsible if your board stops functioning properly due to you installing this modification.
============================================================================================================================
=======
Step 1:
=======
===================================
Go to Administration Panel --> Insert Raw SQL
===================================
===================================
Paste The Following Code and Submit Changes
===================================

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

============================================================================================================================
=======
Step 2:
=======

===========================
Edit lang/English.lang.php:
===========================
=======================
Add to End of File Above  ?>
=======================

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

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

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

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

        $tickercontentsnew = addslashes($tickercontentsnew);
        
===============
Add Code Below:
===============

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

$db->query("UPDATE $table_settings SET langfile='$langfilenew'
        
==========================
Add To End Of Line BEFORE  ");
==========================

, sigspacing='$sigspacingnew'

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

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

================
Replace Code 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 Code:
==========

<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 Code 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_nosig
============================
==================
Replace Contents With:
==================

</font>
</div>

============================================================================================================================
=======
Step 7:
=======
===============================
Go To Administration Panel --> Templates
===============================
==========================
Edit Template: viewthread_post_sig
==========================
==================
Replace Contents With:
==================

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

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