View Full Version : legacy_postbit Signature Spacing Mod
imported_uber
02-26-2004, 10:00 PM
Heres a mod that cleans up the signature & edit note spacing in the legacy_postbit template, leaving them at the bottom of the post regardless of how short the post is.
I replaced the __________________<br /> tag with an <hr> tag making the line cross the entire post.
If you prefer the old style, replace <hr size="1" style="color:$stylevar[tborder_bgcolor]" /> with the old __________________<br />
imported_kyrnel
03-12-2004, 02:53 AM
Installed fine but it really doesnt do what it is supposed to: save space
If you notice it almost seems to add a new row. The sig will push down so that nothing is in the cell to the left of it.
Look at the screenshot. The sig is justified below the status information on the left. Why is that? I'ver been looking for this mod for a while. Does anyone know how to fix it?
Thanks in advance...
[Edit] I found a simple compromise. All you have to do is make the <td> tag for the message area valign="bottom". If you want the horizontal rule to span the entire area, you will have to insert a table width="100%" inside the <td valign="bottom".
The only downside to this approach is that short messages start a bit down on the page, but no space is wasted and the signs are always bottom justified.
Tony G
03-12-2004, 03:17 AM
Nice mod. I will test this soon. :)
cyr0n_k0r
03-15-2004, 10:22 PM
this doesnt work for me. All it does it make table upon table upon table for my postbit.
It screws everything up.
budlite74
03-20-2004, 07:15 AM
yea .. didnt work
Stray
03-22-2004, 10:18 PM
Works great for me so far, seperates the sig from the post body very nicely.
cyr0n_k0r
03-26-2004, 12:19 AM
how did you get it to work? Keep in mind this is for VB3.
Did you have to edit or change anything?
Stray
03-27-2004, 04:39 PM
How did I get it to work?
I just followed the directions and it worked fine. I'm using vb 3.0.0 and had no problems. After a couple days I got rid of it though because I realized the spacing and alignment of the tables (the fact that the sig table started directly under the information on the side of the legacy postbit, as mentioned earlier in the thread) would cause some problems if you had a fairly large sig and filled out all the information that I made visible in the postbit, it would cause the post to be huge even if you only posted a few words.
It's a nice hack but I just have too much crap visible in the postbit to use it. Now I just put <hr> tags above and below the sig to kind of section it off from everything else. If I could figure out how to align it to the bottom I'd be totally content.
Uber, can you post an update for vB3 Final, I did try to install it but It mess up the table.
moonclamp
05-20-2004, 10:23 AM
works fine for me in VB3 .. not sure if I like the results yet, but it does work
moonclamp
05-20-2004, 10:41 AM
actually no ... not quite, the edited by bit looks wrong now, I have had a mess with it on my own and come up with this as an alternative:
In postbit_legacy (after the mod has been installed)
Find this:
<!-- Signature -->
<if condition="$post['signature']">
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<span class="smallfont">$post[signature]</span>
</if>
<!-- / End Signature -->
<!-- Edit Note -->
<if condition="$show['postedited']">
<div class="smallfont">
<hr size="1" 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>
</if>
<!-- End Edit Note -->
Replace with this
!-- Edit Note -->
<if condition="$show['postedited']">
<div class="smallfont" align="right">
<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>
</if>
<!-- End Edit Note -->
<!-- Signature -->
<if condition="$post['signature']">
__________________<br />
<span class="smallfont">$post[signature]</span>
</if>
<!-- / End Signature -->
This will make the "edited by" note move above the signature and justify it to the right, it will also restore the old "________" above the signature rather than the HR tag
Hope that helps people who are after an alternative view
Host Directory
05-24-2004, 01:55 AM
This may sound silly.. but how did this website do it?
Notice the sig on Tonys post appears at the bottom even though his post is just a few words long.
Altered_Ego
05-25-2004, 11:56 AM
^thats how it is suppose to be.
imported_subu1
06-15-2004, 10:36 AM
thx, it's work for me
Jacko
07-08-2004, 10:16 AM
worked fine for me.. thx..
Creative210
07-08-2004, 10:29 AM
Thanks for contributing!
lange2
04-14-2005, 02:00 AM
Thanks Uber.
ambumann
10-24-2005, 09:02 PM
Edit: Works in 3.5 as well.
GuaRRand
10-25-2005, 11:21 AM
ok...so does this work ok or not :P
GuaRRand
10-25-2005, 11:33 AM
doesnt work for me....
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/www/www.glcoti.com/public_html/includes/adminfunctions_template.php(3519) : eval()'d code on line 177
ambumann
10-25-2005, 11:57 AM
doesnt work for me....
You didn't follow the instructions to the point, try checking your code.
Pcparts
11-29-2005, 08:08 PM
Doesnt work for me. I have tried all different kinds of hacks and still the signatures are at the top of the post, just below the last line.
nuxvirg
12-20-2005, 05:18 AM
didnt works
Skedoozy
06-10-2006, 11:20 PM
does not work with 3.5.4. It makes everything alllllllll screwy.
doggy1
06-24-2006, 03:43 PM
does not work with 3.5.4. It makes everything alllllllll screwy.
I am having some trouble with this as well. I am able to get the sigs to go down lower in the post, however, it appears an empty box forms on the left hand side of the screen. The larger the signature the larger the box.
Is anyone else seeing this and if so, is there a way to get rid of the box? Thanks!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.