Previous Thread
Next Thread
Print Thread
Rate Thread
#238907 03/05/2003 12:24 AM
Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
How do I change this? Someone tried an avatar that was 60 x 20 pxs, but it stretched it to be 60 x 60 ?

Thanks,
peter

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
That would be defined in your theme file.

After you change it, they will probably have to reupload it to have it adjust the sizes... or you can do it in SQL in the users table.

UPDATE w3t_Users
SET U_PicWidth = '20',
U_PicHeight = '60'
WHERE U_Number = xxx

Where I have xxx put the user of the number you need to update.

Daine #238909 03/05/2003 1:41 AM
Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
Okay....So question....


This is what's in the theme file:

If allowing users to add pictures, what is the maximum width allowed
$theme['PictureWidth'] = "60";

// If allowing users to add pictures, what is the maximum width allowed
$theme['PictureHeight'] = "60";



So my question, is if that's the MAXIMUM, why would something smaller resize to the 60?

I guess what I'm saying is that I don't want to change the theme file to have picture height of 20, because it'd screw up others' avatars. And, it may sound lame, but I don't want to have to do the sql query for all people wanting smaller avatars......

Could this be a bug?



Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah,
It's not perfect yet.

It kind of stretches it to fill the space and be consistant. See my picutre on the side is slightly constrained. But here:
[]http://www.atlantasingleschoir.com/messageboard/userfiles/1.gif[/]
it is in it's exact proportions.

But if you upload an image that's 20x20 it'll remain the normal size. See Allen's Avatar. Under previous versions... his uses to stretch up tot he maximum size.

Might border on a bug... or simply design because maybe it wasn't easy to do the other day. You could post it here and then Rick would comment or fix it.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Those setting are used by Threads to set the height and width properties of the img tags for the avatar. So the graphic for the avatar will be what you set it to, no more and no less. Maybe the wording needs to be changed in the admin panel for the avatar size setting.

Sponsored Links
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
This might be related: changebasic loses avatar dimensions

I fixed it on my board by removing the updating of U_Picture, U_PicWidth, U_PicHeight in changebasic.php. But that fix might not work if you allow users to change their own avatars (which I don't).

Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
Dave - I have JC's avatar addon, so they get to choose from the avatars I've provided. [Would what you've suggested adding affect that at all?]

However, on some instances I'll put in someone's original avatar.

Someone requested this avatar that is 60 x 20, a rectangle, and if it's made a square it'll be too distorted.

I guess I'll find a workaround or something.....

Thanks for all the input everyone!

-peter

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Why not tell people to make the avatar comply to the image size instead? It isn't hard to make the image wider, with a transparent background.

c0bra #238915 03/05/2003 3:42 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah,

or if it's for just one (or a few users) use my query above to fix it.

Daine #238916 03/05/2003 4:43 PM
Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
Gardener, that'll work perfectly! Thanks:)

Josh, I don't personally do the avatar crap. lol. I have the other admins do it, and I've explained to them not to use the SQL stuff, scaring them into thinking it'll hurt things. I just want to minimize accidents. For rare cases I'll probably use this option though.

Thanks again for all the help and perspective guys. It's always a good thing to be able to accomplish the end result with several options. I like that!

-peter

Sponsored Links
c0bra #238917 03/06/2003 2:15 AM
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
The same thought popped into my head. Why not just cut a graphic with some transperancy on each side so that the final image looks the way you want it and is 80 x 80.

*Dal looks for the coffee cup graemlin*

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
I have folks having the abilty to upload, choose or define there link to one. This leaves a lot of avatars looking weird because of the stretching. Yes I could fix every one of these by hand but that isn't practical. Is there a way to add a keep proportions someplace in the script.

This is probably the most needed mod on my site by far... at least for something the users notice immediately.

Kelly #238919 04/04/2003 1:34 PM
Joined: May 2002
Posts: 41
User
User
Offline
Joined: May 2002
Posts: 41
I agree, this issue seems to have suddenly started on my boards for the first time.

Only since I have been allowing users to upload though.

Previously they could link to an image and it would display the correct size, up to a maximum of 80x80.

However at what seems to be random times, people's avatar's will be altered to fit exatcly 80x80. Yet if I go into a profile and upload the picture again it goes back to the actual size.

This is a very strange bug, I haven't the first clue what started it, what causes it, or how to fix it. However I would dearly like to have this one fixed as it is very annoying and causing me extra work.

Anyone have any ideas?

Last edited by Sheall; 04/04/2003 1:34 PM.
Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
okay, this is weird... I just uploaded an avatar for someone.... And, it's displaying as 13x 11 teeny tiny graphic. I have no clue how that's working. It's a 98 x 112 graphic.

What the hell? I've been having that user title problem, where as an admin if I enter a URL/or Edit a person's profile it wipes the user title. Also, all I can think that I've done is add JCs avatar hack. And Josh's BDay profile hack....

Anyone have any ideas?

-peter

Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
AND, it's only this one person. I've set the avatar dimensions to 60x60 for all avatars, so hmmm...

I have no clue where to start.

It's displaying as a small graphic in both showprofile, and in his posts.....

Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
Hmmmm.. Not sure what this means, but if I put the same graphic in my profile, it displays correctly as 60x60.


Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
How did you upload it?

What happens if that user edits their profile and submits the changes. Does the sizing get updated.

You could fix it with an SQL query if you needed to.

Daine #238924 04/22/2003 8:30 PM
Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
Well, originally I entered the URL to the graphic by editing his profile. With JCs avatar deal, users can choose between pre-selected avatars. As an admin, I can insert the URL to an avatar though.

So I did that, inserted the avatar. Got the weird size deal. So, I uploaded the graphic by ftp to my website, and tried placing the url with the graphic from my site. That didn't fix it.

Then, to check it, I inserted the same link for my avatar. It worked.

Unrelated to the previous thing- Weird, I just checked others avatars are 48x48...I'm confused by how things are supposed to work now. lol..


Yes, Josh, he's editted and changed his profile now, and it's at 48x48.

-peter

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
The size is stored in the database user's table.

So if you just change the URL, it doesn't change the size. You need to upload it when a user edits their profile... then it grabs the image sizes.

The bug when the user edits their profile causes it to revert to the theme file settings.

If you want to set it to the real sizes....

UPDATE w3t_Users
SET U_PicHeight = 'xxxx',
U_PicWidth = 'xxxx'
WHERE U_Number = 'xxxx'

Daine #238926 04/22/2003 9:42 PM
Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
ohhhhhhhhhhhhhhhh! Doh.. Okay. I still am not sure why it initially did the teeny tiny thing. But, I get what you're saying about that bug.

Thanks Josh.

-peter

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
The tiny thing may have been the last stored size value of whatever they tried to upload? Like a graemlin or something? But it get's overwritten when you upload a new pic (or edit the profile - but that's a bug which Dave_L keeps as a pet. )

Daine #238928 04/22/2003 9:51 PM
Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
That is what is weird though, they can't upload or link to anything other than my preset avatars. I'm the only one able to insert the url by editting their profile. The avatars available in the dropdown menu for users are all 48x48 or 60x60, if they want something else they have to PM me and get it approved/put in.

I get what you're saying. Pet... heh..


-peter


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,575
Posts293,930
Members13,823
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)