Previous Thread
Next Thread
Print Thread
Rate Thread
#234356 01/28/2003 4:20 AM
Joined: Jan 2003
Posts: 45
User
User
Offline
Joined: Jan 2003
Posts: 45
I've set picture max width and height to 80x80. Now every picture is that size. They look very funny...

How do I make pictures in profiles not to force in that size?

thanks!

luuker

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
The pictures in profiles are controlled by that number in config.

Increase the number a bit. You can change it to suit your tastes.

Keep in mind that any picture shown in a profile is also shown on your post pages under the user's title. Now if you want to keep the number at 80 x 80 which is right for a picture in a post but increase the picture in the profile to a bigger size do this

In showprofile.tmpl in your template directory find this line:

<td align="right" valign="top" rowspan="12">
<img src="$Picture" alt="Picture" width="$width" height="$height" />
</td>

For starters try something like this.

<td align="right" valign="top" rowspan="12">
<img src="$Picture" alt="Picture" width="200" height="200" />
</td>

You can adjust the sizes to whatever you want.

You can see a preview here at my test site. I did this up to show you. The post pictures are still 80 x 80 but the picture is bigger in the profile.

http://www.reeftalk.com/beta/showpr...ew=&sb=5&o=&fpart=1&vc=1

Joined: Jan 2003
Posts: 45
User
User
Offline
Joined: Jan 2003
Posts: 45
Thanks Chuck!

But how do make the pictures keep their dimensions. For example: If I have a pic that is 120x60, the program still makes it 80x80. The pic looks really weird this way.

I don't know if I'm making any sense...

I'd like that 120x60 pic to stay 120x60 pic.

thanks!

luuker


Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
I think that this will distort your post screens. What you really need is the picture to be sized down to 80 pixels but on the biggest dimention proportionally.

If you have an image that is 120x60, then the script should read that 120 is the biggest number and size that down, while not forcing the 60 to become 80. With this mechanism the image will be proportionally sized down according to its original dimensions.

Warm regards

Nikos


Nikos
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
In you scripts, you can look for code like this: this is from showflat.php

width="$picwidth" height="$picheight"

Take out the height="$picheight"

Then the pic will be constrained to the max width of 80 but the height will not be distorted. This helps you preserve your layout.

You'll have to look for that wherever you see pictures in threads.

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
You should be able to do the same to the above code if you just wanted it in the profile only. Just take out the height and the image will contort down but stay within its ratio.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
good job guys I got this working and it was a easy one.

Some pictures are still distorted from the move over from the classic. But any new images are working like a dream!!


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
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
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-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)