vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Re-sizing avatars (https://vborg.vbsupport.ru/showthread.php?t=193014)

christian8a 12-03-2008 07:38 PM

Quote:

Originally Posted by Lynne (Post 1639909)
The size of the avatar on the members.php page is defined at the top of includes/class_core.php
HTML Code:

define('FIXED_SIZE_AVATAR_WIDTH', 60);
define('FIXED_SIZE_AVATAR_HEIGHT', 80);

You can probably either change that or modify the template to make it a link to the full-sized version.

Nice to know this.. and where should the resize quality could be? I know is set to 75% and I would like to increase it

Lynne 12-03-2008 07:47 PM

Doing a search of "75" in the forums folders shows me several options, but I'm guessing it's in function set_convert_options in the class_image.php file. (There are other functions which it could be, just do a search for "75" in that file.)

christian8a 12-03-2008 08:11 PM

Quote:

Originally Posted by Lynne (Post 1677994)
Doing a search of "75" in the forums folders shows me several options, but I'm guessing it's in function set_convert_options in the class_image.php file. (There are other functions which it could be, just do a search for "75" in that file.)

thank you :up:
well there are alot of other options but I changed all of the 75 to 100 to try and now the avatars on the friends mini looks great! I think itll be ok to leave the other functions to 100 right? my server is a vps for now but is a new site, not many members

murdoc 03-25-2009 12:04 PM

hey guys, on my forums people host there avatars at sites like imageshack and photobucket, i just would like to know is there a way to limit avatars on the forums to ONLY be 50 X 50

because we have random size avatars now which is taking allot of space

could anyone help me ?

Seven Skins 03-25-2009 12:36 PM

<a href="http://www.irfanview.com/" target="_blank">http://www.irfanview.com/</a> << freeware does the batch processing.

Step you should take:
Change usergorups permissions so they can not upload lagee then 50x50 avatars
Download all avatar form the server.
Resize them using irfanview.
Make sure file names dont get changed.
Upload all avatars to server.

PS. I havent tried it ... so use above info your own risk

murdoc 03-25-2009 12:47 PM

so there is no option that you can enable, that wont allow avatars that has a width greater then 50 X 50 ?

Seven Skins 03-25-2009 01:17 PM

For posts (postbit) you can edit "$post[avwidth] $post[avheight] to width="50" height="50" But it will only change the size of avatar in posts.

murdoc 03-25-2009 01:37 PM

thanks dude :P

Lynne 03-25-2009 01:52 PM

You can set the size for the allowed avatars in the Usergroup Manager for each usergroup.

Seven Skins 03-25-2009 02:15 PM

If big avatars has already been uploaded they don't get resized by editing usergroup manager.

.


All times are GMT. The time now is 08:25 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.03618 seconds
  • Memory Usage 1,729KB
  • 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_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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