avatar resizing Posted by bigbadaboom 22 Aug 2007 14:54 UTC 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
Posted by Rick Sapir / Tiki for Smarties 22 Aug 2007 17:50 UTC > 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. -Rick Coming soon: TikiWiki for Dummies Smarties — A beginner's reference guide to ))TikiWiki((.
Posted by bigbadaboom 22 Aug 2007 19:28 UTC > > 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. > > -Rick > 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!
Posted by Rick Sapir / Tiki for Smarties 22 Aug 2007 19:51 UTC > > 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.
Posted by bigbadaboom 22 Aug 2007 20:19 UTC > > > > 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
Posted by Rick Sapir / Tiki for Smarties 22 Aug 2007 22:28 UTC > > 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....)
Posted by jamesoftopiya 25 Aug 2007 05:08 UTC 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....)
Posted by Rick Sapir / Tiki for Smarties 26 Aug 2007 14:11 UTC 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....)