Version: 1.00, by Floris
Developer Last Online: Mar 2021
Version: 2.2.x
Rating:
Released: 04-17-2002
Last Update: Never
Installs: 61
No support by the author.
[HowTo] Break posts up from eachother?
(but still keep the top/bottom post stick to top/bottom row)
What does this one do?
When you view a thread, it shows the first row, the posts, the last row; all sticking together. What we want is a space between the posts. But not a space between the first row and the first post, the last row and the last post. We only want to make a <br> between each individual post. I was not able to do this with a template modification, so I run crying to FireFly and he thought about it for 2,8sec. and gave me the following code to accomplish my wish. *respect*
Why did you make it?
Because vB didn't came with the option by default. And I think it looks pretty damn cool. After applying it to my board I got fan mail with requests on how to do this. I ignored most of them, and now the requests start on vB.com too. So I decided to publish it here. Please note that I am NOT the author of this little code hack, and that all credits should ofcourse goto FireFly.
Instructions:
Open the original vBulletin file "showthread.php" and find:
(near line 425)
Save the file, upload it again and see if it worked.
Done!
Version?
Tested with vBulletin 2.2.5 (final) and it works just great! (I wouldn't know about older versions for sure, but it is pretty easy to undo, so doesn't hurt to check it out)
Support!
Feel free to click 'Installed' once you got it up and running on your board!
Tweak!
There were threads where users complained about the breaking showing up the page bground color instead of the main table background color. I fixed this on my new style by putting eveything in the header & footer in 1 new main table. Please keep in mind that if you have other designs etc, this might screw it up, but it works here.. so enjoy
header - at the top add :
<center>
<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="10" cellspacing="0" border="0"><tr><td>
footer - at the bottom add :
</td></tr></table></center>
Maybe it helps you too.
The Result
This is how it looks on my web site:
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
The reason you experience this "problem" is because the postbits are not really in the table that displays the background color. Ever notice how a really long post still has the borders around it? You have to do a bit of hacking in the postbit realm to get rid of the columns with spacers in them, and in the showthread realm, you have to place the postbits back inside the main content table.
Do it...go look at a really wide post, you will see that the page border shifts along with it. Otherwise, you are going to have an issue with the page border stretching to fit the wodest post.
I just found an easy way to add a break the way it does i here without a hack.
Place a break before the postbit, and then in view thread, place a break before the table holding the time and post/reply buttons on the bottom.
But if people really wanna use this hack, it instead of placing a break between the posts, you could place this
<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="10"><img width="10" height="1" src="{imagesfolder}/space.gif" alt=""></td>
<td width="100%">
<!-- spacer -->
<!-- spacer -->
<img width="10" height="10" src="{imagesfolder}/space.gif" alt=""> </td>
<td width="10"><img width="10" height="8" src="{imagesfolder}/space.gif" alt=""></td>
</tr>
</table>
It will simulate that the table keeps going on. :-> Let me know how that works. Oh yes, you can change the image height to whatever you want.
This is the thread about the code hack, not the template hack. It was already mentioned that this could be done with a template. Re-read arguments in first somewhat posts about that.