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
  #2  
Old 03-10-2002, 11:34 AM
Edgar Edgar is offline
 
Join Date: Dec 2001
Location: Belgium
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack Bobo
It's nice to see you're making your own hacks now,great work.
Reply With Quote
  #3  
Old 03-10-2002, 11:38 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack 'Gamingforce'. I was busy with something like that aswell, now it spares me some time :up:. Thanks
Reply With Quote
  #4  
Old 03-30-2002, 02:01 AM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get this error when I run the query in my admin control panel:

Database error in vBulletin Control Panel: Invalid SQL: INSERT INTO `setting` (`settingid`, `settinggroupid`, `title`, `varname`, `value`, `description`, `optioncode`, `displayorder`) VALUES ('', '26', 'Avatar Maximum Width', 'avatarmaxwidth', '105', 'Use this to define the maximum height of an avatar.', '', '0');
INSERT INTO `setting` (`settingid`, `settinggroupid`, `title`, `varname`, `value`, `description`, `optioncode`, `displayorder`) VALUES ('', '26', 'Avatar Maximum Height', 'avatarmaxheight', '150', 'Use this to define the maximum width of an avatar.', '', '0');
mysql error: You have an error in your SQL syntax near ';
INSERT INTO `setting` (`settingid`, `settinggroupid`, `title`, `varname`, `va' at line 1
mysql error number: 1064
Date: Friday 29th of March 2002 08:56:19 PM
Script: /forumz/admin/query.php
Referer: http://www.theforumz.com/forumz/admin/query.php

Can somebody please help me with this error and how to get it working?

BTW I am running 2.0.3 if that makes a difference. :ermm:
Reply With Quote
  #5  
Old 04-04-2002, 12:02 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its called upgrade man
Reply With Quote
  #6  
Old 04-04-2002, 01:52 AM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by neo
its called upgrade man
It's called there is no F***ing way I am reinstalling 50+ hacks just to have the latest version. :P

If somebody here made something that would allow you to push a button and it takes your current version and upgrades it tot he latest version, but KEEPS ALL YOUR HACKS INTACK, then maybe I would.... then again, something like that would be nearly impossible. :ermm:
Reply With Quote
  #7  
Old 04-20-2002, 08:44 AM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am too dumb to know how to add things in phpmyadmin.
But I do need this, as my avatar size is 400x65
Reply With Quote
  #8  
Old 04-20-2002, 10:58 AM
-=dm=- -=dm=- is offline
 
Join Date: Nov 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Bad Bunny
I am too dumb to know how to add things in phpmyadmin.
But I do need this, as my avatar size is 400x65
damn your avatar size is 400x65??

Thanx Gamingforce

going to ad this one
Reply With Quote
  #9  
Old 04-20-2002, 01:23 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Hack...

Satan
Reply With Quote
  #10  
Old 04-20-2002, 04:33 PM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes. Here is my forum, if you click on a thread you will see the why the avatar size is so unique.
http://community.neeto.org
Anyway, I know I can do the rest of the hack, except the mysql part. I don;t understand what it means to "Execute the following MySQL queries", and I don't feel like breaking my database.
Thanks.
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 06:09 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.04399 seconds
  • Memory Usage 2,287KB
  • Queries Executed 23 (?)
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_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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)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