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

Reply
 
Thread Tools
Force Signature to the Bottom Details »»
Force Signature to the Bottom
Version: 1.00, by dancue dancue is offline
Developer Last Online: Dec 2009 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.0 Rating:
Released: 03-26-2008 Last Update: Never Installs: 105
Template Edits
 
No support by the author.

Here is a small contribution to this community.

I noticed that this template modification was available for 3.0 and 3.5, but not for 3.7.

Credits:
Was motivated by the original hack, created by Brad.


What does it do?

It will allow you to place the signature at the very bottom of the post.

What's the difference between this and the previous versions?
  • The table area for the signature will shrink to fit the signature. This will avoid the bottom table from directly following the end of a post.
  • The edited note has been moved to the absolute bottom. (On past versions they have showed directly after the post, before the sig.)

Versions tested and working on:
  • 3.7.0

Notes:
  • This is ONLY for postbit_legacy users.
  • Those with very customized templates may reply to this thread or pm me for a different code. Please make a copy of your postbit_legacy before altering it.
  • Support is offered to the best of my ability and when time permits.
  • I will only offer support to those who have clicked install.

Installation:

Find in postbit_legacy template:
Code:
	<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
replace with:
Code:
	<td class="alt2" width="175" rowspan="2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
Find in postbit legacy template:
Code:
		<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:
Code:
<tr>
<td class="alt2" valign="bottom" height="100%"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">
				$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>

Show Your Support

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

Comments
  #22  
Old 04-27-2008, 04:19 PM
yaoren's Avatar
yaoren yaoren is offline
 
Join Date: May 2007
Location: Maryland, USA
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked perfectly, thanks!
Reply With Quote
  #23  
Old 05-03-2008, 02:44 AM
Wheezy's Avatar
Wheezy Wheezy is offline
 
Join Date: Jun 2007
Location: USA
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cannot get this to work. I have a custom skin downloaded on my vB 3.7 so I think those templates are interfering with this code. Can someone help me out?

*EDITED CODE OUT*

Also... is there a way to extend the signature line to extend across the entire post? THANKS!!!
Reply With Quote
  #24  
Old 05-03-2008, 03:28 AM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you copy your postbit_legacy template and pm it to me? I'd like to take a look at it.
Reply With Quote
  #25  
Old 05-03-2008, 04:08 PM
UberDoober UberDoober is offline
 
Join Date: Mar 2008
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Clicked "Installed" !

I love you, man! Ugraded to 3.7.0 Gold from 3.6.8PL2 and didn't revert my 3.6.8 template. Noticed that "edited by" only showed up on users with no signatures so had to bite the bullet and revert and modify the new one. I'm a noob at this and it scared me to death but all is well! Job Done!

Cheers! Thank you!
Reply With Quote
  #26  
Old 05-04-2008, 12:48 PM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wheezy, I sent it back to you. Let me know if it works.

Uber,
Your welcome. Thanks for the support.
Reply With Quote
  #27  
Old 05-07-2008, 08:19 PM
crashys crashys is offline
 
Join Date: Oct 2003
Location: Lisboa
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a question regarding postbit legacy, can anyone give some help?

https://vborg.vbsupport.ru/showthrea...63#post1508063

Thanks in advance.
Reply With Quote
  #28  
Old 05-08-2008, 04:58 AM
Goomzee Goomzee is offline
 
Join Date: Apr 2008
Location: Philippines
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any screen shot
Reply With Quote
  #29  
Old 05-13-2008, 09:40 AM
Vinyljunky's Avatar
Vinyljunky Vinyljunky is offline
 
Join Date: Feb 2007
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dancue View Post
The post bg color should either be alt1 or alt2. If you installed the code provided here and it did not match then you would have to do the following:

Code:
<tr>
<td class="alt1" valign="bottom" height="100%"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">
				$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>
I've highlighted the change in red. This change is replacing the last step mentioned above in my first post.

Hope this helps.
Brilliant :up:
Reply With Quote
  #30  
Old 05-15-2008, 07:51 PM
crashys crashys is offline
 
Join Date: Oct 2003
Location: Lisboa
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by crashys View Post
I have a question regarding postbit legacy, can anyone give some help?

https://vborg.vbsupport.ru/showthrea...63#post1508063

Thanks in advance.
Anyone?
Reply With Quote
  #31  
Old 05-15-2008, 08:35 PM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, haven't really tried to do that before.
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 09:21 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.04558 seconds
  • Memory Usage 2,312KB
  • 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
  • (5)bbcode_code
  • (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