Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Set avatar max width AND height Details »»
Set avatar max width AND height
Version: 1.00, by Gamingforce Gamingforce is offline
Developer Last Online: Jan 2007 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-09-2002 Last Update: Never Installs: 22
 
No support by the author.


On our message board, we use non square avatars with the size of 105x150 pixels as our official format like the example avatar above. I noticed that vBulletin doesn't allow you to set dimensions for both the width and height not letting you to set max dimensions for rectangular based formats. What this hack does is allow you to set both the width and height on uploaded avatars. Enjoy!

Tested on vBulletin 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4
File to modify: member.php
Template to modify: error_avatarbaddimension
2 rows to insert into setting table in database

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 09-16-2002, 12:46 AM
isman isman is offline
 
Join Date: Nov 2001
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the strangest problem on this one. After installing the hack I no longer have the option to upload a custom avatar in the user control panel. No matter what I do it won't show up.

However, in the main control panel if I go to edit the user and change the avatar I have the option to upload.

Anyone else seen this or know what the problem is?
Reply With Quote
  #23  
Old 09-17-2002, 12:39 AM
isman isman is offline
 
Join Date: Nov 2001
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
I have the strangest problem on this one. After installing the hack I no longer have the option to upload a custom avatar in the user control panel. No matter what I do it won't show up.

However, in the main control panel if I go to edit the user and change the avatar I have the option to upload.

Anyone else seen this or know what the problem is?
Disregard this message. I must be getting old, I turned a simple hack into a three day nightmare.

Take me out back and shoot me.

Great hack by the way.
Reply With Quote
  #24  
Old 02-16-2003, 03:41 AM
andyrose andyrose is offline
 
Join Date: Feb 2003
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack is excellent, just what I was looking for. Thanks for putting in the work to code it.
Reply With Quote
  #25  
Old 03-05-2003, 07:04 PM
kikosho kikosho is offline
 
Join Date: Mar 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to disable the original paramter for maxheight/maxwidth. We are using 160x100 with the new hack...however in order to make it work - I had to set the maxheight/maxwidth variable to 160. As a result, we have people posting up avatars that are larger than we intended.

any mySQL code which can remove that table? hope I am explaining this clearly.
Reply With Quote
  #26  
Old 06-19-2003, 07:19 PM
Logtenberg Logtenberg is offline
 
Join Date: Nov 2001
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this hack also have a minimum with and height?

I'd like all the avatars uploaded by members to be exactly the same width and height.
Reply With Quote
  #27  
Old 06-19-2003, 08:58 PM
S.Shady's Avatar
S.Shady S.Shady is offline
 
Join Date: Apr 2003
Location: Cleveland, Ohio
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
03-05-03 at 05:04 PM kikosho said this in Post #24
Is it possible to disable the original paramter for maxheight/maxwidth. We are using 160x100 with the new hack...however in order to make it work - I had to set the maxheight/maxwidth variable to 160. As a result, we have people posting up avatars that are larger than we intended.

any mySQL code which can remove that table? hope I am explaining this clearly.

change the settings in the avata section ion the vB Options page

Quote:
Today at 04:19 PM Logtenberg said this in Post #25
Will this hack also have a minimum with and height?

I'd like all the avatars uploaded by members to be exactly the same width and height.

this hack will make the maximum set number of pixels not minimum. sorry.

------

[high]* S.Shady clicks install.
[/high]

Seams to work on 2.3.0 good job
Reply With Quote
  #28  
Old 06-19-2003, 09:10 PM
S.Shady's Avatar
S.Shady S.Shady is offline
 
Join Date: Apr 2003
Location: Cleveland, Ohio
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please ignore my ignorance i didnt see this said before https://vborg.vbsupport.ru/showthrea...131#post271131

Also this sould be included in the install.

Open modifyavatar_custom template
Find:
Code:
$avatarmaxdimension by $avatarmaxdimension
Replace with:
Code:
$avatarmaxwidth by $avatarmaxheight
This will display the correct allowed setting next to the upload section
Reply With Quote
Reply


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 01:56 PM.


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.04211 seconds
  • Memory Usage 2,273KB
  • Queries Executed 22 (?)
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
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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