Back to vBulletin 3.8 Template Modifications

New Neater Signature Style
Mod Version: 1.00, by christon26

vB Version: 3.8.4 Rating: (0 vote - 0 average) Installs: 11
Released: 29 Nov 2009 Last Update: Never Downloads: 13
Not Supported Template Edits Code Changes Re-usable Code Translations  

This is my very first mod post so be gentle lol

I re-arranged how the signatures display on my forum as I don't like the default....and would like to give back to the community by sharing

**Please save your original template code before modifying**

In Postbit Templates

For postbit_legacy:

Find:

PHP Code:
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"
Replace with:

PHP Code:
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px" rowspan="2"
Find:

PHP Code:
        $template_hook[postbit_signature_start]
        
$ad_location[ad_showthread_firstpost_sig]

        <if 
condition="$post['signature']">
        <!-- 
sig -->
            <
div>
                
__________________<br />
                
$post[signature]
            </
div>
        <!-- / 
sig -->
        </if>

        
$template_hook[postbit_signature_end]

        <if 
condition="$show['postedited']">
        <!-- 
edit note -->
            <
div class="smallfont">
                <
hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]/>
                <
em>
                    <if 
condition="$show['postedithistory']">
                        <
phrase 1="$post[edit_username]2="$post[edit_date]3="$post[edit_time]4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>
                    <else />
                        <
phrase 1="$post[edit_username]2="$post[edit_date]3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>
                    </if>
                    <if 
condition="$post['edit_reason']">
                        
$vbphrase[reason]: $post[edit_reason]
                    </if>
                </
em>
            </
div>
        <!-- / 
edit note -->
        </if>

    </
td>
</
tr
Replace with:

PHP Code:
        <if condition="$show['postedited']">
        <!-- 
edit note -->
            <
div class="smallfont">
                <
hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]/>
                <
em>
                    <if 
condition="$show['postedithistory']">
                        <
phrase 1="$post[edit_username]2="$post[edit_date]3="$post[edit_time]4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>
                    <else />
                        <
phrase 1="$post[edit_username]2="$post[edit_date]3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>
                    </if>
                    <if 
condition="$post['edit_reason']">
                        
$vbphrase[reason]: $post[edit_reason]
                    </if>
                </
em>
            </
div>
        <!-- / 
edit note -->
        </if>
</
td>
</
tr>
<
tr>
    <
td align="center" valign="bottom">
        
$template_hook[postbit_signature_start]
        
$ad_location[ad_showthread_firstpost_sig]

        <if 
condition="$post['signature']"><br />
        <!-- 
sig -->

            <
fieldset class="signature">
<
legend>Signature</legend>
                
                
$post[signature]
            </
fieldset>
        <!-- / 
sig -->
        </if>

        
$template_hook[postbit_signature_end]
    </
td>
</
tr
Save and enjoy

For postbit:

Find:
PHP Code:
        $template_hook[postbit_signature_start]
        
$ad_location[ad_showthread_firstpost_sig]

        <if 
condition="$post['signature']">
        <!-- 
sig -->
            <
div>
                
__________________<br />
                
$post[signature]
            </
div>
        <!-- / 
sig -->
        </if>

        
$template_hook[postbit_signature_end
Replace with:

PHP Code:
        $template_hook[postbit_signature_start]
        
$ad_location[ad_showthread_firstpost_sig]

        <if 
condition="$post['signature']"><br />
        <!-- 
sig -->

            <
fieldset class="signature">
<
legend>Signature</legend>
                
                
$post[signature]
            </
fieldset>
        <!-- / 
sig -->
        </if>

        
$template_hook[postbit_signature_end
Save and enjoy

The code contains the word signature which can be changed to your language if different, just find and edit:

PHP Code:
<legend>Signature</legend
Lastly, add some css in the Additional CSS Definitions in Style Manager to style the signature fieldset how you like

PHP Code:
.signature 
    
bordersolid 1px #bdbfdd; 
    
margin5px
    
padding10px
    
color#000000; 
    
background#ffffff;

For post previewing, New Posting Templates >> newpost_preview

Find:

PHP Code:
            <div>__________________<br />
            
$post[signature]</div
Replace with:

PHP Code:
            <fieldset class="signature">
<
legend>Signature</legend>
                
                
$post[signature]
            </
fieldset
Hopefully I have done this right and some can make nice use of it

***Revision 4th December: Removed unnecessary table cell code from postbit replacement plus border style from table cell in postbit_legacy
***Revision 4th December: Added code to change for newpost_preview template

***Revision 3rd January:

Thanx to ChopSuey and Warlord for this little change if you want to give your members a link to edit their signature in the legend title:

Change:

PHP Code:
<legend>Signature</legend
to:

PHP Code:
<legend>Signature <if condition="$bbuserinfo[userid] == $post[userid] "> - <a href="/profile.php?do=editsignature">Edit</a></if></legend

Download

No files for download.

Screenshots

Click image for larger version
Name:	Lissa_PostSignature.jpg
Views:	1361
Size:	140.1 KB
ID:	106901  

Similar Mods

Show Thread Enhancements Neater Postbit Legacy Fields vBulletin 3.6 Template Modifications
[release] Neater Welcome/Stats Text vBulletin 2.x Template Modifications
[Release] Neater Header vBulletin 2.x Template Modifications
Neater Forumhome Bits vBulletin 2.x Template Modifications

vblts.ru supports vBulletin®, 2022-2024