Previous Thread
Next Thread
Print Thread
Hop To
#248541 02/29/2012 7:25 AM
Joined: Jul 2011
Posts: 22
C
stranger
stranger
C Offline
Joined: Jul 2011
Posts: 22
Hi everyone,

I have a puzzling issue with Avatar 'maximum size'. The default is 48x60px and the board has a lot of icons that size (not to mention the standard ones that come with it). I'd like to set a larger maximum size of 100x100px for new avatars going forwards - but this seems to RESIZE the smaller ones, which then look terrible!

Is there any way of giving a larger maximum size, whilst leaving any that are smaller at the size they should be?

Also, on the registration form where the user can add their own avatars, it says '(x max pixels, may be smaller') but there is no actual size given, even though I (currently) have 48 x 60px set in the Control Panel. How do I get the reg form to state the maximum avatar size?

Forum URL: http://www.ultravox.org.uk/forum/

Thanks muchly! I've found many answers by searching existing posts, so I'm most grateful - just haven't been able to find a previous topic the same as this one. laugh

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
for the x max that is a language file.
Goto Control Panel » Languages » Language Editor
edit editbasic.php
look for key AVATAR
Edit it to state the size you wish.

As far as size. The default setting was I believe 80x80 when you installed it.
I believe the setting will only change the uploaded avatars by members not the stock ones uploaded via the control panel.
Not 100 percent on that though never tested it.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jul 2011
Posts: 22
C
stranger
stranger
C Offline
Joined: Jul 2011
Posts: 22
Ahaaaaa! Got it. Thanks very much, Ruben - that's solved that part! laugh

I don't suppose you also happen to know why the smaller avatars are being resized, when I set the 'max size' larger? Or indeed how to prevent it doing that? smile

Joined: Jul 2011
Posts: 22
C
stranger
stranger
C Offline
Joined: Jul 2011
Posts: 22
Anyone have any idea at all..? Or is 'maximum' avatar size (quote: "may be smaller") just a bit of a misnomer and you have to live with the resizing? tongue

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
It's always been kind of buggy, basically when yu have a max set it'll set the height/width in the software to match it. You could either set the maximum to a blank value or edit the coding on the pages to remove the height/width wherever it is displayed.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jul 2011
Posts: 22
C
stranger
stranger
C Offline
Joined: Jul 2011
Posts: 22
Thanks Gizmo. Worried that the first one could lead to enormous images being uploaded - but the second one should do it. Ta! Any idea which files I need to edit?

Joined: Jul 2011
Posts: 22
C
stranger
stranger
C Offline
Joined: Jul 2011
Posts: 22
Does anyone have any idea which files I need to edit, to remove the fixed width & height for avatars on the served pages? Ideally I'd like people to have varying size avatars UP TO THE MAXIMUM I SET, but to NOT have smaller avatars enlarged to the largest allowed size. Does that make sense?

Joined: Jul 2011
Posts: 22
C
stranger
stranger
C Offline
Joined: Jul 2011
Posts: 22
Anyone? Just need to know which files I need to edit to do that... *tumbleweed*

Joined: Jul 2011
Posts: 22
C
stranger
stranger
C Offline
Joined: Jul 2011
Posts: 22
So the only problem I'm left unable to fix is this one, of 'max size' for avatars actually resizing ones that are smaller (I don't want that!). I'm worried that having a blank value for max size will lead to enormous avatars, so how do I edit the pages to remove the height/width wherever avatars are displayed? smile

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Sorry, I've been pretty busy trying to square away this server relocation stuff for my own server, I've been a little absent...

Originally Posted by Cerise
I'm worried that having a blank value for max size will lead to enormous avatars
It will happen

Originally Posted by Cerise
so how do I edit the pages to remove the height/width wherever avatars are displayed? smile
In scripts/showflat.inc.php:
Find:
Code
				$postrow[$i]['Picture'] = "<img src=\"$Picture\" alt=\"\" $picsize />";

Replace With:
Code
				$postrow[$i]['Picture'] = "<img src=\"$Picture\" alt=\"\" />";


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jul 2005
Posts: 45
M
mig Offline
newbie
newbie
M Offline
Joined: Jul 2005
Posts: 45
Quote
Anyone have any idea at all..? Or is 'maximum' avatar size (quote: "may be smaller") just a bit of a misnomer and you have to live with the resizing?
I think that it is not so much of a misnomer, as it is just not entirely clear. I think it means that you may upload a smaller size up to a max, but either way it will display the max and anything smaller will be re-sized. It's probably designed for uniformity to trump, since it's cleaner/easier on the eyes. However, I understand your frustration when all previously uploaded avatars distort with a size change.

Since your current setting is 48px x 60px, my suggestion would be to change your max size to 80px x 100px (instead of increasing to 100 x 100). This will keep the same height-width ratio intact to avoid having your existing avatars stretched width-wise. smile

(Btw, the stock avatars are 48 x 48 (a square) and are currently being distorted at 48 x 60 anyway, so I wouldn't use them to judge if you make a change.)

Just an idea!
http://www.gear-ratio-calculator.com

Joined: Jul 2011
Posts: 22
C
stranger
stranger
C Offline
Joined: Jul 2011
Posts: 22
Thanks Gizmo, I really appreciate it. Just been through a server move myself, complete nightmare (UBB easier than ImageFolioPro I have to say), but finally sorted. I hope yours is going smoother! smile

I tried the above out and it works - but unfortunately I didn't realise that the upload size isn't actually limited by the max size you enter in the CP, it's merely a suggestion to the person uploading - so I still ended up with enormous avatars. *facepalm*

So my final question (and I'm guessing it's probably not possible) is back to my original one; is it possible to leave the pic sizing in on scripts/showflat.inc.php, set a max size that's larger than the stock avatars (say 100x100px) BUT have it NOT size-up the smaller stock avatars when displaying them?

Thank you so much!

Joined: Jul 2011
Posts: 22
C
stranger
stranger
C Offline
Joined: Jul 2011
Posts: 22
Thanks Mig. You're right, the stock ones are resized slightly, I'd forgotten about that. Going any larger really degrades them, though. Shame there isn't a larger set of those stock avatars!

Hmm, maybe I'll just have to stick to 48x60...

Thanks for your help! smile

Joined: Jul 2011
Posts: 22
C
stranger
stranger
C Offline
Joined: Jul 2011
Posts: 22
Thanks Gizmo. I did try that, but alas I did end up with enormous avatars. It seems the upload size isn't actually restricted to the right size, so if you turn off the image sizing at the front end it all goes to pot. I see why it was done, now.

It would be nice if UBB made a larger version of the default avatar set, so at least you could have an option or two... *looks hopeful*

Thanks again. smile


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
2 members (DennyP, 1 invisible), 969 guests, and 171 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)