help with php function

Support for PhpBB3. Post here to get help with any phpBB3 related issue here
There is no support here! Only Read Access!
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.
Else your topic may be ignored or locked!
Locked
User avatar
neuropass
BBCoder IV
BBCoder IV
Posts: 173
Joined: 11 Apr 2010, 02:33

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']) : '',
Modd it up! TweakScene ;-) Support us! || Follow us ||

Image
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

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
User avatar
neuropass
BBCoder IV
BBCoder IV
Posts: 173
Joined: 11 Apr 2010, 02:33

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:
Modd it up! TweakScene ;-) Support us! || Follow us ||

Image
Locked