Welcome, Guest. Please Login or Register.
November 26, 2024, 10:21:07 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Problem with avatar settings « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Problem with avatar settings  (Read 705 times)
Mr Hister
Noobie
*
Posts: 22


Guess why I've got a smile on my face.

WWW
Problem with avatar settings
« on: October 07, 2003, 07:32:35 AM »
Reply with quote

YaBB SE Version:
PHP Version:
MySQL Version:
Server Platform:
Link to Forum:

Problem Description:
How does the avatar resize? I see other boards where all of the avatars are the same size within the posts no matter what size pic you upload for your profile. That isn't the case on my board. If I set the value of the avatar size and the image is bigger I get an error message. But if I keep the value at 0 then the avatar is the original size in the posts.

How can I limit the avatar size within the posts (to make them all uniform) but not the original so users don't have to resize on their own?
What am I missing?
« Last Edit: October 07, 2003, 07:34:35 AM by mrhister » Logged

Dem0n
Full Member
***
Posts: 107


WWW
Re:Problem with avatar settings
« Reply #1 on: October 07, 2003, 08:37:51 PM »
Reply with quote

does anybody know what files to edit? alot of people want to use there own personal pic on my boards, but cant because images are huge...lol
Logged

Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:Problem with avatar settings
« Reply #2 on: October 07, 2003, 11:15:57 PM »
Reply with quote

look in profile php for the line that says "let's validate the avatar" or something like that, and just comment out the section for checking the size.  It's not a perfect fix, but it works for the most part..
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Dem0n
Full Member
***
Posts: 107


WWW
Re:Problem with avatar settings
« Reply #3 on: October 08, 2003, 06:41:50 AM »
Reply with quote

Quote from: Shadow's Pawn on October 07, 2003, 11:15:57 PM
look in profile php for the line that says "let's validate the avatar" or something like that, and just comment out the section for checking the size.  It's not a perfect fix, but it works for the most part..

what exactly do we edit, because i edited stuff and it didnt work..lol it wouldnt even let the have your own pic thing stay checked.
Logged

Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:Problem with avatar settings
« Reply #4 on: October 08, 2003, 06:59:41 AM »
Reply with quote

look for this

      // 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)");


Make it say this:


      // 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)");
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Mr Hister
Noobie
*
Posts: 22


Guess why I've got a smile on my face.

WWW
Re:Problem with avatar settings
« Reply #5 on: October 08, 2003, 08:26:30 AM »
Reply with quote

THAT WORKED LIKE A CHAMP!!!!!!
Thanx S.P.!!!!  ;D

Now all I have to do is figure out why my news fader is blinking instead of fading!  >:(
Logged

Dem0n
Full Member
***
Posts: 107


WWW
Re:Problem with avatar settings
« Reply #6 on: October 08, 2003, 05:44:57 PM »
Reply with quote

hmm, for you it works good. but for me it doesnt even load the profile page. any ideas?
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Problem with avatar settings « 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.033 seconds with 21 queries.