![]() |
[HowTo] Break posts up from eachother
[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.
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: |
This screenshot shows that the top post from the thread sticks to the top row, but splits from the other posts.
|
This screenshot shows that the last post from the thread sticks to the bottom row, but splits from the other posts.
|
Thanks for that tip! Gave it a go, and I must say it does look rather cool.
|
Quote:
|
Quote:
thanks a lot xiphoid, respect due to you, too. |
Someone from dietforum posted something that it doesn't work, but when I wanted to reply, the post got deleted :? I hope it got fixed!
And Twig Deez, thank you :P |
Why would this need to be anything more than a template change? Couldn't you stick a <br/> tag in the postbit template and get the same effect, roughly?
|
I myself have just done this in a tempate edit, no need to hack.
|
This is also good if you have many stylise, you change it only one time :)
|
cool Thanx :)
but how do I change the color which is shown in the space between posts? |
xiphoid, tell me, how u add "activity, popularity and experience" in postbit. Please!
|
Very nice :D.
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
I do not know who moved this hack from hack-tips to full-release, but thank you :> I was not sure how 'worthy' it would be as a true-hack.
|
Hmm. Barely qualifies as a hack, IMO (don't take that the wrong way...I don't mean to be rude), but I suppose it is technically.
|
Quote:
|
Quote:
Quote:
|
I have the vB 2.2.4
EDIT EDIT: ups this screenshot is from my test board and its the version 2.2.5 :) |
I can't really see in the showthread.php code why it would break up a table .. you are only adding a break tag, not a close table and make new one.. Maybe you applied other hacks that involved more tables? (I do wonder why smoothie didn't had any problems then)
|
actually this is the first hack ever on this board :D
I did a clean install. |
Well .. I did not had the problem, and I can't see why/what is causing it. Maybe FireFly can inlight us here.
|
for those that want to spend 5 seconds on it instead of 5 minutes you can just add a <br> at the end of your postbit template :)
and when you upgrade, it's one less ahck to think about. |
Well this one only really takes 1 minute and when you add a <br> the top post is always stuck to the top bar and the bottom one is always away from the bottom bar. This way looks better IMO.
|
not exactly... if you do it right, the top post:
|
and the bottom...all through template editing.. however, I've completely redesigned my postbit
*shrug* |
hey xiphoid; :)
re: my last post in the space between categories topic over on vb.com, do you think a similar piece of code could also be used to seperate the categories on forumhome? i want the seperation without the misalignment, or having to change td width's to realign them; i figure i can insert an empty tr at the end of the forumhome_forumbit_level1_post template; but i would prefer a method similar to the one utilised here. any ideas? |
Quote:
As I mentioned, I couldn't get this to work with templates, so this is why. And someone already mentioned this, instead of just saying so, please tell me the code where you entered the <br> in your postbit template. Quote:
Quote:
|
Quote:
i'll let you know. |
Quote:
|
Quote:
|
oops :o
|
np
|
Quote:
|
Maybe i can help :) (for the first time lol)
It's not another hack thats put's the block of colour between the posts :p I changed the bgcolor in the "styles" bit to the color that looked right and BAM! it works :) Hope that helped |
That works fine thanks, only problem is a wanted to have the body bgcolour different from the page bgcolour :( ahh well
|
sorry - can't help you with that, not right now anyway :-/ mind is blank
|
lol, i know that feeling ;)
|
Quote:
|
I experience the same problem
It does it on a clean install test forum too... |
All times are GMT. The time now is 05:02 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|