vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   How to change avatars' thumbnails diemensions in 3.7 & 3.8 (https://vborg.vbsupport.ru/showthread.php?t=198448)

Mazinger 12-08-2008 10:00 PM

How to change avatars' thumbnails diemensions in 3.7 & 3.8
 
1 Attachment(s)
Avatars' thumbnails are which you see in new profiles, albums, social groups, comments and visitor messages.

The maximum dimensions by default are 60px width and 80px height.

1) You can change them from includes/class_core.php (line 17):
PHP Code:

/**#@+
* The maximum sizes for the "small" profile avatars
*/
define('FIXED_SIZE_AVATAR_WIDTH'60);
define('FIXED_SIZE_AVATAR_HEIGHT'80);
/**#@-*/ 

Change the 60 and the 80 to the new values you want and save.


2) Then go to your admincp to rebuild the thumbnails:

Maintenance -> Update Counters -> Rebuild Avatar Thumbnails


And you're done! :)

Marco van Herwaarden 12-10-2008 08:17 AM

Moved to modifications. Please also upload your instructions in a text file.

nerofix 12-10-2008 06:14 PM

Ah thank you :)
I was looking for this. I fixed it by editing the functions_user.php with just linking all thumbnails of avatars to the original avatars because they are bigger, but your solution is better I think.

lostgirl815 01-19-2009 11:02 PM

Is there any way to just turn off the thumbnail deal? I really hate it.

Mazinger 01-20-2009 06:35 PM

I don't know about it - sorry. :)

lostgirl815 01-20-2009 07:24 PM

Ah well, thanks for the answer! I've never actually messed with the hard code before, but I'm about desperate enough to try. Thanks for the Mod!

Naan-Kadavul 06-12-2010 10:39 AM

Is there any way to put a specific size for an avatar ?

this hack is for only avatar thumbnail. right ?

I need to set up 120px X 120px for my avatar that appears in Threads & Posts.

Is there any way? Please guide. Thank you.

Sweeks 06-12-2010 11:24 AM

Quote:

Originally Posted by Naan-Kadavul (Post 2052458)
Is there any way to put a specific size for an avatar ?

this hack is for only avatar thumbnail. right ?

I need to set up 120px X 120px for my avatar that appears in Threads & Posts.

Is there any way? Please guide. Thank you.

You can set that under your usergroups options.


All times are GMT. The time now is 11:16 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.01037 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete