Announcement

Collapse
No announcement yet.

How do i Shrink Large Avtars

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SVTBlackLight01
    replied
    For the user profiles, you will have to change two templates:

    Member Info Templates -> MEMBERINFO

    Member List Templates -> memberlist_resultsbit

    The code is a little different than the postbit, but search in the templates for avatar and it will get there.
    Last edited by SVTBlackLight01; Fri 2 Apr '04, 10:42am.

    Leave a comment:


  • SaN-DeeP
    replied
    Originally posted by SVTBlackLight01
    You'll have to apply it to each template where the avatars are used. MEMBERINFO etc.

    The easiest & quickest way to do it is with Find and Replace.
    hi svtblacklight01,

    <img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" />

    i search the entire system for that string.
    just found 2. and replaced them

    Avtars in posts got shrinked. not in there profiles. etc.

    Leave a comment:


  • SVTBlackLight01
    replied
    You'll have to apply it to each template where the avatars are used. MEMBERINFO etc.

    The easiest & quickest way to do it is with Find and Replace.
    Last edited by SVTBlackLight01; Fri 2 Apr '04, 9:28am.

    Leave a comment:


  • SaN-DeeP
    replied
    Originally posted by Zachery
    IT still wont help the load problem however

    find
    HTML Code:
    <img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" />
    replace with
    HTML Code:
    <img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" height="100" width="100" />

    sweet thnx for help ZACH AND SVTBlackLight01.
    works now in posts

    Can i control that thing everywhere ? on board.
    Still on there profiles those avtars. appear large sized

    Sandy...

    Leave a comment:


  • SVTBlackLight01
    replied
    Zach, your too fast.

    Leave a comment:


  • SVTBlackLight01
    replied
    The same method will work for vb3 as well. The code has changed some though. Look for this in the postbit template.

    Code:
    <img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" />
    and apply the change

    Code:
    <img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" width="100" height="100" />
    Be sure and apply the changes to the postbit you are using (legacy or new)
    Last edited by SVTBlackLight01; Fri 2 Apr '04, 10:14am.

    Leave a comment:


  • Zachery
    replied
    IT still wont help the load problem however

    find
    HTML Code:
    <img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" />
    replace with
    HTML Code:
    <img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" height="100" width="100" />

    Leave a comment:


  • SaN-DeeP
    replied
    thnx for replying queries zak.
    Members would not like having there avtars removed.

    It worked in vb 2.x perfect.
    but i am myself. amazed why is it not working on vb 3.0

    Aint there some SOLUTION for my prob.
    Coz on vb 2.x

    I retricted the avtar size display on vb 2.x this way.
    Changing the template postbit_avatar to read
    Code:
    ?<img src="$avatarurl" border="0" alt="" width="100" height="100">?
    Instead of the original
    Code:
    ?<img src="$avatarurl" border="0" alt="">?
    I guess, there must be some way for sure about this.

    Sandy...

    Leave a comment:


  • Zachery
    replied
    You can manualy remove them, however im sure there is a query to remove them all, however im not aware of what it would be.

    Leave a comment:


  • SaN-DeeP
    replied
    AdminCP > vBulletin Options > Server Settings and Optimization Options> Allow Image Size Checking Failure > Yes
    I turned it to Yes now..
    But still those aVTARS. appear BIG.
    Check this few more attachments again please.

    I am confused.. There are more then 200 users having such big avtars.
    I cant remove those avtars. coz, they are been used since long time.

    Sandy...
    Attached Files

    Leave a comment:


  • Zachery
    replied
    Make sure Allow Image Size Checking Failure is on
    AdminCP > vBulletin Options > Server Settings and Optimization Options> Allow Image Size Checking Failure > Yes

    Otherwise im not sure why that would be happening, i have not be able to reproduce what is happening to you on either of my live boards and one of my developement boards.


    If you add height and width tags to your avatar image tag it will resize all avatars even ones under 100 px

    Leave a comment:


  • SaN-DeeP
    replied
    hi Zach.
    All the usergroups are resticted to 100 * 100 pixels only.
    I just checked all.

    But still they appear big :S
    Some of those avtars are around 600 * 800 sizes.

    By changing the code. i have wrote above. it fixed my problems in vb 2.x
    I wonder what to and where to change in VB 3.0 gold.

    Sandy...

    Leave a comment:


  • Zachery
    replied
    That avatar gets added to your database, its not stored remotly that i am aware of, if you have enabled avatars check their usergroup permissions and set a resaonble max size.

    Leave a comment:


  • SaN-DeeP
    replied
    Originally posted by Zachery
    There is no default option in vB to store avatars on remote servers, you should ask whoever made that hack for the help. Unless i missed a new feature between RC4 and Gold
    Hi Zachery,
    Check this attachment
    I am talking about this.
    How i control the IMAGE DIMENSIONS. restricting all avtars to get shrinked to 100*100 pixels only.

    Coz, many of those avtars are large enough. which ruin the way posts are read.

    Thnx.
    Sandy...
    Attached Files

    Leave a comment:


  • Zachery
    replied
    There is no default option in vB to store avatars on remote servers, you should ask whoever made that hack for the help. Unless i missed a new feature between RC4 and Gold

    Leave a comment:

widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X