vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - All the avatars of the same dimensions (https://vborg.vbsupport.ru/showthread.php?t=230163)

Allan 12-13-2009 10:00 PM

All the avatars of the same dimensions
 
1 Attachment(s)
This mod impose all the avatars of the same dimensions.
  • For "postbit": In the "postbit.css" template, find:
PHP Code:

.postbit .postuseravatarlink img {


  • Change to:
PHP Code:

.postbit .postuseravatarlink img {
        
width80px;
        
height80px;


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • For "postbit_legacy": In the "postbit.css", find:
PHP Code:

.postbitlegacy .userinfo .postuseravatar img, .eventbit userinfo .eventuseravatar img {
    
border: {vb:stylevar postbitlegacy_avatar_border};
     
outline: {vb:stylevar postbitlegacy_avatar_outline};
     
max-width: {vb:math {vb:stylevar postbitlegacy_userinfo_width} - {vb:math {vb:stylevar padding}*2}- {vb:math {vb:stylevar postbitlegacy_avatar_outline.borderWidth}*2} - {vb:math {vb:stylevar postbitlegacy_avatar_border.borderWidth}*2}};


  • Change to:
PHP Code:

.postbitlegacy .userinfo .postuseravatar img, .eventbit userinfo .eventuseravatar img {
    
border: {vb:stylevar postbitlegacy_avatar_border};
     
outline: {vb:stylevar postbitlegacy_avatar_outline};
     
max-width: {vb:math {vb:stylevar postbitlegacy_userinfo_width} - {vb:math {vb:stylevar padding}*2}- {vb:math {vb:stylevar postbitlegacy_avatar_outline.borderWidth}*2} - {vb:math {vb:stylevar postbitlegacy_avatar_border.borderWidth}*2}};
        
width80px;
        
height80px;




PS
: You are free to change 80px of course ;)

kevin2008 12-14-2009 09:23 AM

merci Allan, super pratique.

Michael2 12-18-2009 07:15 AM

Hmm... Doesn't seem to be working on my forum... See posts 56 and 58 for example... Should be 150x150.

http://www.veggieboards.com/boards/s...A-thread/page6

Allan 12-18-2009 10:00 AM

Quote:

Originally Posted by Michael2 (Post 1932748)
Hmm... Doesn't seem to be working on my forum... See posts 56 and 58 for example... Should be 150x150.

http://www.veggieboards.com/boards/s...A-thread/page6

Add for postbit_legacy ;)
  • For "postbit_legacy": In the "postbit.css", find:
PHP Code:

.postbitlegacy .userinfo .postuseravatar img, .eventbit userinfo .eventuseravatar img {
    
border: {vb:stylevar postbitlegacy_avatar_border};
     
outline: {vb:stylevar postbitlegacy_avatar_outline};
     
max-width: {vb:math {vb:stylevar postbitlegacy_userinfo_width} - {vb:math {vb:stylevar padding}*2}- {vb:math {vb:stylevar postbitlegacy_avatar_outline.borderWidth}*2} - {vb:math {vb:stylevar postbitlegacy_avatar_border.borderWidth}*2}};


  • Change to:
PHP Code:

.postbitlegacy .userinfo .postuseravatar img, .eventbit userinfo .eventuseravatar img {
    
border: {vb:stylevar postbitlegacy_avatar_border};
     
outline: {vb:stylevar postbitlegacy_avatar_outline};
     
max-width: {vb:math {vb:stylevar postbitlegacy_userinfo_width} - {vb:math {vb:stylevar padding}*2}- {vb:math {vb:stylevar postbitlegacy_avatar_outline.borderWidth}*2} - {vb:math {vb:stylevar postbitlegacy_avatar_border.borderWidth}*2}};
        
width80px;
        
height80px;



Michael2 12-18-2009 06:30 PM

Ah, duh, thank you! :)

Dr.osamA 12-18-2009 09:23 PM

thank you!
________
Vermont marijuana dispensary

shiqah 12-19-2009 09:38 AM

thanks

saviola8x 12-20-2009 03:47 PM

thank so much
very nice
demo 60x60 : http://uevf.net/forum/showthread.php?132-Nhat-Ky-Online

BSMedia 12-27-2009 05:28 PM

Nice work makes everything look nice and uniform

GrossKopf 12-28-2009 07:09 PM

Works nice, but I was wondering if it were possible to code this so only the "default" avatar is resized. For those not familiar, there's an option in vb 4 that lets you set a default avatar for people that don't have an avatar.


All times are GMT. The time now is 11:28 AM.

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.01356 seconds
  • Memory Usage 1,761KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete