Current time: 05-23-2012, 09:42 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Auto Avatar Size
03-28-2007, 07:16 PM (This post was last modified: 03-28-2007 07:17 PM by aorgun.)
Post: #1
Auto Avatar Size
By: AoRGuN
What's it: Auto avatar size for postbit Toungue

AdminCP >>> Templates >>> Edit/Delete >>> Your Theme >>> Expand >>> PostBit Templates >>> postbit_avatar
Find:
Code:
alt="{$avatar_width_height}"
Replace:
Code:
alt="width="150" height="150""

NOTE: You Change it:
Code:
150
Enjoy

Visit this user's website Find all posts by this user
Quote this message in a reply
03-28-2007, 07:22 PM
Post: #2
RE: Auto Avatar Size
I'm going to try this... Thanks for sharing.

Clicktotweet.me
Find all posts by this user
Quote this message in a reply
03-28-2007, 10:09 PM
Post: #3
RE: Auto Avatar Size
beautiful speciality , very thank aorgun
Find all posts by this user
Quote this message in a reply
03-28-2007, 10:32 PM
Post: #4
RE: Auto Avatar Size
This is probably the easiest, but the poorest solution to avatar resizing. It'll stretch avatars smaller than 150x150 and make avatars larger than 150x150 smaller which will make it worse. It also means users can upload huge avatars and would take a long amount of time to load even when they're being downsized to a very small picture.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-29-2007, 09:03 AM (This post was last modified: 03-29-2007 09:04 AM by Yumi.)
Post: #5
RE: Auto Avatar Size
I tend to set the max height for oversized avatars (I don't think you can really prevent people from using avatars with large filesize if they use the avatar URL feature).

Something like:
Code:
<div style="max-height: 150px; max-width: 150px">{avatar variable here}</div>
Probably would be better if it grabbed the max width and height from the settings Smile
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication