vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Postbit GAP Problem (https://vborg.vbsupport.ru/showthread.php?t=278364)

brandonroy 02-10-2012 07:16 AM

Postbit GAP Problem
 
In vbulletin 4, the postbit user info is gapped. How can I get it back to how to was on vbulletin 3?

I'm using the horizontal postbit layout. Here's what the gaps look like:

https://vborg.vbsupport.ru/external/2012/02/38.png

And here is what I WANT it to look like:

https://vborg.vbsupport.ru/external/2012/02/39.png

RobbieZ 02-10-2012 02:24 PM

Go into your postbit.css and find

Code:

.postbit .userinfo .userinfo_extra, .postbit .userinfo_noavatar .userinfo_extra {
        text-align: {vb:stylevar right};
        width: 300px;
        float: {vb:stylevar right};
        font-size: {vb:stylevar small_fontSize};
}

Change the red 'right' for the word 'left'

brandonroy 02-10-2012 11:12 PM

Gosh thank you. So simple! :)

brandonroy 02-13-2012 11:21 AM

Sorry to bother again, but one last thing, how do i make it so that "longer" locaitions names for example do not do a line break?

https://vborg.vbsupport.ru/external/2012/02/30.png

brandonroy 02-15-2012 06:04 PM

bump!

brandonroy 02-21-2012 08:21 AM

Bump again for the line break issue!

brandonroy 02-23-2012 07:44 PM

Buuuuump

brandonroy 02-26-2012 01:44 PM

bump -_-

brandonroy 03-06-2012 04:47 PM

Bump

RobbieZ 03-13-2012 12:50 PM

Underneath that block of css I asked you too find is another similar block that looks like this:

Code:

.postbit .userinfo .userinfo_extra dl, .postbit .userinfo_noavatar .userinfo_extra dl {
        margin-{vb:stylevar right}: {vb:stylevar padding};
        float: {vb:stylevar right};
        width: 150px;

Change the red to 300 or there abouts.

Personally anybody's location that is longer than 25 letters should be blocked or controlled unless you live in that town in Wales @58 letters long :p

brandonroy 03-15-2012 03:49 PM

Thanks robbie, but that just brought the postbit info over to the left like so:

https://vborg.vbsupport.ru/external/2012/03/26.png

Any way to keep it to the right and expand to the left with longer locations like on this site? (old vb)

RobbieZ 03-16-2012 06:13 AM

The original 150px setting sets your data, as soon as you enter data that goes beyond that it will drop down a line, the trick is to make sure that the longest location name doesnt create a line break and set your width to that!

I'm racking my brain at the moment, I'm sure there was a way to stop the user entering anything longer than X letters so the line break would never happen and the user would have to stay within the parameters.

brandonroy 03-17-2012 08:51 AM

Well, there's a lot of city names out there that aren't all that long, but will still create a line break. For example, "Santa Barbara, CA" line breaks.

If I somehow limited the location field letters, then the shorter locations will be margined pretty far left from the right of the postbit.

I guess the code is a lot different from vb3

brandonroy 03-29-2012 10:09 PM

Is there anyway to change this part of the template to the vbulletin 3 coding?


All times are GMT. The time now is 08:04 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.01846 seconds
  • Memory Usage 1,736KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)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