Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 07-25-2006, 06:11 PM
domokun domokun is offline
 
Join Date: Jun 2006
Location: Section 9
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Fixed Avatar Size.

How do I set a fixed avatar size on vB 3.5.4?

domokun
Reply With Quote
  #2  
Old 07-25-2006, 07:11 PM
libertylounge's Avatar
libertylounge libertylounge is offline
 
Join Date: Jul 2006
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AdminCP -> Usergroups -> Usergroup Manger -> Select specific usergroup -> Picture Uploading Permissions -> Custom Avatar Maximum Width/Height (pixels)
Reply With Quote
  #3  
Old 07-26-2006, 01:53 PM
domokun domokun is offline
 
Join Date: Jun 2006
Location: Section 9
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 07-31-2006, 02:44 PM
domokun domokun is offline
 
Join Date: Jun 2006
Location: Section 9
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 08-08-2006, 04:39 AM
domokun domokun is offline
 
Join Date: Jun 2006
Location: Section 9
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 08-08-2006, 05:28 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 08-20-2006, 07:42 PM
domokun domokun is offline
 
Join Date: Jun 2006
Location: Section 9
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 08-20-2006, 11:47 PM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 08-28-2006, 11:11 AM
domokun domokun is offline
 
Join Date: Jun 2006
Location: Section 9
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 08-29-2006, 02:53 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree; it would be nice to have that option.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04503 seconds
  • Memory Usage 2,264KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete