PDA

View Full Version : Postbit GAP Problem


brandonroy
02-10-2012, 07:16 AM
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

.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:

.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?