Log in

View Full Version : Show Thread Enhancements - All the avatars of the same dimensions


Allan
12-13-2009, 10:00 PM
This mod impose all the avatars of the same dimensions.

For "postbit": In the "postbit.css" template, find:.postbit .postuseravatarlink img {
}
Change to:.postbit .postuseravatarlink img {
width: 80px;
height: 80px;
} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For "postbit_legacy": In the "postbit.css", find:.postbitlegacy .userinfo .postuseravatar img, .eventbit userinfo .eventuseravatar img {
border: {vb:stylevar postbitlegacy_avatar_border};
outline: {vb:stylevar postbitlegacy_avatar_outline};
max-width: {vb:math {vb:stylevar postbitlegacy_userinfo_width} - {vb:math {vb:stylevar padding}*2}- {vb:math {vb:stylevar postbitlegacy_avatar_outline.borderWidth}*2} - {vb:math {vb:stylevar postbitlegacy_avatar_border.borderWidth}*2}};
}

Change to:.postbitlegacy .userinfo .postuseravatar img, .eventbit userinfo .eventuseravatar img {
border: {vb:stylevar postbitlegacy_avatar_border};
outline: {vb:stylevar postbitlegacy_avatar_outline};
max-width: {vb:math {vb:stylevar postbitlegacy_userinfo_width} - {vb:math {vb:stylevar padding}*2}- {vb:math {vb:stylevar postbitlegacy_avatar_outline.borderWidth}*2} - {vb:math {vb:stylevar postbitlegacy_avatar_border.borderWidth}*2}};
width: 80px;
height: 80px;
}


PS: You are free to change 80px of course ;)

kevin2008
12-14-2009, 09:23 AM
merci Allan, super pratique.

Michael2
12-18-2009, 07:15 AM
Hmm... Doesn't seem to be working on my forum... See posts 56 and 58 for example... Should be 150x150.

http://www.veggieboards.com/boards/showthread.php?113249-Secret-Santa-2009-Q-A-thread/page6

Allan
12-18-2009, 10:00 AM
Hmm... Doesn't seem to be working on my forum... See posts 56 and 58 for example... Should be 150x150.

http://www.veggieboards.com/boards/showthread.php?113249-Secret-Santa-2009-Q-A-thread/page6
Add for postbit_legacy ;)


For "postbit_legacy": In the "postbit.css", find: .postbitlegacy .userinfo .postuseravatar img, .eventbit userinfo .eventuseravatar img {
border: {vb:stylevar postbitlegacy_avatar_border};
outline: {vb:stylevar postbitlegacy_avatar_outline};
max-width: {vb:math {vb:stylevar postbitlegacy_userinfo_width} - {vb:math {vb:stylevar padding}*2}- {vb:math {vb:stylevar postbitlegacy_avatar_outline.borderWidth}*2} - {vb:math {vb:stylevar postbitlegacy_avatar_border.borderWidth}*2}};
}

Change to: .postbitlegacy .userinfo .postuseravatar img, .eventbit userinfo .eventuseravatar img {
border: {vb:stylevar postbitlegacy_avatar_border};
outline: {vb:stylevar postbitlegacy_avatar_outline};
max-width: {vb:math {vb:stylevar postbitlegacy_userinfo_width} - {vb:math {vb:stylevar padding}*2}- {vb:math {vb:stylevar postbitlegacy_avatar_outline.borderWidth}*2} - {vb:math {vb:stylevar postbitlegacy_avatar_border.borderWidth}*2}};
width: 80px;
height: 80px;
}

Michael2
12-18-2009, 06:30 PM
Ah, duh, thank you! :)

Dr.osamA
12-18-2009, 09:23 PM
thank you!
________
Vermont marijuana dispensary (http://vermont.dispensaries.org/)

shiqah
12-19-2009, 09:38 AM
thanks

saviola8x
12-20-2009, 03:47 PM
thank so much
very nice
demo 60x60 : http://uevf.net/forum/showthread.php?132-Nhat-Ky-Online

BSMedia
12-27-2009, 05:28 PM
Nice work makes everything look nice and uniform

GrossKopf
12-28-2009, 07:09 PM
Works nice, but I was wondering if it were possible to code this so only the "default" avatar is resized. For those not familiar, there's an option in vb 4 that lets you set a default avatar for people that don't have an avatar.

Welshy2008
01-20-2010, 08:34 PM
Any Idea how to do this on 3.8.4 PL2 too, please Allan?

gyaronn
01-21-2010, 09:19 AM
nice mod thanks m8

Bram H
01-26-2010, 11:49 AM
Installed :)

One question, my post anchors are now centered all of a sudden. Normally they are lined out to the right. No biggy though

syrn
03-27-2010, 08:26 PM
Nice , Installed , 5*

archet1337
03-27-2010, 10:16 PM
Tagged for later use, thanks :)

Front Range 4x4
03-30-2010, 01:36 AM
Thank you Allan, another nice touch!

misericorde
08-10-2011, 03:14 AM
Thank you .... VĂ©ry Nice

Merci Allan

Bonne continuation

Au plaisir de vous lire

tidus78
08-11-2011, 06:51 PM
It works on my 4.1.5.

Simple but powerful!:D

tidus78
08-26-2011, 09:26 AM
Is there also a way to maintain the aspect ratio?

Juggernaut
08-27-2011, 06:07 PM
Is there also a way to maintain the aspect ratio?
Yes there is, I was using this great template edit for my avatars, the way I was maintaining the aspect ratio was by using "auto" in the horizontal pixel settings, instead of a number, you can do that for vertical o horizontal, and the images won't be stretched. :)