Page 1 of 1

help with php function

Posted: 24 Jun 2010, 17:55
by neuropass
hey guys i',m looking for the correct php function to resize the avatar. the edit below doesn't seem to be working..

Code: Select all

'AVATAR'         => ($row['user_avatar']) ? get_user_avatar($row['user_avatar'], $row['user_avatar_type'], ($row['user_avatar_width'] > $row['user_avatar_height']) ? 25 : (25 / $row['user_avatar_height']) * $row['user_avatar_width'], ($row['user_avatar_height'] > $row['user_avatar_width']) ? 25 : (25 / $row['user_avatar_width']) * $row['user_avatar_height']) : '',

Re: help with php function

Posted: 24 Jun 2010, 18:17
by cisco007
you are not doing a good job searching the forums are you!?

viewtopic.php?f=9&t=342&start=10#p1602

Re: help with php function

Posted: 25 Jun 2010, 04:31
by neuropass
sorry cisco i thought it was different...


i still have a problem though. i have to adapt that resize function to this code here:

Code: Select all

'AVATAR'			=> ($user->optionget('viewavatars')) ? self::$user[$user_id]['avatar'] : '',

what's the right code? i tried several times and i get errors.. :evil: