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

Reply
 
Thread Tools
Signature forced to bottom (postbit_legacy) Details »»
Signature forced to bottom (postbit_legacy)
Version: 1.00, by Sledgstone Sledgstone is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 3.6.2 Rating:
Released: 10-12-2006 Last Update: Never Installs: 228
 
No support by the author.

This mod will force all user's signatures to the bottom of their post. This is helpful if you have custom fields displayed under your avatars. Only 3 code changes are required in the postbit_legacy template. It'll take you about one minute to install this.

I have attached a couple screenshots showing what this mod does. I also have enabled this on my forums and you can see an example there:

http://forums.ancientclan.com/



In postbit_legacy, find:

Code:
	<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
Change to:
Code:
	<td class="alt2" width="175" rowspan="2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
Then find:
Code:
		<if condition="$post['signature']">
		<!-- sig -->
			<div>
				__________________<br />
				$post[signature]
			</div>
		<!-- / sig -->
		</if>
Delete it.


Now find:
Code:
		<!-- / edit note -->
		</if>
	
	</td>
</tr>
Directly underneath add:

Code:
<tr>
<td class="alt1" valign="bottom" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">

		<if condition="$post['signature']">
		<!-- sig -->
			<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
			<div valign="bottom">
				$post[signature]
			</div>
		<!-- / sig -->
		</if>
		</td>
</tr>
Before: Attachment 54617 After: Attachment 54618

Show Your Support

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

Comments
  #62  
Old 05-27-2007, 11:12 PM
Tulsa Tulsa is offline
 
Join Date: Jul 2005
Location: Broken Arrow, Oklahoma
Posts: 475
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect on 3.6.7 Two thumbs up, this is even better now... Thanks for this SecTa.
Reply With Quote
  #63  
Old 05-29-2007, 08:04 PM
dope15gd dope15gd is offline
 
Join Date: Jan 2006
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SecTa View Post
snip:
This worked perfectly for me. The OP's way screwed some things up, but yours is perfect. thanks for posting this
Reply With Quote
  #64  
Old 05-30-2007, 02:16 AM
Skedoozy's Avatar
Skedoozy Skedoozy is offline
 
Join Date: May 2006
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dbirosel View Post
Tried this and it still had a line. Am i doing something wrong???
these changes also did nothing for me
Reply With Quote
  #65  
Old 05-31-2007, 06:56 AM
ACIKillJoy ACIKillJoy is offline
 
Join Date: Sep 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those who are using postbit_legacy templates that do not include this line:
PHP Code:
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"
I have found a fix.

You need to find this:
PHP Code:
<tr valign="top">
    <
td class="alt2" width="175">
            
            <
div id="postmenu_$post[postid]"
then change it to this:
PHP Code:
<tr valign="top">
    <
td class="alt2" width="175" rowspan="2">
            
            <
div id="postmenu_$post[postid]"
Then delete this:
PHP Code:
$template_hook[postbit_signature_start]
       
        <if 
condition="$post['signature']">
        <!-- 
sig -->
            <
div>
                
__________________<br />
                
$post[signature]
            </
div>
        <!-- / 
sig -->
        </if>
       
        
$template_hook[postbit_signature_end
find this:

PHP Code:
<!-- / edit note -->
        </if>
    
    </
td>
</
tr
and after add this:
PHP Code:
<tr>
    <
td class="alt1" valign="bottom" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
        
$template_hook[postbit_signature_start]
            <if 
condition="$post['signature']">
        <!-- 
sig -->
                <
hr size="1" style="color:$stylevar[tborder_bgcolor]/>
                <
div valign="bottom">
                <
center>$post[signature]</center>
                </
div>
        <!-- / 
sig -->
            </if>
        
$template_hook[postbit_signature_end]
    </
td>
</
tr
I added a center tag around my $post[sig] code just to make it look better on my site. feel free to remove it if you want.
This is working on 3.6.7
To see it working on my site here is a link to a post
http://www.anticheatinc.com/forums/s...02&postcount=1
Reply With Quote
  #66  
Old 06-14-2007, 02:44 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[edit: fixed, sorry]
Reply With Quote
  #67  
Old 07-04-2007, 08:15 PM
foxfirediego foxfirediego is offline
 
Join Date: Aug 2005
Location: Brazil
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

still haven't found a way to fix this line
i've already read the thread
thx for the mod..
Reply With Quote
  #68  
Old 07-13-2007, 04:41 AM
Aneurysm's Avatar
Aneurysm Aneurysm is offline
 
Join Date: Jul 2006
Location: West Coast, USA
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, it's a great look
Reply With Quote
  #69  
Old 07-13-2007, 05:40 AM
4x4 Mecca 4x4 Mecca is offline
 
Join Date: Feb 2007
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

remove this line
Code:
			<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
and that line will be gone
Reply With Quote
  #70  
Old 07-14-2007, 01:55 AM
tmod tmod is offline
 
Join Date: Oct 2004
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 4x4 Mecca View Post
remove this line
Code:
			<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
and that line will be gone
Actually that won't remove the line he/she is referring to.

That will remove the line that is directly above the signature which you can barely see in the image.

The line he is referring to is due to the rowspan="2" addition and the skin that he is running.

Tmod
Reply With Quote
  #71  
Old 07-15-2007, 03:47 AM
tmod tmod is offline
 
Join Date: Oct 2004
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone that has a aftermarket skin may have the problem with that line that is directly under the post and then a big space and then the signature.

Well I hated the line there and played with some code until I got it looking the way I wanted it to.

So here is my edition of this mod.

Go to the postbit_legacy template for the skin you are working with.

Find This:
Code:
<td class="alt2" width="175">
Replace With This:
Code:
<if condition="$post['signature']">
<td class="alt2" width="175" rowspan="2">
<else />
<td class="alt2" width="175">
</if>
Find This:
Code:
$template_hook[postbit_signature_start]
		
		<if condition="$post['signature']">
		<!-- sig -->
			<div>
				__________________<br />
				$post[signature]
			</div>
		<!-- / sig -->
		</if>
		
		$template_hook[postbit_signature_end]
Replace With This:
Code:
$template_hook[postbit_signature_start]
		<if condition="$post['signature']">
<tr height="1">
<td class="alt1" valign="bottom">
		<!-- sig -->
			<div valign="bottom">
				$post[signature]
			</div>
		<!-- / sig -->
		</td>
</tr>
</if>

                $template_hook[postbit_signature_end]
Now save the template and refresh the forum and it should show a bit neater then it did before.

Tmod
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 09:40 AM.


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.06240 seconds
  • Memory Usage 2,341KB
  • Queries Executed 25 (?)
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
  • (11)bbcode_code
  • (6)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete