The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Signature forced to bottom (for postbit_legacy users) Details »» | |||||||||||||||||||||||||||
Signature forced to bottom (for postbit_legacy users)
Developer Last Online: Nov 2023
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
|
Comments |
#12
|
|||
|
|||
Quote:
|
#13
|
||||
|
||||
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. |
#14
|
|||
|
|||
Quote:
|
#15
|
|||
|
|||
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> Code:
<!-- / edit note --> </if> </td> </tr> 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...... 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 |
#16
|
|||
|
|||
when I do it on my site is changed nothing... is there anywhere else it could be???
|
#17
|
|||
|
|||
test test test test test test test test test
|
#18
|
||||
|
||||
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"> Code:
<td class="alt2" width="175" rowspan="2"> Code:
<if condition="$post['signature']"> <!-- sig --> <div> __________________<br /> $post[signature] </div> <!-- / sig --> </if> Now find: Code:
<!-- / edit note --> </if> </td> </tr> Code:
<tr> <td class="alt1" valign="bottom"> <if condition="$post['signature']"> <!-- sig --> <div valign="bottom"> __________________________<br /> $post[signature] </div> <!-- / sig --> </if> </td> </tr> |
#19
|
|||
|
|||
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. |
#20
|
||||
|
||||
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> Then find: Code:
<if condition="$post['signature']"> 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> |
#21
|
|||
|
|||
Quote:
Did anybody ever figure this out? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|