vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to remove gap between posts? (https://vborg.vbsupport.ru/showthread.php?t=179790)

Arkidas 05-19-2008 11:06 AM

How to remove gap between posts?
 
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:
HTML Code:

<!-- 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 ).

Code:

<!-- 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 [DATE]1211225187[/DATE] at [TIME]1211225187[/TIME] ---------------

Never mind, I used the $post[islastshown] variable.

Dismounted 05-20-2008 06:34 AM

Code:

<if condition="$threadinfo['lastpostid'] == $post['postid']">


All times are GMT. The time now is 08:19 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
  • Page Generation 0.00987 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete