Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
New Neater Signature Style Details »»
New Neater Signature Style
Version: 1.00, by christon26 christon26 is offline
Developer Last Online: Aug 2016 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.4 Rating:
Released: 11-28-2009 Last Update: Never Installs: 11
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

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

Screenshots

File Type: jpg Lissa_PostSignature.jpg (140.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 01-02-2010, 08:00 PM
christon26 christon26 is offline
 
Join Date: Dec 2008
Location: Australia
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice add, I like that

I'll edit your post into my first post!
Reply With Quote
  #23  
Old 01-02-2010, 11:20 PM
Warlord's Avatar
Warlord Warlord is offline
 
Join Date: Jan 2002
Location: TN, USA
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice little mod Christon.


Quote:
Originally Posted by ChopSuey View Post
HTML Code:
<fieldset class="signature">
<legend>Signature - <if condition="$show['member']"><a href="/profile.php?do=editsignature">Edit</a></if></legend>
A little something i did for my board, let them edit theirs also Shows to members only

If you change it to this, then it will only show up for the author of the displayed signature. (Before it would show the edit signature link to all registered users in every signature as opposed to only appearing in their own signatures.)

HTML Code:
            <fieldset class="signature">
<legend>Signature <if condition="$bbuserinfo[userid] == $post[userid] "> - <a href="/profile.php?do=editsignature">Edit</a></if></legend>  
                
                $post[signature]
            </fieldset>
I also added a few line breaks above that to drop the signature down a bit in the posts.
Reply With Quote
  #24  
Old 01-03-2010, 11:30 AM
wickedstangs wickedstangs is offline
 
Join Date: Mar 2007
Location: San Diego
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tried to install and it come out like this. Any assistance would greatly be appreciated....


Below is my original postbit...
Attached Files
File Type: txt postbit legacy.txt (14.0 KB, 10 views)
Reply With Quote
  #25  
Old 01-03-2010, 05:08 PM
Warlord's Avatar
Warlord Warlord is offline
 
Join Date: Jan 2002
Location: TN, USA
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wickedstangs View Post
tried to install and it come out like this. Any assistance would greatly be appreciated....


Below is my original postbit...
The postbit_legacy template you attached looks like the original template before any changes. Judging from the picture though, I think you have the modification installed correctly. I'm guessing you just don't like all the black after the message and you either didn't add the css to the additional css definitions or you made that color black.

Add this to your Additional CSS Definitions if you skipped this step before.

Code:
.signature { 
    border: solid 1px #bdbfdd; 
    margin: 5px; 
    padding: 10px; 
    color: #000000; 
    background: transparent;
}
If you already added the CSS just change the background properties in the CSS for .signature to transparent. That will make the background transparent and remove all that black. The reason you have so much room in between your post and your signature is because you have so much in your postbit_legacy template (on the left side). I'm assuming that's how it was before you tried adding this modification too, but the signature just had a transparent background before.
Reply With Quote
  #26  
Old 01-06-2010, 03:50 PM
christon26 christon26 is offline
 
Join Date: Dec 2008
Location: Australia
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Warlord View Post
Nice little mod Christon.





If you change it to this, then it will only show up for the author of the displayed signature. (Before it would show the edit signature link to all registered users in every signature as opposed to only appearing in their own signatures.)

HTML Code:
            <fieldset class="signature">
<legend>Signature <if condition="$bbuserinfo[userid] == $post[userid] "> - <a href="/profile.php?do=editsignature">Edit</a></if></legend>  
                
                $post[signature]
            </fieldset>
I also added a few line breaks above that to drop the signature down a bit in the posts.
Thanx! I like that even better lol
Reply With Quote
  #27  
Old 01-06-2010, 03:55 PM
christon26 christon26 is offline
 
Join Date: Dec 2008
Location: Australia
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wickedstangs View Post
tried to install and it come out like this. Any assistance would greatly be appreciated....


Below is my original postbit...
Hi, your text file doesn't contain the changed code you added and without a link I cannot see what's happening via Firebug...but I would hazard a guess you need to add class="alt1" into the td code for the signature cell (the second set of code change) like so:

PHP Code:
    <td align="center" valign="bottom" class="alt1"
Hope that helps

**edit just spied your forum link in your signature lol it's really early here :P
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04933 seconds
  • Memory Usage 2,389KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_html
  • (13)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (2)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete