vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Avatar only 100 x 100 pixels?! (https://vborg.vbsupport.ru/showthread.php?t=239582)

a1-b 04-01-2010 04:50 PM

Avatar only 100 x 100 pixels?!
 
How to set not only the maximum size an avatar, but also minimum, at its placing through the control panel the participant of a forum? I want, that at a forum avatars only 100 x 100 pixels took places.

egclive 04-01-2010 06:22 PM

Quote:

Originally Posted by a1-b (Post 2014160)
How to set not only the maximum size an avatar, but also minimum, at its placing through the control panel the participant of a forum? I want, that at a forum avatars only 100 x 100 pixels took places.


in your vb options

a1-b 04-02-2010 03:03 AM

How it to make? In options as much as possible admissible size an avatar is set only, minimum is not present.

vijayninel 04-02-2010 03:46 AM

In usergroup settings go to Picture Uploading Permissions and set the Custom Avatar Maximum Height/width to 100px.

a1-b 04-04-2010 05:56 AM

Maximum Height/width it not a minimum!!! If we put a maximum 100 x 100 it is possible upload and 70 x 70, and it is necessary for me ONLY 100 x100px.

Cryo 04-04-2010 08:46 AM

You can't set a minimum without coding or through a plugin. Unfortunately, I am not sure how to do this, it would probably take place during some of the post-upload processing. However, you can edit the template so that it stretches whatever they upload to 100x100. In your postbit_legacy / postbit templates, search for...

postbit_legacy...
Code:

<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
Replacing it with the following...

Code:

<img src="{vb:raw post.avatarurl}" width="100" height="100" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
postbit...
Code:

<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
Replacing it with the following...

Code:

<img src="{vb:raw post.avatarurl}" width="100" height="100" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
It won't require you to have a 100x100 image uploaded, but it will stretch everything to that.


All times are GMT. The time now is 11:51 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.01066 seconds
  • Memory Usage 1,720KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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