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
  #72  
Old 07-30-2007, 05:59 PM
flindersredclaw flindersredclaw is offline
 
Join Date: Oct 2006
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The original code worked spot on on 3.6.8
Reply With Quote
  #73  
Old 08-01-2007, 03:38 PM
flindersredclaw flindersredclaw is offline
 
Join Date: Oct 2006
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

... However I have not worked out how to apply this to the postbit template
Reply With Quote
  #74  
Old 08-02-2007, 02:47 AM
EvilKitty EvilKitty is offline
 
Join Date: Jan 2002
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ACIKillJoy View Post
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="bottomstyle="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

This almost solved it for me - only there's a sort of ugly white long above the black line now.
Reply With Quote
  #75  
Old 08-05-2007, 04:25 PM
Ohiosweetheart Ohiosweetheart is offline
 
Join Date: Dec 2005
Location: N.E. Ohio
Posts: 2,291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've had a problem with this hack dividing the message side of my postbit_legacy. See my screenshot. It's the same problem that EvilKitty seems to be having.

There are 2 or 3 fixes on this thread in addition to the original post. Do any of them actually work now?
Reply With Quote
  #76  
Old 08-24-2007, 11:37 PM
DrussRob DrussRob is offline
 
Join Date: Nov 2005
Location: Florida
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm by no means good at this, so just a suggestion here.
Would that line maybe be a function of the css?
Reply With Quote
  #77  
Old 08-25-2007, 03:47 AM
DrussRob DrussRob is offline
 
Join Date: Nov 2005
Location: Florida
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, so I investigated my own advice and think I came up with a fix.

This is what I did to get rid of the line.

AdminCP>Styles & Templates>Style Manager>Main CSS>

Now scroll down to "First Alternating Color". You'll see something like this:
Code:
border-left: 1px solid #212121;
border-right: 1px solid #212121;
border-top: 5px solid #212121;
border-bottom: 5px solid #212121;
Change the 5's to 0's and save. I'm not sure if you have to do it in the "Second Alternating Color", but I did and it didn't seem to hurt.
Reply With Quote
  #78  
Old 08-27-2007, 12:38 AM
Cigarcritic Cigarcritic is offline
 
Join Date: Aug 2007
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.....SecTa , works great!
Reply With Quote
  #79  
Old 09-05-2007, 01:12 PM
Grunt Grunt is offline
 
Join Date: Aug 2002
Location: TN
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I ran into the same thing awhile back with this mod - yes it is the borders defined in alt1/2 tags.

Instead of losing your alt borders throughout your forums just for this mod (unless it's of no consequence), create two 'Additional CSS Definitions' that are duplicates of your alt's minus the borders, which more than likely only leaves the background color. Then, in your postbit_legacy template replace all instances of alt1 and alt2 with the newly created definitions.

Code:
.alt1a {background-color: #F5F5FF;}
.alt2a {background-color: #E1E4F2;}
Or something along those lines..
Reply With Quote
  #80  
Old 09-10-2007, 11:09 AM
SliceofLife SliceofLife is offline
 
Join Date: Jul 2007
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for this! It works well on my forum. Exactly what I wanted
Reply With Quote
  #81  
Old 09-10-2007, 11:34 PM
SliceofLife SliceofLife is offline
 
Join Date: Jul 2007
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason, the original code started making all the posts double up, but this code below seems to work fine. Thank you

Quote:
Originally Posted by SecTa View Post
The line
HTML Code:
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
is not that good, cause it's used for "Last edited" separation, so, it's better to leave the original one. Also, when applying this hack, "last edited' info is shown ABOVE the signature, which is not good. And there's signature hooks appear to be misplaced.
Here's my alternative to this hack, with needed fixes:

In postbit_legacy, find:
HTML Code:
	<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
Change to:
HTML 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:
HTML Code:
		$template_hook[postbit_signature_start]
		
		<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]" />
				<em>
				<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
				<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
				</em>
			</div>
		<!-- / edit note -->
		</if>
	
	</td>
</tr>

Replace With:
HTML Code:
	</td>
</tr>
<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 -->
			<div valign="bottom">
			    __________________<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]" />
				<em>
				<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
				<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
				</em>
			</div>
		<!-- / edit note -->
		</if>
		</td>
</tr>
Works with vB 3.6.7
Sledgstone, could you please update your first post?
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 01:22 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.05832 seconds
  • Memory Usage 2,360KB
  • 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
  • (7)bbcode_code
  • (5)bbcode_html
  • (6)bbcode_php
  • (2)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