The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Fixed Avatar Size.
How do I set a fixed avatar size on vB 3.5.4?
domokun |
#2
|
||||
|
||||
AdminCP -> Usergroups -> Usergroup Manger -> Select specific usergroup -> Picture Uploading Permissions -> Custom Avatar Maximum Width/Height (pixels)
|
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
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 |
#5
|
|||
|
|||
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 |
#6
|
||||
|
||||
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> 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> |
#7
|
|||
|
|||
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 |
#8
|
||||
|
||||
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.
|
#9
|
|||
|
|||
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 |
#10
|
||||
|
||||
I agree; it would be nice to have that option.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|