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
  #12  
Old 04-21-2002, 05:35 AM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for a great hack.
Had to ask some friends how to run the query thing for phpmyadmin, but it was simple. I am just dumb.
Thanks.
Reply With Quote
  #13  
Old 04-21-2002, 06:26 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Gutspiller
It's called there is no F***ing way I am reinstalling 50+ hacks just to have the latest version. :P
thanks for letting me hack really easy into your board and take over, delete all your accounts, ban you and other admins, delete all members and posts, etc. that's what you make me think when you when you say, is to hard for you to upgrade.

good luck. i hope you dont have any enemy out there who loves php. it should take him not longer then 15min to destroy your "hacked" board.

and btw, with araxis merge you can do this, upgrade ur board in about 30min. without reinstalling all the hacks.
Reply With Quote
  #14  
Old 04-24-2002, 03:20 PM
Meta's Avatar
Meta Meta is offline
 
Join Date: Nov 2001
Location: Germany (north)
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack. Thank you, Gamingforce!
Reply With Quote
  #15  
Old 04-27-2002, 09:33 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

question, added this hack, works fine. But when you go to edit options, change avatar in your user cp, it still shows the 80x80 pixel dimensions allowed. Not the 80x100 I have set in the admin cp. Shouldn't it say the correct dimensions which are allowed?
Reply With Quote
  #16  
Old 05-05-2002, 08:03 AM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The maker of the hack left out one thing. Apply the chages that you applied to the error template to User Option Templates>modifyavatar_custom
namely, replace
$avatarmaxdimension by $avatarmaxdimension
with
$avatarmaxheight pixels or $avatarmaxsize

Hope this helps. :->
Reply With Quote
  #17  
Old 05-05-2002, 03:53 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!
Reply With Quote
  #18  
Old 07-10-2002, 02:05 AM
parasic's Avatar
parasic parasic is offline
 
Join Date: Jun 2002
Location: Santa Rosa, California
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, just installed on my forum and works perfectly. But you did leave out the change needed in the modifyavatar_custom template.

It should be something like:

FIND:
$avatarmaxdimension by $avatarmaxdimension

REPLACE WITH:

$avatarmaxwidth by $avatarmaxheight
Reply With Quote
  #19  
Old 07-14-2002, 12:35 PM
kikosho kikosho is offline
 
Join Date: Mar 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a script yet that is compatible with vB 2.6??
Reply With Quote
  #20  
Old 07-15-2002, 03:02 AM
Gamingforce's Avatar
Gamingforce Gamingforce is offline
 
Join Date: Oct 2001
Location: New York City
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works with the latest.
Reply With Quote
  #21  
Old 08-26-2002, 02:57 AM
DeadMan384AD's Avatar
DeadMan384AD DeadMan384AD is offline
 
Join Date: Aug 2002
Location: Right Behind you
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup I just installed it on my board, I noticed the thing in the User CP too.

Interesting story installing it tho... I've never gone into phpMyAdmin before, EVER. I've never even touched mySQL(I still managed to pass the database course tho... )
So, You know what happens when you enter in the wrong password?
Screaming, yelling, dripping sweat, ICQ messages from 5 people saying "What did you do???" etc....
Luckily the ex-owner/admin was still online and fixed it for me...

Great hack tho!
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 03:21 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.04498 seconds
  • Memory Usage 2,296KB
  • Queries Executed 25 (?)
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)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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