PDA

View Full Version : [SOLVED]Resize Avatar Width for all users 3.8.x


danyxxx
09-09-2011, 08:48 AM
Hello,

I need a modification that will resize the avatar width for all usergroups (3.8.x)

Kind Regards !

------------------------

THERE IS GUYS, I made this ->

Go in vBulletin Admin Control Panel -> Plugin & Products -> Add New Plugin ->

Product: vBulletin
Hook Location: postbit_display_complete
Title: Your_plugin_name
Execution Order: 5

Plugin PHP Code:

if($post['avwidth'] > 'YOUR_LIMIT_SIZE')
{
$this->post['avwidth'] = 'width="YOUR_RESIZE_SIZE"';
}


Exemple for the avatars that are bigger then 200px in width:

if($post['avwidth'] > '200')
{
$this->post['avwidth'] = 'width="200"';
}

ENJOY !

danyxxx
09-13-2011, 06:59 AM
I solve this .

MR.CARTER
09-13-2011, 07:24 PM
Nice. Thanks!

danyxxx
09-14-2011, 07:19 AM
This kind of modification you can use it for the small size\resize as well :)