Modification Name: Adjust Signature Spacing v1.0

Modification Author: GuldantheWarlock (GuldantheWarlock@xmbgarage.com)

Original Code by: Scan

Last Updated: 04-19-09

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

Modification Description:
This modification will add some spacing between users posts and their signatures.

Supported Version: XMB 1.9.8 SP3

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

Please backup your files before installing this modification. Neither XMBGarage 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 hit submit:
=============================

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

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

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

===========================
Edit lang/English.lang.php:
===========================

===================
Add to End of File:
===================

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

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

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

============
Edit cp.php:
============

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

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

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

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

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

            onlinetoday_status='$onlinetoday_statusnew'
        
============
Replace With:
============

            onlinetoday_status='$onlinetoday_statusnew',
            sigspacing='$sigspacingnew'

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

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

==================
Replace Contents 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