Welcome, Guest. Please Login or Register.
September 28, 2024, 07:33:32 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Remote Link Avatar Resizing « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Remote Link Avatar Resizing  (Read 907 times)
ateman
Noobie
*
Posts: 8


andrewteman dot org

WWW
Remote Link Avatar Resizing
« on: February 24, 2004, 04:53:26 PM »
Reply with quote

YaBB SE Version: 1.5.2 to 1.5.4
Server Platform: Unix, Linux, or BSD
Link to Forum: www.wormtownnightlife.com/wnlforum

Problem Description:
Been searching for this answer and have been unable to find it. I am getting a lot of complaints from users who when using a remote linked avatar, need it to be resized to the proper sizing (mine is set to 200x200) or they cant use it. My audience is not the most computer saavy, so this is causing a fair amount of trouble for some people. I previously had Yabb Gold Sp 1.1 and users could have huge remote linked images for avatars that would just get artificially resized making everyone happy.

Regardless of how the pages may be slower, is there a way to have remotely linked image avatars be resized automatically, or at least artificially constrained to fit the limits without causing people errors and the need to save, resize, and host their own avatars?
Logged

---------------
Andrew
my forum
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Remote Link Avatar Resizing
« Reply #1 on: February 25, 2004, 11:59:52 PM »
Reply with quote

Quote from: ateman on February 24, 2004, 04:53:26 PM
Regardless of how the pages may be slower, is there a way to have remotely linked image avatars be resized automatically, or at least artificially constrained to fit the limits without causing people errors and the need to save, resize, and host their own avatars?

Scroll to the bottom of Forum Preferences and Settings:

Userpic Width (0 = disable limit)  
Userpic Height (0 = disable limit)  
Text To Describe The Limits
Logged

ateman
Noobie
*
Posts: 8


andrewteman dot org

WWW
Re:Remote Link Avatar Resizing
« Reply #2 on: February 26, 2004, 12:05:10 AM »
Reply with quote

That isnt quite what I am looking for, as that allows people to post huge images and it will display them as huge images.  I am looking to have the parameters be set to a 200x200 viewable area for the avatars, but if someone remote links an image that is outside of that range (say 640x480) that the forum will shrink it down to fit within 200x200...the old YaBB Gold SP 1.1 did this wonderfully...is there really no way to do this with YaBBSE?
Logged

---------------
Andrew
my forum
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:Remote Link Avatar Resizing
« Reply #3 on: February 26, 2004, 04:42:41 AM »
Reply with quote

Open up profile.php and search for


      // now let's validate the avatar
       $sizes = @getimagesize($member['userpic']);
       if ($sizes && (($sizes[0] > $userpic_width && $userpic_width != 0) || ($sizes[1] > $userpic_height && $userpic_height != 0)))
         fatal_error("$txt[yse227]  $userpic_width x $userpic_height)");



Comment that section out or delete it.

This is just a quick fix, since if a user uses a remote avatar that is smaller than your max height and width, it will be stretched to fit those specifications.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Remote Link Avatar Resizing « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.023 seconds with 20 queries.