PDA

View Full Version : Avatar only 100 x 100 pixels?!


a1-b
04-01-2010, 04:50 PM
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
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...
<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...

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

<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.