help with php function

Support for PhpBB3.
Post here to get help with any phpBB3 related issue
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
If not your topic may be ignored or locked!

help with php function

Post 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

Post 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

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