Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications

Reply
 
Thread Tools
Signature forced to bottom (for postbit_legacy users) Details »»
Signature forced to bottom (for postbit_legacy users)
Version: 1.00, by Brad Brad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.x Rating:
Released: 04-21-2004 Last Update: Never Installs: 7
Re-useable Code Translations  
No support by the author.

One of the biggest problems with the postbit_legacy template is how signatures will float to the bottom of the post text. This leaves an ugly gap between the bottom of the table and the bottom of the post text, this issue is more noticable on boards that show alot of info in the user box on the left of the postbit.

My modification will force the signature to the bottom of the table, however now the hieght of the signature will cause a slight gap in the user info box on the left. I think it is a good trade off, as I don't allow large sig's on my board anyway.

I have included a screen shot of the modification working, it will also give you an idea of the gap I refered to.

Instructions are included in the attached .txt file, the modification requires 2 edits to the postbit_legacy template.

[Screenshot]

Show Your Support

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

Comments
  #12  
Old 05-15-2004, 07:03 PM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Arcanum
Trying using rowspan=2 in the left column. Is what I did for mine.
I'm not clear, could you help me?
Reply With Quote
  #13  
Old 05-16-2004, 04:49 AM
Arcanum's Avatar
Arcanum Arcanum is offline
 
Join Date: Apr 2004
Location: Albuquerque NM
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See if this helps.

Btw, might suggest adding valign="bottom" to the table cell containing the signature... just to ensure is always at the bottom... but that's just my preference I suppose. Of course I personally also moved the edited & edited reason notices to that cell in my forums (a test one) also to ensure was at the bottom. But that's me.
Reply With Quote
  #14  
Old 05-16-2004, 05:57 AM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Arcanum
See if this helps.

Btw, might suggest adding valign="bottom" to the table cell containing the signature... just to ensure is always at the bottom... but that's just my preference I suppose. Of course I personally also moved the edited & edited reason notices to that cell in my forums (a test one) also to ensure was at the bottom. But that's me.
Thanks, nice try.. but now it everything is centered and the cell is off in color. I'll look into it.
Reply With Quote
  #15  
Old 05-31-2004, 07:04 PM
nydk nydk is offline
 
Join Date: May 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I've had no trouble doing this for my other styles, but my newest/latest style was created a little "differently" (Ex: The "navbar" items are actually in the "header", my "postbit_legacy" uses a lot of DIV's and less tables...

I have no problem finding, and erasing this part of the code:
Code:
<if condition="$post['signature']">
<!-- sig -->
<div>
	__________________<br />
	$post[signature]
</div>
<!-- / sig -->
</if>
Then, it says look for:
Code:
<!-- / edit note -->
</if>
 
</td>
</tr>
... and add directly below it:
Code:
 
<tr>
<td class="alt2">
</td>
<td class="alt1" align="$stylevar[right]">
<if condition="$post['signature']">
<!-- sig -->
<div>
	__________________________<br />
	$post[signature]
</div>
<!-- / sig -->
</if>
</td>
</tr>

When I search for "<!-- / edit note -->" and look for the closing IF, TD, and TR tags, in my postbit_legacy I find:

Code:
 
...etcetcetc.... <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
	</em>
</div>
<!-- / edit note -->
</if>
					<div align="right">
<!-- controls -->
<if condition="$post['editlink']"> .......etc etc etc etc......
In other words, no closing TD and TR tags after the edit note... so if I try to do the mod, things get messed up.

I've attached my postbit_legacy... if anybody has any suggestions, please let me know.

Again, these mods gave me no trouble on my other styles... just this one style's givign me trouble. thanks
Reply With Quote
  #16  
Old 06-07-2004, 08:11 AM
imported_John Crichton imported_John Crichton is offline
 
Join Date: May 2004
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when I do it on my site is changed nothing... is there anywhere else it could be???
Reply With Quote
  #17  
Old 09-23-2004, 12:15 PM
fulleffect fulleffect is offline
 
Join Date: Sep 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

test test test test test test test test test
Reply With Quote
  #18  
Old 09-28-2004, 12:14 AM
Sledgstone's Avatar
Sledgstone Sledgstone is offline
 
Join Date: Aug 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using the following for vB 3.0.3 and it takes care of the gap at the left and bottom aligns the signature, but because I'm using cellspacing="1" in my table I'm getting an annoying cellspacing line in the posts. This works good for IE. I haven't tested it in other browsers though.

In postbit_legacy, find:
Code:
	<td class="alt2" width="175">
Change to:
Code:
	<td class="alt2" width="175" rowspan="2">
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">
		<if condition="$post['signature']">
		<!-- sig -->
			<div valign="bottom">
				__________________________<br />
				$post[signature]
			</div>
		<!-- / sig -->
		</if>
		</td>
</tr>
Reply With Quote
  #19  
Old 01-03-2005, 12:01 PM
imported_TCB imported_TCB is offline
 
Join Date: Jan 2004
Location: behind my computer
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That sollution is great

But now the 'Last edited by' line is placed right under the last line of a post, and then there's a gap until the bottom where the signature is.

But that's only for posts with just a few lines of text.
Reply With Quote
  #20  
Old 01-15-2005, 04:27 PM
Sledgstone's Avatar
Sledgstone Sledgstone is offline
 
Join Date: Aug 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want the 'Last edited by' line moved to just above the signature do the following:


In postbit_legacy, find:

Code:
		<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>
Delete it.

Then find:

Code:
		<if condition="$post['signature']">
Directly above add:

Code:
		<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>
Reply With Quote
  #21  
Old 01-29-2005, 07:10 PM
catocom2 catocom2 is offline
 
Join Date: Aug 2002
Location: Gainesville, Georgia
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BigJohnson
But then it adds a humungus space to the bottom. How can we not make this do that?

It is adding the space to the left area with the postbit info whne a sig is present.

I dont like this. Is there any alternate way?
I get the same using 3.0.6.
Did anybody ever figure this out?
Reply With Quote
Reply

Thread Tools

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 07:13 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.08895 seconds
  • Memory Usage 2,311KB
  • 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
  • (12)bbcode_code
  • (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
  • (2)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