Log in

View Full Version : how to extend the postbit legacy


Treak
03-12-2008, 09:31 PM
how do you make it so that way the username doesn't wrap when using more then 12 characters? is there a way to extend that and make it longer so my 12 character username doesn't end up like this

Save The
Queen

because my
username on my forum is Save The Queen and it wraps it drops the queen down underneath and i don't want that. i'd like to to flow all the way across

Dismounted
03-13-2008, 05:49 AM
In your postbit template, you need to wrap the username variable with no wrap attributes.

Treak
03-13-2008, 04:15 PM
lol and how do you do that?

Dismounted
03-15-2008, 09:57 AM
Find:
$post[username]
Add before:
<span style="white-space: nowrap;">
Add after:
</span>

Boofo
03-15-2008, 10:18 AM
I thought they stopped using the white-space and went to nowrap="nowrap", although I see both of them in the templates.

Dismounted
03-15-2008, 10:42 AM
Both work, my way is using CSS and your method is just using HTML attributes. I prefer CSS BTW :p.

Treak
03-19-2008, 11:36 PM
hmm didn't work at all.. you're more then welcome to come to my forum and show me how.. because i did it like you said only there is like 32042903 spots that say $post[username]

so which one is the right one?

Dismounted
03-20-2008, 10:31 AM
Well, as in my post (first one), I said to edit the postbit (or postbit_legacy, depending on which you use). ;)

Boofo
03-20-2008, 10:36 AM
Both work, my way is using CSS and your method is just using HTML attributes. I prefer CSS BTW :p.

Which one is vb going to, do you know? They have it both ways in the templates. I agree, CSS is the better way to go.

Dismounted
03-20-2008, 10:41 AM
I have no idea which way vBulletin is going (I'm not a dev :p). But most likely they will move to CSS in 4.0, due to pressures from other packages, users and the way the web is moving.