Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 11-27-2014, 04:50 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right, the activity stream templates is what you would have to edit in order to change the size, and there is quite a few of them to change.

If you look in your customavatar table, you will see that the height is set to 60

This is controlled by the class_core.php file when you load a avatar to the site.

So in order to change this, without doing a query, and a file edit, is to edit each template for the activity stream, and find something like this.

Code:
<img src="{vb:raw userinfo.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw userinfo.username}}" />
And change it to this.

Code:
<img width="100px" height="100px" src="{vb:raw userinfo.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw userinfo.username}}" />
Of course changing 100px to your liking.
Reply With Quote
  #12  
Old 11-27-2014, 04:51 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yikes.
Reply With Quote
  #13  
Old 11-27-2014, 04:57 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like I said, I looked into this, and that is why I posted this.

Quote:
Originally Posted by ozzy47 View Post
I took a look into this, and short of editing the templates, I don't see how it is possible.
Reply With Quote
  #14  
Old 11-27-2014, 05:03 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HTML Code:
li.activitybit .avatar img {width: 100px;}
However, you probably then need to change other html to accommodate the new size of the avatar.
Reply With Quote
Благодарность от:
Max Taxable
  #15  
Old 11-27-2014, 05:04 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah I already went there Lynne haha.

This size is defined when avatars are uploaded. They saved themselves alot of coding to scale images doing it this way, but makes it a real pain in the butt to customize to your liking.
Reply With Quote
  #16  
Old 11-27-2014, 05:07 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well son of a gun, I could have sworn I tried that before, but I guess not.

But, you will also have to adjust the width in this css to acomodate the increased size.

Code:
li.activitybit .avatar {
    float: left;
    padding-right: 10px;
    width: 75px;


}
Reply With Quote
  #17  
Old 11-27-2014, 08:49 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So to sum it all up, add this to your additional.css

Code:
/* Start Resize Avatar In Activity Stream */
li.activitybit .avatar img {
    width: 100px;
}

li.activitybit .avatar { 
    width: 115px;  
}

li.activitybit .fulllink {
    margin-left: 40px;
}
/* End Resize Avatar In Activity Stream */
Change 100px to the desired size you want the avatars, and change 115px; to be 15px more that your avatar size.

This will make the avatars 100px high by 100px wide, and take care of the display issues with text overlapping the avatar.

Now should you want the avatar height different from the width, change the first bit of CSS to this.

Code:
li.activitybit .avatar img {
    width: 100px;
    height: 60px;
}
Of course set your dimensions to your liking.
Reply With Quote
2 благодарности(ей) от:
Lynne, Max Taxable
  #18  
Old 11-29-2014, 08:38 AM
Daniel's Avatar
Daniel Daniel is offline
 
Join Date: Jul 2005
Location: USA
Posts: 707
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Much thanks to *all* of you for your help on this.

Strangely, the enlarged avatar comes out blurry (the avatar height and width in the usergroup settings + the css above are identical).

This makes me think that the 60x60px version is still being pulled instead of the actual avatar itself. Any thoughts on this?
Reply With Quote
  #19  
Old 11-29-2014, 09:04 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, the actual thumb is being used, and resized. There is no other way around this without, a file edit, then having all users reupload their avatars. And quite possibly some more changes.

IMO the best bet it to leave well enough alone, to much trouble, just to make avatars bigger, which really is not going to have any benefit to the site.
Reply With Quote
  #20  
Old 11-29-2014, 04:07 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Daniel View Post
Strangely, the enlarged avatar comes out blurry (the avatar height and width in the usergroup settings + the css above are identical).

This makes me think that the 60x60px version is still being pulled instead of the actual avatar itself. Any thoughts on this?
Yep any time you are using script to scale images up, this happens.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04165 seconds
  • Memory Usage 2,265KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete