vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Board Optimization - How to reduce space in postbit (https://vborg.vbsupport.ru/showthread.php?t=230859)

Vick98 08-04-2012 12:03 AM

Does this work for 4.2 and are there an screen shots to show a before and after?

S@NL - BlackBik 08-20-2012 02:17 PM

Yes, it works on vB4.2
Don't have any screen-shots but basicly it does exactly what is said in the first post.

kh99 08-20-2012 02:26 PM

Didn't know this existed, but I have a couple things to add: one is that if you put the code in the additional.css template, it will stay there when you upgrade. Also, you might be able to remove more space by adding this (in additional to the code shown in the first post):

Code:

.postbitlegacy .postrow.has_after_content {
    padding-bottom: 0px;
}


0px might remove a little too much, but you can increase it if you want.

Edit: oops, didn't notice that we're on page 12 of comments, this has probably been mentioned before.

oldz442 08-22-2012 11:19 AM

1 Attachment(s)
Went a bit further and bottom aligned 'edited by', 'signature' and the 'likebox thanks hack'. Some pics and CSS below. There is more CSS tweak stuff... margin, padding, etc.

---------------
additional.css
---------------
.top-align { vertical-align: top; }
.bottom-align { vertical-align: bottom; }
.postbitlegacy .postbody { margin: 0 !important; }
.postbitlegacy .postrow.has_after_content { padding-bottom: 0em !important; }

---------------
postbit_legacy
---------------
Code:

<div class="postdetails">
  <table style="width:100%">
    <tr>
      <td rowspan="2" class="top-align">
        <div class="userinfo">
          LEFT-USERINFO-BOX
        </div>
      </td>
      <td class="top-align">
      <div class="postbody">
        CONTENT
      </div>
      </td>
    </tr>
    <tr>
      <td class="bottom-align">
        LASTEDIT / SIGNATURE / LIKEBOX
      </td>
    </tr>
  </table>
</div>


mjfutures 08-24-2012 11:08 PM

Quote:

Originally Posted by kh99 (Post 2358480)
Didn't know this existed, but I have a couple things to add: one is that if you put the code in the additional.css template, it will stay there when you upgrade. Also, you might be able to remove more space by adding this (in additional to the code shown in the first post):

Code:

.postbitlegacy .postrow.has_after_content {
    padding-bottom: 0px;
}


0px might remove a little too much, but you can increase it if you want.

Edit: oops, didn't notice that we're on page 12 of comments, this has probably been mentioned before.

Where do I put this additional code?

dougdirac 08-25-2012 01:08 PM

Quote:

Originally Posted by mjfutures (Post 2359760)
Where do I put this additional code?

In the Style Manager

Edit Templates--> CSS Templates-->additional.css

ndut 09-08-2012 08:59 PM

1 Attachment(s)
anybody can help?
how to reduce space between image reputation ?

thank you

dougdirac 09-24-2012 11:40 PM

Quote:

Originally Posted by oldz442 (Post 2358979)
Went a bit further and bottom aligned 'edited by', 'signature' and the 'likebox thanks hack'. Some pics and CSS below. There is more CSS tweak stuff... margin, padding, etc.

---------------
additional.css
---------------
.top-align { vertical-align: top; }
.bottom-align { vertical-align: bottom; }
.postbitlegacy .postbody { margin: 0 !important; }
.postbitlegacy .postrow.has_after_content { padding-bottom: 0em !important; }

---------------
postbit_legacy
---------------
Code:

<div class="postdetails">
  <table style="width:100%">
    <tr>
      <td rowspan="2" class="top-align">
        <div class="userinfo">
          LEFT-USERINFO-BOX
        </div>
      </td>
      <td class="top-align">
      <div class="postbody">
        CONTENT
      </div>
      </td>
    </tr>
    <tr>
      <td class="bottom-align">
        LASTEDIT / SIGNATURE / LIKEBOX
      </td>
    </tr>
  </table>
</div>


Does this work even if you're not using the Likes hack?

oldz442 09-24-2012 11:58 PM

Sure. The last <td> is just to bottom align things within it.

I just had to play around with margins/padding a bit. ie. my last edit line is still a tad bit high (~14px when it should be closer 10px bottom margin)

Superorb 10-01-2012 06:34 AM

Quote:

Originally Posted by oldz442 (Post 2368299)
Sure. The last <td> is just to bottom align things within it.

I just had to play around with margins/padding a bit. ie. my last edit line is still a tad bit high (~14px when it should be closer 10px bottom margin)

Can this be done without tables? I'd love to remove the space AND have the signatures align with the bottom.


All times are GMT. The time now is 01:54 PM.

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.01387 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete