Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
How to reduce space in postbit Details »»
How to reduce space in postbit
Version: 1.00, by I.am I.am is offline
Developer Last Online: Feb 2010 Show Printable Version Email this Page

Category: Board Optimization - Version: 4.0.x Rating:
Released: 12-21-2009 Last Update: Never Installs: 580
Template Edits
 
No support by the author.

To reduce the space between the message area and the signature space go in:

Admin CP -> Style & Templates -> Style Manager -> CSS Templates -> Postbit.css

Find:

PHP Code:
/*post bit*/ 
Add under it:

PHP Code:
.postbitlegacy .after_content {
clear:right !important;

Save.

Finish

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
5 благодарности(ей) от:
codeleakers, M.C., tekram, ThatGreenAlien, xeenux

Comments
  #172  
Old 08-04-2012, 12:03 AM
Vick98 Vick98 is offline
 
Join Date: Nov 2010
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work for 4.2 and are there an screen shots to show a before and after?
Reply With Quote
  #173  
Old 08-20-2012, 02:17 PM
S@NL - BlackBik's Avatar
S@NL - BlackBik S@NL - BlackBik is offline
 
Join Date: Jul 2004
Location: Netherlands
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, it works on vB4.2
Don't have any screen-shots but basicly it does exactly what is said in the first post.
Reply With Quote
  #174  
Old 08-20-2012, 02:26 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
davidg
  #175  
Old 08-22-2012, 11:19 AM
oldz442 oldz442 is offline
 
Join Date: May 2012
Location: Canada
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Attached Images
File Type: jpg align-bottom1.jpg (38.1 KB, 0 views)
File Type: jpg align-bottom2.jpg (40.7 KB, 0 views)
File Type: jpg align-bottom3.jpg (40.3 KB, 0 views)
File Type: jpg align-bottom4.jpg (44.5 KB, 0 views)
File Type: jpg align-bottom5.jpg (39.3 KB, 0 views)
File Type: jpg align-bottom6.jpg (45.9 KB, 0 views)
Reply With Quote
Благодарность от:
Marcin_J_
  #176  
Old 08-24-2012, 11:08 PM
mjfutures mjfutures is offline
 
Join Date: Aug 2012
Location: Fargo, ND
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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?
Reply With Quote
  #177  
Old 08-25-2012, 01:08 PM
dougdirac's Avatar
dougdirac dougdirac is offline
 
Join Date: Nov 2011
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mjfutures View Post
Where do I put this additional code?
In the Style Manager

Edit Templates--> CSS Templates-->additional.css
Reply With Quote
  #178  
Old 09-08-2012, 08:59 PM
ndut ndut is offline
 
Join Date: Sep 2007
Location: Indonesia
Posts: 335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anybody can help?
how to reduce space between image reputation ?

thank you
Attached Images
File Type: jpg grp.jpg (36.1 KB, 0 views)
Reply With Quote
  #179  
Old 09-24-2012, 11:40 PM
dougdirac's Avatar
dougdirac dougdirac is offline
 
Join Date: Nov 2011
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by oldz442 View Post
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?
Reply With Quote
  #180  
Old 09-24-2012, 11:58 PM
oldz442 oldz442 is offline
 
Join Date: May 2012
Location: Canada
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #181  
Old 10-01-2012, 06:34 AM
Superorb Superorb is offline
 
Join Date: Feb 2012
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by oldz442 View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:19 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05365 seconds
  • Memory Usage 2,363KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (7)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (7)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete