View Full Version : How to remove gap between posts?
Arkidas
05-19-2008, 11:06 AM
How can I remove gaps between posts? Like here on vBulletin.org there's a tiny gap between each post in a thread.
Lynne
05-19-2008, 03:36 PM
From the top of the postbits here:
<!-- post #1524601 -->
<div id="edit1524601" style="padding:0px 0px 4px 0px">
<!-- this is not the last post shown on the page -->They set the padding between posts to be 4px. That is from the postbit_wrapper and set by the $stylevar[cellpadding] variable. It looks like they may have elimated the spacer_open (and spacer_close) templates there. If you don't want to fine/delete them, then edit the spacing in there too.
Arkidas
05-19-2008, 04:24 PM
Thanks. I simply changed the postbit_wrapper so it said 0px instead of the variable. Do you know how I could make the padding apply only to the last post?
Lynne
05-19-2008, 04:51 PM
It looks like there may be a variable called "$threadinfo[lastpostid]" . So, just put in a conditional of if $postid equals $threadinfo[lastpostid] then whatever.
edit: Actually, looking further into showthread, it looks like you may be able to use $post['islastshown'] instead of the threadinfo one. I'd just play with it on a test site.
Arkidas
05-19-2008, 05:04 PM
I tried this but it didn't seem to change anything. ( The 'post reply' button and other content in that row is still too close to the last post ).
<!-- post #$post[postid] -->
<if condition="$show['spacer']">
$spacer_open
<if condition="$threadinfo[lastpostid]"><div id="edit$post[postid]" style="padding:0px 0px 6px 0px"><else /><div id="edit$post[postid]" style="padding:0px 0px 0px 0px"></if>
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>
$postbit
<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->
--------------- Added 1211225187 at 1211225187 ---------------
Never mind, I used the $post[islastshown] variable.
Dismounted
05-20-2008, 06:34 AM
<if condition="$threadinfo['lastpostid'] == $post['postid']">
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.