Last Post Alignment Fix in Forum Home
What is this for?
Some times when we use another style beside the default style of vBulletin, the last post in the forum home may not be aligned in each category and may be different in width from category to another depending on the width of the title of the last post.
This simple mod is to fix that and make the width of last post table the same in every category, whatever the title width is.
1- Go to you “FORUMHOME” template
2- Look for the the following code:
Code:
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
3- If this code is there, then remove it and save the template. If it’s not there just let the template as it is without any changes.
4- Go to the “forumhome_forumbit_level1_nopost” template
5- find the following code:
Code:
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
or similar code.
6- If it’s there, replace it with the following:
Code:
<tr align="center">
<td class="thead" width="5%"> </td>
<td class="thead" width="50%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="25%">$vbphrase[last_post]</td>
<td class="thead" width="10%">$vbphrase[threads]</td>
<td class="thead" width="10%">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead" width="0%">$vbphrase[moderator]</td>
</if>
</tr>
and save.
If it’s not there just add it exactly after the following code:
Code:
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
Then save and it’s done.







