Loading...
 
Skip to main content

Features / Usability


avatar resizing

i know that when users upload avatar they are resize to something like 45x45. I would like to know if there is a way to make them resize to something bigger like 60x60.
Thanks

> i know that when users upload avatar they are resize to something like 45x45. I would like to know if there is a way to make them resize to something bigger like 60x60.


You'll need to edit the tiki-pick_avatar.php file. Look for the lines:

  • $tscale = ((int)$size_x / 45);


and

  • $tscale = ((int)$size_y / 45);



I think it may be as simple as changing it to 60.

-RickQuestion
Coming soon: TikiWiki for Dummies Smarties — A beginner's reference guide to ))TikiWiki((.

> > i know that when users upload avatar they are resize to something like 45x45. I would like to know if there is a way to make them resize to something bigger like 60x60.
>
>
> You'll need to edit the tiki-pick_avatar.php file. Look for the lines:
>
> * $tscale = ((int)$size_x / 45);
>
> and
>
> *$tscale = ((int)$size_y / 45);
>
>
> I think it may be as simple as changing it to 60.
>
> -RickQuestion
> Coming soon: TikiWiki for Dummies Smarties — A beginner's reference guide to ))TikiWiki((.

The only code i found in tiki-pick_avatar.tpl file is that :
Upload your own avatar{/tr}


File{/tr}:



 



i didn't find any "45" in the code!

>
> The only code i found in tiki-pick_avatar.tpl file is that :
> Upload your own avatar{/tr}
>
>
> File{/tr}:
>
>
>
>  
>
>
>
> i didn't find any "45" in the code!

You are in the wrong file:

> >
> > You'll need to edit the tiki-pick_avatar.php file. Look for the lines:
> >

You need to edit the PHP file — not the TPL file.

> >
> > The only code i found in tiki-pick_avatar.tpl file is that :
> > Upload your own avatar{/tr}
> >
> >
> > File{/tr}:
> >
> >
> >
> >  
> >
> >
> >
> > i didn't find any "45" in the code!
>
> You are in the wrong file:
>
> > >
> > > You'll need to edit the tiki-pick_avatar.php file. Look for the lines:
> > >
>
> You need to edit the PHP file — not the TPL file.

Ok i found it, but it doesnt work when i change all "45" value to a bigger value


>
> Ok i found it, but it doesnt work when i change all "45" value to a bigger value

Sorry, I'm not sure then. (It was just a shot in the dark....)

Hi bigbadaboom

Ricks99's shot in the dark may be right but you may not see the effect unless you clear your cache's.

Clear the TW cache at Admin, System Admin, or tiki-admin_system.php

And clear your browser cache under tools...Options... or where your browser options is.

These kinds of changes often do not show up unless you do this.

James

>
> >
> > Ok i found it, but it doesnt work when i change all "45" value to a bigger value
>
> Sorry, I'm not sure then. (It was just a shot in the dark....)

Actually, further digging shows that the "45" is actually hardcoded into the template files. So, even tho changing the value in the PHP does/should work, the avatar is shown as 45x45 in the final display.

You'll need to edit all the TPL files that have this value hardcoded (and the smarty modifiers, and the associate library functions, etc.). Not a small job.



> Hi bigbadaboom
>
> Ricks99's shot in the dark may be right but you may not see the effect unless you clear your cache's.
>
> Clear the TW cache at Admin, System Admin, or tiki-admin_system.php
>
> And clear your browser cache under tools...Options... or where your browser options is.
>
> These kinds of changes often do not show up unless you do this.
>
> James
>
> >
> > >
> > > Ok i found it, but it doesnt work when i change all "45" value to a bigger value
> >
> > Sorry, I'm not sure then. (It was just a shot in the dark....)