vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Fixed Avatar Size. (https://vborg.vbsupport.ru/showthread.php?t=122109)

domokun 07-25-2006 06:11 PM

Fixed Avatar Size.
 
How do I set a fixed avatar size on vB 3.5.4?

domokun

libertylounge 07-25-2006 07:11 PM

AdminCP -> Usergroups -> Usergroup Manger -> Select specific usergroup -> Picture Uploading Permissions -> Custom Avatar Maximum Width/Height (pixels)

domokun 07-26-2006 01:53 PM

Oh the maximum works fine but that simply means the user can use any size avatar up to that maximum size. Ex: I set it at 100x100 and the user can upload anything from 10x10 up to 100x100. What I'm looking for is to find a way to set it so that the user can only upload 100x100 and no less. That's what I mean by fixed.

Domokun

domokun 07-31-2006 02:44 PM

No one knows how to make it where the avatar size is fixed? Unfortunately, vBulletin only has the option of setting the maximum size. But users can upload avatars that are tiny up to that maximum size. All I'm looking for is a way to make it so the users can upload only one fixed size. I don't think it's a hard thing to do but I'm not familiar with HTML so I don't know how to do it. Someone please help. Thank you.

Domokun

domokun 08-08-2006 04:39 AM

I want to bump this thread up because I really would like to know if this is possible. All I'm looking for is to find a way to make it so users can only upload a specific size avatar rather than having a variety of sizes up to the maximum as vBulletin 3.5.4 is originally designed to do.

I'm not good at HTML but I think it's a simple fix. I just need someone with skills in HTML to see if they can help me resolve this need.

Again, thank you and sorry for bumping this up. I just think this could be very useful for many forums.

Domokun

Freesteyelz 08-08-2006 05:28 AM

I too like forced-fixed avatars. Assuming you have a default template in either postbit or postbit_legacy find:

Code:

                        <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
And replace it with:
Code:

                        <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" width="100px" height="100px" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
Set the width and height to your preferred specifications. :)

domokun 08-20-2006 07:42 PM

Ooh, that's a nice edit there ;) . That'll help a lot, thank you so much. Sorry I haven't gotten back in a while, been too busy.

I just installed it and noticed that it resizes the avatars to the fixed size I want :) . Just wondering though, although this helps greatly, how about a way to actually prevent users from uploading an avatar in their UserCP not within the guidelines in the first place? Otherwise the resize of the avatar will be of poor quality since the original image is way less than the required size, hence looking out of proportion and very fuzzy when it's resized to a larger size.

Anyway, thank you so much again for this. It'll help me big time :)

Domokun

Freesteyelz 08-20-2006 11:47 PM

NP. While I think it's possible to restrict the uploads to a specific dimension with a Javascript or PHP edit I don't know how to go about it at this time. For the past years I've been telling people to send avatars with the specific dimesions or their avatars will be distorted. Sorry that I couldn't offer you more help. :)

domokun 08-28-2006 11:11 AM

Heh, no problem. So far your solution is a great substitution for this. Well, hopefully someone will figure this out since it is truly a beneficial hack to have. Especially for those who prefer a nice organized look rather than random size avatars. I'll keep my fingers crossed. :)

Domokun

Freesteyelz 08-29-2006 02:53 AM

I agree; it would be nice to have that option. :)

domokun 09-02-2006 04:08 PM

Still keeping my fingers crossed ;)

Domokun

domokun 09-23-2006 03:02 PM

bump for justice! I cannot believe someone hasn't come up with a way to make users upload a specific size avatar.

Domokun

p.s. Wish I could do this but I'm no programmer..

domokun 09-30-2006 10:07 PM

Bumping isn't so fun but I still have to do this. There has to be a way to restrict users to upload avatars below the specific size.. I'm still going through the HTML to see but I'm coming up with no ideas...

Thanks

Domokun

cinderelmo 10-02-2006 04:10 PM

1 Attachment(s)
Quote:

Originally Posted by domokun
Bumping isn't so fun but I still have to do this. There has to be a way to restrict users to upload avatars below the specific size.. I'm still going through the HTML to see but I'm coming up with no ideas...

Thanks

Domokun

I know this isn't exactly what you want, but I needed something similar. My goal was to organize each postbit so they flowed identically down the thread. To do this I wanted each avatar "area" to take up 100x of width, even if the user selected a smaller avatar size.

To do this I inserted a 100x spacer img below the avatar to keep that space always 100 pixels wide. I changed the td class to a custom one, threw in a text-align: center, and now I have a nice even column of avatars.

This may be a workaround for you until someone can solve the image size issue.

domokun 10-25-2006 02:47 AM

Thanks for the alternate ideas. Of course I'm going to bump this thread though because I still believe that this should be something that could be very useful in the forum community. vBulletin has maximum sizes, why not minimal sizes? Fixed avatars would be such a great feature for a forum to show consistency and organization. I'm begging you wonderful programmers, please find a way to create such a wonderful idea.

Yours truly,

Domokun

domokun 12-10-2006 01:06 PM

I'm still in the process of looking for a way to force users to only upload a specific size avatar, no more, no less. This time I have vB 3.6.4. Would be most appreciated if someone could help me out on this ;)

Thanks

~ Domokun

Maddog417 07-08-2007 01:37 PM

I, too, have been looking for a way to do this. Allowing users to upload avatars up to a maximun size always ends up with a forum looking like a complete mess.

What I have been thinking of doing (if I can't find a way to force a minimum size) is to prompt the user with a message during the upload process asking if the avatar is 100x100 or whatever. The user would have to confirm that it is or receive an error message.

Especially on forums that allow larger avatars, there needs to be a way to standardize the size. Right now there is a maximum size limit. How difficult would it be to add a minimum size limit?

st00pidity 10-10-2007 05:21 PM

avatar minimum dimension hack ftw

Shelby 11-26-2008 03:09 AM

Agreed.

nyplaya47 01-20-2010 11:14 PM

old but thanks

Franciscus 09-18-2010 07:36 AM

Quote:

Originally Posted by Freesteyelz (Post 1047286)
I too like forced-fixed avatars. Assuming you have a default template in either postbit or postbit_legacy find:

Code:

            <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
And replace it with:
Code:

            <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" width="100px" height="100px" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
Set the width and height to your preferred specifications. :)

1 year searching for this! Many many thanks!


All times are GMT. The time now is 04:59 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.01122 seconds
  • Memory Usage 1,760KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)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